mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
feat: Working on more hyprland configuration
This commit is contained in:
29
hypr/env.conf
Normal file
29
hypr/env.conf
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# Cursor size
|
||||||
|
env = XCURSOR_SIZE,24
|
||||||
|
env = HYPRCURSOR_SIZE,24
|
||||||
|
|
||||||
|
# Force all apps to use Wayland
|
||||||
|
env = GDK_BACKEND,wayland,x11,*
|
||||||
|
env = QT_QPA_PLATFORM,wayland;xcb
|
||||||
|
env = QT_STYLE_OVERRIDE,kvantum
|
||||||
|
env = SDL_VIDEODRIVER,wayland
|
||||||
|
env = MOZ_ENABLE_WAYLAND,1
|
||||||
|
env = ELECTRON_OZONE_PLATFORM_HINT,wayland
|
||||||
|
env = OZONE_PLATFORM,wayland
|
||||||
|
env = XDG_SESSION_TYPE,wayland
|
||||||
|
|
||||||
|
# Allow better support for screen sharing (Google Meet, Discord, etc)
|
||||||
|
env = XDG_CURRENT_DESKTOP,Hyprland
|
||||||
|
env = XDG_SESSION_DESKTOP,Hyprland
|
||||||
|
|
||||||
|
xwayland {
|
||||||
|
force_zero_scaling = true
|
||||||
|
}
|
||||||
|
|
||||||
|
# Use XCompose file
|
||||||
|
env = XCOMPOSEFILE,~/.XCompose
|
||||||
|
|
||||||
|
# Don't show update on first launch
|
||||||
|
ecosystem {
|
||||||
|
no_update_news = true
|
||||||
|
}
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor= ,preferred,auto,auto
|
monitor= ,preferred,auto,auto
|
||||||
#monitor = HDMI-A-1, 3440x1440@59.97, 0x0, 1
|
monitor = HDMI-A-1, 3440x1440@59.97, 0x0, 1
|
||||||
|
|
||||||
#################
|
#################
|
||||||
### AUTOSTART ###
|
### AUTOSTART ###
|
||||||
@@ -24,7 +24,7 @@ monitor= ,preferred,auto,auto
|
|||||||
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||||
# Or execute your favorite apps at launch like this:
|
# Or execute your favorite apps at launch like this:
|
||||||
|
|
||||||
exec-once = waybar & swaync & elephant
|
exec-once = waybar & swaync & elephant & hyprpaper
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
### ENVIRONMENT VARIABLES ###
|
### ENVIRONMENT VARIABLES ###
|
||||||
@@ -32,9 +32,7 @@ exec-once = waybar & swaync & elephant
|
|||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Environment-variables/
|
# See https://wiki.hyprland.org/Configuring/Environment-variables/
|
||||||
|
|
||||||
env = XCURSOR_SIZE,24
|
source = ~/.config/hypr/env.conf
|
||||||
env = HYPRCURSOR_SIZE,24
|
|
||||||
|
|
||||||
|
|
||||||
###################
|
###################
|
||||||
### PERMISSIONS ###
|
### PERMISSIONS ###
|
||||||
@@ -175,12 +173,16 @@ input {
|
|||||||
kb_options = ctrl:nocaps
|
kb_options = ctrl:nocaps
|
||||||
kb_rules =
|
kb_rules =
|
||||||
|
|
||||||
|
repeat_rate = 35
|
||||||
|
repeat_delay = 200
|
||||||
|
|
||||||
follow_mouse = 2
|
follow_mouse = 2
|
||||||
|
|
||||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||||
|
|
||||||
touchpad {
|
touchpad {
|
||||||
natural_scroll = true
|
natural_scroll = true
|
||||||
|
tap-to-click = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
preload = /home/michael/.config/hypr/wallpaper.png
|
preload = /home/michael/.config/hypr/wallpaper.png
|
||||||
wallpaper = eDP-1,/home/michael/.config/hypr/wallpaper.png
|
wallpaper = ,/home/michael/.config/hypr/wallpaper.png
|
||||||
splash = true
|
splash = true
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
##############################
|
##############################
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/
|
# See https://wiki.hyprland.org/Configuring/Keywords/
|
||||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
$mainMod = SUPER # Sets "Command/Windows" key as main modifier
|
||||||
|
|
||||||
###################
|
###################
|
||||||
### MY PROGRAMS ###
|
### MY PROGRAMS ###
|
||||||
@@ -17,17 +17,18 @@ $browser = zen-browser #chromium
|
|||||||
$fileManager = $terminal -e yazi
|
$fileManager = $terminal -e yazi
|
||||||
$fileBrowser = nautilus
|
$fileBrowser = nautilus
|
||||||
$menu = walker
|
$menu = walker
|
||||||
$pwa = chromium --profile-directory=Default
|
#$pwa = chromium --profile-directory=Default --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||||
|
$pwa = ~/.local/bin/launch-webapp
|
||||||
$launch = gtk-launch
|
$launch = gtk-launch
|
||||||
|
|
||||||
$btop = $terminal -e btop
|
$btop = $terminal -e btop
|
||||||
$config = $terminal -e ~/.local/share/scripts/tmux-sessionator ~/.config
|
$config = $terminal -e ~/.local/share/scripts/tmux-sessionator ~/.config
|
||||||
$email = $pwa --app-id=jnpecgipniidlgicjocehkhajgdnjekh # proton mail
|
$email = $pwa "https://mail.proton.me" # proton mail
|
||||||
$excalidraw = $pwa --app-id=fehpfgkaiahomgjlkjleaolhifmngapb
|
$excalidraw = $pwa "https://draw.housh.dev"
|
||||||
$gitea = $pwa --app-id=jenmjaeafdjpclbgpkemokbhfeplfdbg
|
$gitea = $pwa "https://git.housh.dev"
|
||||||
$neovim = $terminal -e nvim
|
$neovim = $terminal -e nvim
|
||||||
$protonPass = $pwa --app-id=hkhckfoofhljcngmlnlojcbplgkcpcab
|
$protonPass = $pwa "https://pass.proton.me"
|
||||||
$youtube = $pwa --app-id=agimnkijcaahngcdmfeangaknmldooml
|
$youtube = $pwa "https://youtube.com"
|
||||||
|
|
||||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||||
|
|
||||||
@@ -36,21 +37,22 @@ bind = $mainMod, Space, exec, $menu # launcher (set above)
|
|||||||
bind = $mainMod, Return, exec, $terminal
|
bind = $mainMod, Return, exec, $terminal
|
||||||
bind = $mainMod, A, exec, $launch ChatGPT
|
bind = $mainMod, A, exec, $launch ChatGPT
|
||||||
bind = $mainMod, B, exec, $browser
|
bind = $mainMod, B, exec, $browser
|
||||||
bind = $mainMod Shift, B, exec, $browser --private-window
|
bind = $mainMod SHIFT, B, exec, $browser --private-window
|
||||||
bind = $mainMod, C, exec, $config
|
bind = $mainMod, C, exec, $config
|
||||||
bind = $mainMod, D, exec, $excalidraw
|
bind = $mainMod, D, exec, $excalidraw
|
||||||
bind = $mainMod Shift, D, exec, ~/.local/bin/toggle-desktop
|
bind = $mainMod SHIFT, D, exec, ~/.local/bin/toggle-desktop
|
||||||
bind = $mainMod, E, exec, $email
|
bind = $mainMod, E, exec, $email
|
||||||
bind = $mainMod, F, exec, $fileManager
|
bind = $mainMod, F, exec, $fileManager
|
||||||
bind = $mainMod, K, exec, $launch Komodo
|
bind = $mainMod, K, exec, $launch Komodo
|
||||||
bind = $mainMod Shift, F, exec, $fileBrowser
|
bind = $mainMod SHIFT, F, exec, $fileBrowser
|
||||||
bind = $mainMod Shift, G, exec, $gitea
|
bind = $mainMod SHIFT, G, exec, $gitea
|
||||||
bind = $mainMod, N, exec, $neovim
|
bind = $mainMod, N, exec, $neovim
|
||||||
bind = $mainMod, P, exec, $protonPass
|
bind = $mainMod, P, exec, $protonPass
|
||||||
bind = $mainMod, Y, exec, $youtube
|
bind = $mainMod, Y, exec, $youtube
|
||||||
|
|
||||||
bind = $mainMod, W, killactive,
|
bind = $mainMod, W, killactive,
|
||||||
bind = $mainMod Shift, L, exec, hyprlock
|
# TODO: change modifier key.
|
||||||
|
#bind = $mainMod SHIFT, L, exec, hyprlock
|
||||||
# TODO: change modifier key.
|
# TODO: change modifier key.
|
||||||
bind = $mainMod, M, exec, ~/.local/bin/toggle-waybar
|
bind = $mainMod, M, exec, ~/.local/bin/toggle-waybar
|
||||||
bind = $mainMod, V, togglefloating
|
bind = $mainMod, V, togglefloating
|
||||||
@@ -58,11 +60,10 @@ bind = $mainMod, V, togglefloating
|
|||||||
#bind = $mainMod, J, togglesplit, # dwindle
|
#bind = $mainMod, J, togglesplit, # dwindle
|
||||||
#
|
#
|
||||||
# Screenshots
|
# Screenshots
|
||||||
bind = $mainMod Shift Alt, 3, exec, hyprshot -m window -o ~/Pictures
|
bind = $mainMod SHIFT ALT, 3, exec, hyprshot -m window -o ~/Pictures
|
||||||
bind = $mainMod Shift Alt, 4, exec, hyprshot -m region -o ~/Pictures
|
bind = $mainMod SHIFT ALT, 4, exec, hyprshot -m region -o ~/Pictures
|
||||||
|
|
||||||
bind = Ctrl, M, fullscreen
|
bind = CTRL, F, exec, hyprctl dispatch togglefloating \
|
||||||
bind = Ctrl, F, exec, hyprctl dispatch togglefloating \
|
|
||||||
&& hyprctl dispatch centerwindow
|
&& hyprctl dispatch centerwindow
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
# Move focus with mainMod + arrow keys
|
||||||
@@ -111,6 +112,7 @@ bind = $mainMod, mouse_up, workspace, e-1
|
|||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
bindm = $mainMod, mouse:272, movewindow
|
bindm = $mainMod, mouse:272, movewindow
|
||||||
bindm = $mainMod, mouse:273, resizewindow
|
bindm = $mainMod, mouse:273, resizewindow
|
||||||
|
bindm = $mainMod SHIFT, mouse_down, resizewindow
|
||||||
|
|
||||||
|
|
||||||
# Laptop multimedia keys for volume and LCD brightness
|
# Laptop multimedia keys for volume and LCD brightness
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ bind -n M-l next-window
|
|||||||
bind C-l send-keys 'C-l'
|
bind C-l send-keys 'C-l'
|
||||||
|
|
||||||
bind f run-shell "tmux display-popup -E -w 80% -h 80% $SCRIPTS/tmux-sessionator"
|
bind f run-shell "tmux display-popup -E -w 80% -h 80% $SCRIPTS/tmux-sessionator"
|
||||||
bind-key -r C run-shell -b "~/.local/scripts/tmux-sessionator ~/.dotfiles"
|
bind-key -r C run-shell -b "~/.local/share/scripts/tmux-sessionator ~/.dotfiles"
|
||||||
unbind s
|
unbind s
|
||||||
bind s run-shell -b "~/.config/tmux/plugins/tmux-fzf/scripts/session.sh switch"
|
bind s run-shell -b "~/.config/tmux/plugins/tmux-fzf/scripts/session.sh switch"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user