Updated config

This commit is contained in:
2024-03-09 22:03:35 +01:00
parent 6abf78bec4
commit e2e8834d8c
14 changed files with 99 additions and 81 deletions

View File

@ -1,31 +1,32 @@
$leader = SUPER
$movews = CTRL ALT
$main = SUPER
# Apps
bind = $leader, T, exec, $terminal
bind = $leader, B, exec, $browser
bind = $leader, E, exec, $files
bind = $leader, D, exec, $terminal -e $editor
bind = $leader, L, exec, $lockscreen
bind = $leader, Space, exec, $menu
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
bind = $main, M, exec, pkill $statusbar || $statusbar
bind = $main, Space, exec, $menu
bind = $main SHIFT, T, exec, [float;size 960 540;center] $terminal
bind = , Print, exec, $screenshot
# Session management
bind = $leader, Backspace, exit,
bind = $leader, F12, exec, $logout
# Window management
bind = $leader, C, killactive,
bind = $leader, F, fullscreen,
bind = $leader, V, togglefloating,
bind = $leader, P, pseudo,
bind = $leader, J, togglesplit,
bind = $main, C, killactive,
bind = $main, F, fullscreen,
bind = $main, V, togglefloating,
bind = $main, P, pseudo,
bind = $main, J, togglesplit,
# 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
# Session management
bind = $main, Backspace, exit,
bind = $main, F12, exec, $logout
# Window focus
bind = $main, left, movefocus, l
bind = $main, right, movefocus, r
bind = $main, up, movefocus, u
bind = $main, down, movefocus, d
# Switch workspaces with numpad
bind =, KP_Home, workspace, 1
@ -38,35 +39,35 @@ 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 window to a specific workspace
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 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
# Move window to an adjacent workspace
bind = $main ALT, right, movetoworkspace, +1
bind = $main ALT, left, movetoworkspace, -1
# Example special workspace (scratchpad)
bind = $leader, S, togglespecialworkspace, magic
bind = $leader SHIFT, S, movetoworkspace, special:magic
# Special workspace (scratchpad)
bind = $main, Z, togglespecialworkspace, magic
bind = $main SHIFT, Z, movetoworkspace, special:magic
# Move/resize windows with leader + LMB/RMB and dragging
bindm = $leader, mouse:272, movewindow
bindm = $leader, mouse:273, resizewindow
# Move and resize windows (main + LMB/RMB and drag)
bindm = $main, mouse:272, movewindow
bindm = $main, mouse:273, resizewindow
# Media player control
bindl =, XF86AudioPlay, exec, playerctl play-pause
bindl =, XF86AudioNext, exec, playerctl next
bindl =, XF86AudioPrev, exec, playerctl previous
# 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