143 lines
6.8 KiB
Plaintext
143 lines
6.8 KiB
Plaintext
# Default Keybinds
|
|
# visit https://wiki.hyprland.org/Configuring/Binds/ for more info
|
|
|
|
# /* ---- ✴️ Variables ✴️ ---- */ #
|
|
$mainMod = SUPER
|
|
# Default
|
|
$scriptsDir = $HOME/.config/hypr/scripts
|
|
$UserConfigs = $HOME/.config/hypr/UserConfigs
|
|
$UserScripts = $HOME/.config/hypr/UserScripts
|
|
|
|
bind = CTRL ALT, Delete, exec, hyprctl dispatch exit 0
|
|
bind = $mainMod, Q, killactive, #kill
|
|
bind = $mainMod SHIFT, Q, exec, $scriptsDir/KillActiveProcess.sh # Kill active process
|
|
bind = CTRL ALT, L, exec, $scriptsDir/LockScreen.sh # screen lock
|
|
bind = CTRL ALT, P, exec, $scriptsDir/Wlogout.sh # power menu
|
|
bind = $mainMod SHIFT, N, exec, swaync-client -t -sw # swayNC notification panel
|
|
|
|
# Master Layout
|
|
bind = $mainMod CTRL, D, layoutmsg, removemaster
|
|
bind = $mainMod, I, layoutmsg, addmaster
|
|
bind = $mainMod, J, layoutmsg, cyclenext
|
|
bind = $mainMod, K, layoutmsg, cycleprev
|
|
bind = $mainMod CTRL, Return, layoutmsg, swapwithmaster
|
|
|
|
# Dwindle Layout
|
|
bind = $mainMod SHIFT, I, togglesplit # only works on dwindle layout
|
|
bind = $mainMod, P, pseudo, # dwindle
|
|
|
|
# Works on either layout (Master or Dwindle)
|
|
bind = $mainMod, M, exec, hyprctl dispatch splitratio 0.3
|
|
|
|
# group
|
|
bind = $mainMod, G, togglegroup # toggle group
|
|
bind = $mainMod CTRL, tab, changegroupactive # change focus to another window
|
|
|
|
# Cycle windows if floating bring to top
|
|
bind = ALT, tab, cyclenext
|
|
bind = ALT, tab, bringactivetotop
|
|
|
|
# Special Keys / Hot Keys
|
|
bindel = , xf86audioraisevolume, exec, $scriptsDir/Volume.sh --inc # volume up
|
|
bindel = , xf86audiolowervolume, exec, $scriptsDir/Volume.sh --dec # volume down
|
|
bindl = , xf86AudioMicMute, exec, $scriptsDir/Volume.sh --toggle-mic # mic mute
|
|
bindl = , xf86audiomute, exec, $scriptsDir/Volume.sh --toggle # mute
|
|
bindl = , xf86Sleep, exec, systemctl suspend # sleep button
|
|
bindl = , xf86Rfkill, exec, $scriptsDir/AirplaneMode.sh # Airplane mode
|
|
|
|
# media controls using keyboards
|
|
bindl = , xf86AudioPlayPause, exec, $scriptsDir/MediaCtrl.sh --pause
|
|
bindl = , xf86AudioPause, exec, $scriptsDir/MediaCtrl.sh --pause
|
|
bindl = , xf86AudioPlay, exec, $scriptsDir/MediaCtrl.sh --pause
|
|
bindl = , xf86AudioNext, exec, $scriptsDir/MediaCtrl.sh --nxt
|
|
bindl = , xf86AudioPrev, exec, $scriptsDir/MediaCtrl.sh --prv
|
|
bindl = , xf86audiostop, exec, $scriptsDir/MediaCtrl.sh --stop
|
|
|
|
# Screenshot keybindings NOTE: You may need to press Fn key as well
|
|
bind = $mainMod, Print, exec, $scriptsDir/ScreenShot.sh --now # screenshot
|
|
bind = $mainMod SHIFT, Print, exec, $scriptsDir/ScreenShot.sh --area # screenshot (area)
|
|
bind = $mainMod CTRL, Print, exec, $scriptsDir/ScreenShot.sh --in5 # screenshot (5 secs delay)
|
|
bind = $mainMod CTRL SHIFT, Print, exec, $scriptsDir/ScreenShot.sh --in10 # screenshot (10 secs delay)
|
|
bind = ALT, Print, exec, $scriptsDir/ScreenShot.sh --active # screenshot (active window only)
|
|
|
|
# screenshot with swappy (another screenshot tool)
|
|
bind = $mainMod SHIFT, S, exec, $scriptsDir/ScreenShot.sh --swappy #screenshot (swappy)
|
|
|
|
# Resize windows
|
|
binde = $mainMod SHIFT, left, resizeactive,-50 0
|
|
binde = $mainMod SHIFT, right, resizeactive,50 0
|
|
binde = $mainMod SHIFT, up, resizeactive,0 -50
|
|
binde = $mainMod SHIFT, down, resizeactive,0 50
|
|
|
|
# Move windows
|
|
bind = $mainMod CTRL, left, movewindow, l
|
|
bind = $mainMod CTRL, right, movewindow, r
|
|
bind = $mainMod CTRL, up, movewindow, u
|
|
bind = $mainMod CTRL, down, movewindow, d
|
|
|
|
# Move focus with mainMod + arrow keys
|
|
bind = $mainMod, left, movefocus, l
|
|
bind = $mainMod, right, movefocus, r
|
|
bind = $mainMod, up, movefocus, u
|
|
bind = $mainMod, down, movefocus, d
|
|
|
|
# Workspaces related
|
|
bind = $mainMod, tab, workspace, m+1
|
|
bind = $mainMod SHIFT, tab, workspace, m-1
|
|
|
|
# Special workspace
|
|
bind = $mainMod SHIFT, U, movetoworkspace, special
|
|
bind = $mainMod, U, togglespecialworkspace,
|
|
|
|
# The following mappings use the key codes to better support various keyboard layouts
|
|
# 1 is code:10, 2 is code 11, etc
|
|
# Switch workspaces with mainMod + [0-9]
|
|
bind = $mainMod, code:10, workspace, 1 # NOTE: code:10 = key 1
|
|
bind = $mainMod, code:11, workspace, 2 # NOTE: code:11 = key 2
|
|
bind = $mainMod, code:12, workspace, 3 # NOTE: code:12 = key 3
|
|
bind = $mainMod, code:13, workspace, 4 # NOTE: code:13 = key 4
|
|
bind = $mainMod, code:14, workspace, 5 # NOTE: code:14 = key 5
|
|
bind = $mainMod, code:15, workspace, 6 # NOTE: code:15 = key 6
|
|
bind = $mainMod, code:16, workspace, 7 # NOTE: code:16 = key 7
|
|
bind = $mainMod, code:17, workspace, 8 # NOTE: code:17 = key 8
|
|
bind = $mainMod, code:18, workspace, 9 # NOTE: code:18 = key 9
|
|
bind = $mainMod, code:19, workspace, 10 # NOTE: code:19 = key 0
|
|
|
|
# Move active window and follow to workspace mainMod + SHIFT [0-9]
|
|
bind = $mainMod SHIFT, code:10, movetoworkspace, 1 # NOTE: code:10 = key 1
|
|
bind = $mainMod SHIFT, code:11, movetoworkspace, 2 # NOTE: code:11 = key 2
|
|
bind = $mainMod SHIFT, code:12, movetoworkspace, 3 # NOTE: code:12 = key 3
|
|
bind = $mainMod SHIFT, code:13, movetoworkspace, 4 # NOTE: code:13 = key 4
|
|
bind = $mainMod SHIFT, code:14, movetoworkspace, 5 # NOTE: code:14 = key 5
|
|
bind = $mainMod SHIFT, code:15, movetoworkspace, 6 # NOTE: code:15 = key 6
|
|
bind = $mainMod SHIFT, code:16, movetoworkspace, 7 # NOTE: code:16 = key 7
|
|
bind = $mainMod SHIFT, code:17, movetoworkspace, 8 # NOTE: code:17 = key 8
|
|
bind = $mainMod SHIFT, code:18, movetoworkspace, 9 # NOTE: code:18 = key 9
|
|
bind = $mainMod SHIFT, code:19, movetoworkspace, 10 # NOTE: code:19 = key 0
|
|
bind = $mainMod SHIFT, bracketleft, movetoworkspace, -1 # brackets [
|
|
bind = $mainMod SHIFT, bracketright, movetoworkspace, +1 # brackets ]
|
|
|
|
# Move active window to a workspace silently mainMod + CTRL [0-9]
|
|
bind = $mainMod CTRL, code:10, movetoworkspacesilent, 1 # NOTE: code:10 = key 1
|
|
bind = $mainMod CTRL, code:11, movetoworkspacesilent, 2 # NOTE: code:11 = key 2
|
|
bind = $mainMod CTRL, code:12, movetoworkspacesilent, 3 # NOTE: code:12 = key 3
|
|
bind = $mainMod CTRL, code:13, movetoworkspacesilent, 4 # NOTE: code:13 = key 4
|
|
bind = $mainMod CTRL, code:14, movetoworkspacesilent, 5 # NOTE: code:14 = key 5
|
|
bind = $mainMod CTRL, code:15, movetoworkspacesilent, 6 # NOTE: code:15 = key 6
|
|
bind = $mainMod CTRL, code:16, movetoworkspacesilent, 7 # NOTE: code:16 = key 7
|
|
bind = $mainMod CTRL, code:17, movetoworkspacesilent, 8 # NOTE: code:17 = key 8
|
|
bind = $mainMod CTRL, code:18, movetoworkspacesilent, 9 # NOTE: code:18 = key 9
|
|
bind = $mainMod CTRL, code:19, movetoworkspacesilent, 10 # NOTE: code:19 = key 0
|
|
bind = $mainMod CTRL, bracketleft, movetoworkspacesilent, -1 # brackets [
|
|
bind = $mainMod CTRL, bracketright, movetoworkspacesilent, +1 # brackets ]
|
|
|
|
# Scroll through existing workspaces with mainMod + scroll
|
|
bind = $mainMod, mouse_down, workspace, e+1
|
|
bind = $mainMod, mouse_up, workspace, e-1
|
|
bind = $mainMod, period, workspace, e+1
|
|
bind = $mainMod, comma, workspace, e-1
|
|
|
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
bindm = $mainMod, mouse:272, movewindow # NOTE: mouse:272 = left click
|
|
bindm = $mainMod, mouse:273, resizewindow # NOTE: mouse:272 = right click
|