Files
nixos-setup/configs/hypr/hyprland.d/keybindings.conf
T
2026-02-05 13:43:00 -05:00

108 lines
4.4 KiB
Plaintext

$mainMod = SUPER
bind = $mainMod, T, exec, $terminal
bind = $mainMod, space, exec, $menu
# bind = $mainMod, B, exec, chromium --profile-directory=ProfilePersonal
# bind = $mainMod Alt, B, exec, chromium --profile-directory=ProfileWork
# bind = $mainMod, E, exec, wofi-emoji
# bind = $mainMod, Q, killactive,
# bind = $mainMod, V, togglefloating,
# bind = $mainMod, Tab, cyclenext
# #bind = $mainMod, G, overview:toggle
# # Move focus with mainMod + arrow keys
# bind = $mainMod, left, movetoworkspace, m-1
# bind = $mainMod, right, movetoworkspace, m+1
# bind = $mainMod Ctrl, right, movetoworkspace, emptym
# bind = $mainMod alt, up, movewindow, u
# bind = $mainMod alt, left, movewindow, l
# bind = $mainMod alt, right, movewindow, r
# bind = $mainMod alt, down, movewindow, d
# # Move/resize windows with mainMod + LMB/RMB and dragging
# bindm = $mainMod, mouse:272, movewindow
# bindm = $mainMod, mouse:273, resizewindow
# # Laptop multimedia keys for volume and LCD brightness
# bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
# bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
# bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
# bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
# bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+
# bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-
# # Requires playerctl
# bindl = , XF86AudioNext, exec, playerctl next
# bindl = , XF86AudioPause, exec, playerctl play-pause
# bindl = , XF86AudioPlay, exec, playerctl play-pause
# bindl = , XF86AudioPrev, exec, playerctl previous
# === Launcher & Apps ===
bind = $mainMod SHIFT, H, exec, show-hotkey-overlay
bind = $mainMod, Z, exec, flatpak run app.zen_browser.zen
bind = $mainMod, B, exec, chromium
bind = $mainMod, E, exec, wofi-emoji
# bind = $mainMod ALT, L, exec, makoctl dismiss -a
# === Audio and Brightness ===
# bindl = , XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise
# bindl = , XF86AudioLowerVolume, exec, swayosd-client --output-volume lower
# bindl = , XF86AudioMute, exec, swayosd-client --output-volume mute-toggle
# bindl = , XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle
# bindl = , XF86MonBrightnessUp, exec, swayosd-client --brightness raise
# bindl = , XF86MonBrightnessDown, exec, swayosd-client --brightness lower
bindl = , XF86AudioRaiseVolume, exec, dms ipc call audio increment 10
bindl = , XF86AudioLowerVolume, exec, dms ipc call audio decrement 10
bindl = , XF86AudioMute, exec, dms ipc call audio mute
bindl = , XF86AudioMicMute, exec, dms ipc call audio micmute
bindl = , XF86MonBrightnessUp, exec, dms ipc call brightness increment 10 ""
bindl = , XF86MonBrightnessDown, exec, dms ipc call brightness decrement 10 ""
# === Window Focus ===
bind = $mainMod, LEFT, movefocus, l
bind = $mainMod, RIGHT, movefocus, r
bind = $mainMod, UP, movefocus, u
bind = $mainMod, DOWN, movefocus, d
# Next monitor
bind = $mainMod SHIFT, TAB, focusmonitor, e # e = next monitor
# Overview
bind = $mainMod, TAB, exec, dms ipc call hypr toggleOverview
# === Move / Swap Windows ===
bind = $mainMod CTRL, LEFT, movetoworkspace, m-1
bind = $mainMod CTRL, RIGHT, movetoworkspace, emptym
bind = $mainMod SHIFT, LEFT, movewindow, l
bind = $mainMod SHIFT, RIGHT, movewindow, r
bind = $mainMod SHIFT, UP, movetoworkspace, r
bind = $mainMod SHIFT, DOWN, movetoworkspace, l
# === Layout and Window Modes ===
bind = $mainMod, W, togglesplit
bind = $mainMod, F, fullscreen, 0 # column maximize → regular fullscreen
bind = $mainMod SHIFT, F, fullscreen, 1 # true fullscreen
bind = $mainMod CTRL, F, resizeactive, exact 100% # reset height analog
bind = $mainMod, V, togglefloating
# === Centering and Resizing ===
bind = $mainMod, c, centerwindow
bind = $mainMod, MINUS, resizeactive, -10% 0
bind = $mainMod, EQUAL, resizeactive, +10% 0
bind = $mainMod SHIFT, MINUS, resizeactive, 0 -10%
bind = $mainMod SHIFT, EQUAL, resizeactive, 0 +10%
# === Misc ===
bind = $mainMod, ESCAPE, exec, toggle-keyboard-shortcuts-inhibit # may need custom script
bind = , PRINT, exec, sh -c 'grim -g "$(slurp)" - | satty -f -'
bind = $mainMod, P, exec, sh -c 'grim -g "$(slurp)" - | satty -f -'
bind = $mainMod, R, exec, ~/.config/niri/screen-record.sh
bind = CTRL ALT, DELETE, exit,
bind = $mainMod, Q, killactive
# bind = $mainMod CTRL, W, exec, sh -c '/home/ari/.config/niri/start-up-script.sh'