2024-03-02 23:49:00 +01:00

70 lines
2.1 KiB
Plaintext

$leader = SUPER
$movews = CTRL ALT
# Apps
bind = $leader, T, exec, $terminal
bind = $leader, B, exec, $browser
bind = $leader, E, exec, $files
bind = $leader, L, exec, $lockscreen
bind = $leader, Space, exec, $menu
bind = $leader, F12, exec, $logout
bind = , Print, exec, $screenshot
# Window management
bind = $leader, C, killactive,
bind = $leader, F, fullscreen,
bind = $leader, V, togglefloating,
bind = $leader, P, pseudo,
bind = $leader, J, togglesplit,
bind = $leader, M, exit,
# Move focus with leader + arrow keys
bind = $leader, left, movefocus, l
bind = $leader, right, movefocus, r
bind = $leader, up, movefocus, u
bind = $leader, down, movefocus, d
# 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
# Move active window to an adjacent workspace
bind = $movews, right, movetoworkspace, +1
bind = $movews, left, movetoworkspace, -1
# Move active window to a specific workspace
bind = $movews, 1, movetoworkspace, 1
bind = $movews, 2, movetoworkspace, 2
bind = $movews, 3, movetoworkspace, 3
bind = $movews, 4, movetoworkspace, 4
bind = $movews, 5, movetoworkspace, 5
bind = $movews, 6, movetoworkspace, 6
bind = $movews, 7, movetoworkspace, 7
bind = $movews, 8, movetoworkspace, 8
bind = $movews, 9, movetoworkspace, 9
# Example special workspace (scratchpad)
bind = $leader, S, togglespecialworkspace, magic
bind = $leader SHIFT, S, movetoworkspace, special:magic
# Move/resize windows with leader + LMB/RMB and dragging
bindm = $leader, mouse:272, movewindow
bindm = $leader, mouse:273, resizewindow
# 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
# Media keys
bindl =, XF86AudioPlay, exec, playerctl play-pause
bindl =, XF86AudioNext, exec, playerctl next
bindl =, XF86AudioPrev, exec, playerctl previous