Unix3r

Build. Break. Learn. Repeat.

Starting0%
Skip to content

unix3r/dotfiles

Public
main
U Unix3r Initial commit: sway + waybar dotfiles (Catppuccin Mocha) eb290df
45 lines Β· 1.9 KB Raw History
1# ── Modes ─────────────────────────────────────────────────────────
2
3# Resize: Super+r, then hjkl/arrows. Shift = bigger steps.
4set $mode_resize " resize [hjkl] small [HJKL] big [Esc] done"
5mode $mode_resize {
6 bindsym $left resize shrink width 20px
7 bindsym $down resize grow height 20px
8 bindsym $up resize shrink height 20px
9 bindsym $right resize grow width 20px
10 bindsym Left resize shrink width 20px
11 bindsym Down resize grow height 20px
12 bindsym Up resize shrink height 20px
13 bindsym Right resize grow width 20px
14 bindsym Shift+$left resize shrink width 80px
15 bindsym Shift+$down resize grow height 80px
16 bindsym Shift+$up resize shrink height 80px
17 bindsym Shift+$right resize grow width 80px
18 bindsym Return mode "default"
19 bindsym Escape mode "default"
20 bindsym $mod+r mode "default"
21}
22#: Resize mode
23bindsym $mod+r mode $mode_resize
24
25# Passthrough: sends every key to the focused app (VMs, remote desktops).
26set $mode_pass " passthrough [Super+F12] exit"
27mode $mode_pass {
28 bindsym $mod+F12 mode "default"
29}
30#: Passthrough mode (for VMs / RDP)
31bindsym $mod+F12 mode $mode_pass
32
33# Quick system actions: Super+Shift+x, then one key.
34set $mode_system " system [l]ock [e]xit [s]uspend [r]eboot [p]oweroff [Esc]"
35mode $mode_system {
36 bindsym l exec $lock, mode "default"
37 bindsym e exec swaymsg exit, mode "default"
38 bindsym s exec systemctl suspend, mode "default"
39 bindsym r exec systemctl reboot, mode "default"
40 bindsym p exec systemctl poweroff, mode "default"
41 bindsym Return mode "default"
42 bindsym Escape mode "default"
43}
44#: System mode (lock / exit / suspend / reboot / poweroff)
45bindsym $mod+Shift+x mode $mode_system