feat: Organizes, reformats, and cleans up hyprland keybinds config file.

This commit is contained in:
2025-09-30 22:10:23 -04:00
parent 7d4e518479
commit a7033b749e

View File

@@ -3,9 +3,9 @@
############################## ##############################
# See https://wiki.hyprland.org/Configuring/Keywords/ # See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Command/Windows" key as main modifier $mainMod = SUPER # "Command/Windows" key as main modifier
$HYPER = ALT SHIFT WIN CTRL $windowMod = CTRL ALT # Control + Option for window controls.
$windowMod = CTRL OPT $HYPER = ALT SHIFT SUPER CTRL
# See https://wiki.hyprland.org/Configuring/Keywords/ # See https://wiki.hyprland.org/Configuring/Keywords/
@@ -14,103 +14,111 @@ $browser = zen-browser
$fileManager = $terminal -e yazi $fileManager = $terminal -e yazi
$fileBrowser = nautilus $fileBrowser = nautilus
$menu = walker $menu = walker
$pwa = ~/.local/scripts/launch-webapp $scripts = ~/.local/scripts
$launchOrFocusWebapp = ~/.local/scripts/launch-or-focus-webapp $pwa = $scripts/launch-webapp
$launchOrFocusWebapp = $scripts/launch-or-focus-webapp
$tmuxSessionator = $scripts/tmux-sessionator
$clipboardHistory = $terminal --class=com.ghostty.float -e $scripts/uninstall-desktop-app
$uninstallDesktop = $terminal --class=com.ghostty.float -e $scripts/uninstall-desktop-app
$housecallPro = $pwa "https://pro.housecallpro.com/app/calendar_new"
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
################################################## ######################################################
# Apps / hyprland controls # Apps / hyprland controls
# #
# These should in general use the $mainMod prefix # These should in general use the $mainMod prefix
################################################## ######################################################
# MOD # KEY # DESC # Action #
######################################################
bind = $mainMod, Space, exec, $menu # launcher (set above) bindd = $mainMod, Space, Application launcher, exec, $menu
bind = $mainMod, Return, exec, $terminal bindd = $mainMod, Return, New terminal, exec, $terminal
bind = $mainMod SHIFT, Return, exec, $terminal --class=com.ghostty.float bindd = $mainMod SHIFT, Return, New floating terminal, exec, $terminal --class=com.ghostty.float
bind = $mainMod, A, exec, $pwa "https://chatgpt.com" --class com.chromium.chatgpt bindd = $mainMod, A, Chat-gpt [a]i, exec, $pwa "https://chatgpt.com" --class com.chromium.chatgpt
bind = $mainMod, B, exec, $browser bindd = $mainMod, B, New [b]rowser, exec, $browser
bind = $mainMod SHIFT, B, exec, $browser --private-window bindd = $mainMod SHIFT, B, New private [b]rowser, exec, $browser --private-window
bind = $mainMod, C, exec, $terminal -e ~/.local/share/scripts/tmux-sessionator ~/.config bindd = $mainMod, C, [C]onfig folder in tmux session, exec, $terminal -e $tmuxSessionator ~/.config
bind = $mainMod, D, exec, $pwa "https://pro.housecallpro.com/app/calendar_new" bindd = $mainMod, D, [D]ispatch app, exec, $housecallPro
bind = $mainMod SHIFT, D, exec, ~/.local/scripts/toggle-desktop bindd = $mainMod SHIFT, D, Show [d]esktop / hide all windows, exec, $scripts/toggle-desktop
bind = $mainMod, E, exec, $pwa "https://mail.proton.me" bindd = $mainMod, E, [E]mail - personal, exec, $pwa "https://mail.proton.me"
bind = $mainMod SHIFT, E, exec, uwsm app -- thunderbird bindd = $mainMod SHIFT, E, [E]mail - work, exec, uwsm app -- thunderbird
bind = $mainMod, F, exec, $fileManager bindd = $mainMod, F, [F]ile manager - terminal, exec, $fileManager
bind = $mainMod SHIFT, F, exec, $fileBrowser bindd = $mainMod SHIFT, F, [F]ile manager - application, exec, $fileBrowser
bind = $mainMod, G, exec, $pwa "https://git.housh.dev" bindd = $mainMod, G, [G]itea, exec, $pwa "https://git.housh.dev"
bind = $mainMod, H, movefocus, l # move window focus using vim keys bindd = $mainMod, H, Focus window - left, movefocus, l # move window focus using vim keys
bind = $mainMod, J, movefocus, d # move window focus using vim keys bindd = $mainMod SHIFT, H, Workspace - back, workspace, -1
bind = $mainMod, K, movefocus, u # move window focus using vim keys bindd = $mainMod, J, Focus window - down, movefocus, d # move window focus using vim keys
bind = $mainMod, L, movefocus, r # move window focus using vim keys bindd = $mainMod, K, Focus window - up, movefocus, u # move window focus using vim keys
bind = $mainMod, M, exec, $pwa "https://music.apple.com" bindd = $mainMod, L, Focus window - right, movefocus, r # move window focus using vim keys
bind = $mainMod SHIFT, M, exec, ~/.local/scripts/toggle-waybar bindd = $mainMod SHIFT, L, Workspace - forward, workspace, +1
bind = $mainMod, N, exec, $terminal -e nvim bindd = $mainMod, M, [M]usic - apple, exec, $pwa "https://music.apple.com"
bind = $mainMod, P, exec, ~/.local/scripts/proton-pass-manager bindd = $mainMod SHIFT, M, [M]enu bar - toggle visible, exec, ~/.local/scripts/toggle-waybar
bind = $mainMod SHIFT, P, pseudo, # dwindle bindd = $mainMod, P, [P]assword manager, exec, ~/.local/scripts/proton-pass-manager
bind = $mainMod SHIFT, R, exec, ~/.local/scripts/waybar-restart bindd = $mainMod SHIFT, P, Toggle [p]seudo window mode, pseudo, # dwindle
bind = $mainMod, S, togglespecialworkspace, magic bindd = $mainMod SHIFT, R, [R]estart menu bar, exec, ~/.local/scripts/waybar-restart
bind = $mainMod SHIFT, S, movetoworkspacesilent, special:magic bindd = $mainMod, S, Toggle [s]pecial workspace, togglespecialworkspace, magic # use $windowMod S to send window to the special workspace
bind = $mainMod, Y, exec, $pwa "https://youtube.com" bindd = $mainMod, Y, [Y]ouTube, exec, $pwa "https://youtube.com"
bind = $mainMod, U, exec, $pwa "https://unifi.ui.com" bindd = $mainMod, U, [U]nifi, exec, $pwa "https://unifi.ui.com"
bind = $mainMod SHIFT, U, exec, $terminal --class=com.ghostty.float -e ~/.local/scripts/uninstall-desktop-app bindd = $mainMod SHIFT, U, [U]ninstall desktop app, exec, $uninstallDesktop
bind = $mainMod, V, exec, $terminal --class=com.ghostty.clipse -e clipse bindd = $mainMod, V, Clipboard history, exec, $clipboardHistory
bind = $mainMod, W, killactive, bindd = $mainMod, W, Close current window, killactive,
# Switch to workspaces with mainMod + [0-9] # Switch to workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1 bindd = $mainMod, 1, Switch to workspace [1], workspace, 1
bind = $mainMod, 2, workspace, 2 bindd = $mainMod, 2, Switch to workspace [2], workspace, 2
bind = $mainMod, 3, workspace, 3 bindd = $mainMod, 3, Switch to workspace [3], workspace, 3
bind = $mainMod, 4, workspace, 4 bindd = $mainMod, 4, Switch to workspace [4], workspace, 4
bind = $mainMod, 5, workspace, 5 bindd = $mainMod, 5, Switch to workspace [5], workspace, 5
bind = $mainMod, 6, workspace, 6 bindd = $mainMod, 6, Switch to workspace [6], workspace, 6
bind = $mainMod, 7, workspace, 7 bindd = $mainMod, 7, Switch to workspace [7], workspace, 7
bind = $mainMod, 8, workspace, 8 bindd = $mainMod, 8, Switch to workspace [8], workspace, 8
bind = $mainMod, 9, workspace, 9 bindd = $mainMod, 9, Switch to workspace [9], workspace, 9
bind = $mainMod, 0, workspace, 10 bindd = $mainMod, 0, Switch to workspace 1[0], workspace, 10
# Move all workspaces to a monitor # Move all workspaces to a monitor
bind = $mainMod SHIFT, 1, exec, ~/.local/scripts/mv-all-workspaces-to-monitor 1 bindd = $mainMod SHIFT, 1, Switch all workspaces to monitor [1], exec, $scripts/mv-all-workspaces-to-monitor 1
bind = $mainMod SHIFT, 0, exec, ~/.local/scripts/mv-all-workspaces-to-monitor 0 bindd = $mainMod SHIFT, 0, Switch all workspaces to monitor [0], exec, $scripts/mv-all-workspaces-to-monitor 0
#################################################### ####################################################
# Window controls # Window controls
# #
# These should in general use the $windowMod prefix # These should in general use the $windowMod prefix
#################################################### ######################################################
# MOD # KEY # DESC # Action #
bind = CTRL SHIFT, f, exec, ~/.local/scripts/window-toggle-floating ######################################################
bindd = CTRL SHIFT, F, Toggle [f]loating, exec, $scripts/window-toggle-floating
# TODO: Decide which is prefered to switch to fullscreen. # TODO: Decide which is prefered to switch to fullscreen.
bind = CTRL, F, fullscreen, bindd = CTRL, F, Toggle [f]ullscreen, fullscreen,
bind = $windowMod, F, fullscreen, bindd = $windowMod, F, Toggle [f]ullscreen, fullscreen,
bind = $windowMod, H, movewindow, l # move windows with windowMod + vim keys bindd = $windowMod, H, Move window - left, movewindow, l # move windows with windowMod + vim keys
bind = $windowMod, J, movewindow, d # move windows with windowMod + vim keys bindd = $windowMod, J, Move window - down, movewindow, d # move windows with windowMod + vim keys
bind = $windowMod, K, movewindow, u # move windows with windowMod + vim keys bindd = $windowMod, K, Move window - up, movewindow, u # move windows with windowMod + vim keys
bind = $windowMod, L, movewindow, r # move windows with windowMod + vim keys bindd = $windowMod, L, Move window - right , movewindow, r # move windows with windowMod + vim keys
bind = $HYPER, J, togglesplit # dwindle bindd = $HYPER, J, Toggle split orientation, togglesplit # dwindle
bindd = $windowMod, S, Move window to [s]pecial workspace, movetoworkspacesilent, special:magic
# FIX: Changes size of window, this works a different depending on if # FIX: Changes size of window, this works a different depending on if
# the window is on the right or left of the screen. # the window is on the right or left of the screen.
# #
# Resize horizontally # Resize horizontally
bind = $windowMod, EQUAL, resizeactive, 20 0 bindd = $windowMod, EQUAL, Increase window size - horizontal, resizeactive, 20 0
bind = $windowMod, MINUS, resizeactive, -20 0 bindd = $windowMod, MINUS, Decrease window size - horizontal, resizeactive, -20 0
# Resize vertically # Resize vertically
bind = $windowMod SHIFT, EQUAL, resizeactive, 0 20 bindd = $windowMod SHIFT, EQUAL, Increase window size - vertical, resizeactive, 0 20
bind = $windowMod SHIFT, MINUS, resizeactive, 0 -20 bindd = $windowMod SHIFT, MINUS, Decrease window size - vertical, resizeactive, 0 -20
# Move active window to a workspace with mainMod + SHIFT + [0-9] # Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $windowMod, 1, movetoworkspace, 1 bindd = $windowMod, 1, Move window to workspace [1], movetoworkspace, 1
bind = $windowMod, 2, movetoworkspace, 2 bindd = $windowMod, 2, Move window to workspace [2], movetoworkspace, 2
bind = $windowMod, 3, movetoworkspace, 3 bindd = $windowMod, 3, Move window to workspace [3], movetoworkspace, 3
bind = $windowMod, 4, movetoworkspace, 4 bindd = $windowMod, 4, Move window to workspace [4], movetoworkspace, 4
bind = $windowMod, 5, movetoworkspace, 5 bindd = $windowMod, 5, Move window to workspace [5], movetoworkspace, 5
bind = $windowMod, 6, movetoworkspace, 6 bindd = $windowMod, 6, Move window to workspace [6], movetoworkspace, 6
bind = $windowMod, 7, movetoworkspace, 7 bindd = $windowMod, 7, Move window to workspace [7], movetoworkspace, 7
bind = $windowMod, 8, movetoworkspace, 8 bindd = $windowMod, 8, Move window to workspace [8], movetoworkspace, 8
bind = $windowMod, 9, movetoworkspace, 9 bindd = $windowMod, 9, Move window to workspace [9], movetoworkspace, 9
bind = $windowMod, 0, movetoworkspace, 10 bindd = $windowMod, 0, Move window to workspace 1[0], movetoworkspace, 10
# Scroll through existing workspaces with mainMod + scroll # Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_down, workspace, e+1