91 lines
2.9 KiB
Plaintext
Raw Normal View History

2024-03-09 21:03:35 +00:00
$main = SUPER
2024-02-29 23:46:43 +00:00
# Apps
2024-03-09 21:03:35 +00:00
bind = $main, B, exec, $browser
bind = $main, D, exec, $editor
bind = $main, E, exec, $files
bind = $main, L, exec, $lockscreen
bind = $main, T, exec, $terminal
2024-03-10 22:52:28 +00:00
bind = $main, O, exec, pkill $menu || $menu
bind = $main, S, exec, pkill $statusbar || $statusbar
2024-03-09 21:03:35 +00:00
bind = $main SHIFT, T, exec, [float;size 960 540;center] $terminal
2024-03-02 16:06:30 +00:00
bind = , Print, exec, $screenshot
2024-02-29 23:46:43 +00:00
# Window management
2024-03-09 21:03:35 +00:00
bind = $main, C, killactive,
bind = $main, F, fullscreen,
bind = $main, V, togglefloating,
bind = $main, P, pseudo,
bind = $main, J, togglesplit,
# Session management
bind = $main, Backspace, exit,
bind = $main, F12, exec, $logout
2024-02-29 23:46:43 +00:00
2024-03-09 21:03:35 +00:00
# Window focus
bind = $main, left, movefocus, l
bind = $main, right, movefocus, r
bind = $main, up, movefocus, u
bind = $main, down, movefocus, d
2024-02-29 23:46:43 +00:00
2024-03-10 13:59:44 +00:00
# Window resizing
binde = $main SHIFT, left, resizeactive, -10 0
binde = $main SHIFT, right, resizeactive, 10 0
binde = $main SHIFT, up, resizeactive, 0 -10
binde = $main SHIFT, down, resizeactive, 0 10
2024-02-29 23:46:43 +00:00
# Switch workspaces with numpad
bind =, KP_Home, workspace, 1
bind =, KP_Up, workspace, 2
bind =, KP_Prior, workspace, 3
bind =, KP_Left, workspace, 4
bind =, KP_Begin, workspace, 5
bind =, KP_Right, workspace, 6
bind =, KP_End, workspace, 7
bind =, KP_Down, workspace, 8
bind =, KP_Next, workspace, 9
2024-03-10 22:52:28 +00:00
# Move window to a specific workspace with numpad
bind = $main, KP_Home, movetoworkspace, 1
bind = $main, KP_Up, movetoworkspace, 2
bind = $main, KP_Prior, movetoworkspace, 3
bind = $main, KP_Left, movetoworkspace, 4
bind = $main, KP_Begin, movetoworkspace, 5
bind = $main, KP_Right, movetoworkspace, 6
bind = $main, KP_End, movetoworkspace, 7
bind = $main, KP_Down, movetoworkspace, 8
bind = $main, KP_Next, movetoworkspace, 9
# Move window to a specific workspace with numbers
2024-03-09 21:03:35 +00:00
bind = $main, 1, movetoworkspace, 1
bind = $main, 2, movetoworkspace, 2
bind = $main, 3, movetoworkspace, 3
bind = $main, 4, movetoworkspace, 4
bind = $main, 5, movetoworkspace, 5
bind = $main, 6, movetoworkspace, 6
bind = $main, 7, movetoworkspace, 7
bind = $main, 8, movetoworkspace, 8
bind = $main, 9, movetoworkspace, 9
# Move window to an adjacent workspace
bind = $main ALT, right, movetoworkspace, +1
bind = $main ALT, left, movetoworkspace, -1
2024-02-29 23:46:43 +00:00
2024-03-09 21:03:35 +00:00
# Special workspace (scratchpad)
2024-03-10 13:59:44 +00:00
bind = $main, KP_Enter, togglespecialworkspace, magic
bind = $main SHIFT, KP_Enter, movetoworkspace, special:magic
2024-02-29 23:46:43 +00:00
2024-03-09 21:03:35 +00:00
# Move and resize windows (main + LMB/RMB and drag)
bindm = $main, mouse:272, movewindow
bindm = $main, mouse:273, resizewindow
2024-02-29 23:46:43 +00:00
2024-03-09 21:03:35 +00:00
# Media player control
bindl =, XF86AudioPlay, exec, playerctl play-pause
bindl =, XF86AudioNext, exec, playerctl next
bindl =, XF86AudioPrev, exec, playerctl previous
2024-02-29 23:46:43 +00:00
# Volume control
bindle =, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+
bindle =, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-
bindl =, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle