Unix3r

Build. Break. Learn. Repeat.

Starting0%
Skip to content

unix3r/dotfiles

Public
main
U Unix3r Initial commit: sway + waybar dotfiles (Catppuccin Mocha) eb290df
175 lines Β· 7.2 KB Raw History
1# ── Keybindings ───────────────────────────────────────────────────
2# A line starting with "#:" describes the bindsym right below it.
3# Those descriptions feed the cheat sheet (Super + /).
4
5floating_modifier $mod normal
6
7# ─── Apps ────────────────────────────────────────────────────────
8#: Open terminal (foot)
9bindsym $mod+Return exec $term
10#: Open alternate terminal (kitty)
11bindsym $mod+Shift+Return exec $term_alt
12#: App launcher
13bindsym $mod+d exec $menu
14#: Command runner
15bindsym $mod+Shift+d exec $runner
16#: Web browser
17bindsym $mod+b exec $browser
18#: File manager
19bindsym $mod+e exec $files
20#: Clipboard history
21bindsym $mod+Shift+v exec $scripts/clipboard.sh
22#: Emoji / symbol picker
23bindsym $mod+period exec $scripts/emoji.sh
24#: Colour picker (copies hex)
25bindsym $mod+Shift+p exec $scripts/colorpicker.sh
26#: Keybinding cheat sheet
27bindsym $mod+slash exec $scripts/keybinds.sh
28
29# ─── Session ─────────────────────────────────────────────────────
30#: Close window
31bindsym $mod+q kill
32#: Reload sway config
33bindsym $mod+Shift+c reload
34#: Power menu
35bindsym $mod+Shift+e exec $scripts/powermenu.sh
36#: Lock screen
37bindsym $mod+Escape exec $lock
38#: Toggle waybar
39bindsym $mod+Shift+b exec pkill -SIGUSR1 waybar
40#: Toggle Do Not Disturb
41bindsym $mod+n exec $scripts/dnd.sh toggle
42#: Dismiss all notifications
43bindsym $mod+Shift+n exec makoctl dismiss --all
44#: Restore last notification
45bindsym $mod+$alt+n exec makoctl restore
46#: Random wallpaper
47bindsym $mod+Shift+w exec $scripts/wallpaper.sh random
48#: Pick wallpaper
49bindsym $mod+w exec $scripts/wallpaper.sh pick
50#: Toggle night light
51bindsym $mod+Shift+t exec $scripts/nightlight.sh toggle
52
53# ─── Focus ───────────────────────────────────────────────────────
54#: Focus left
55bindsym $mod+$left focus left
56#: Focus down
57bindsym $mod+$down focus down
58#: Focus up
59bindsym $mod+$up focus up
60#: Focus right
61bindsym $mod+$right focus right
62bindsym $mod+Left focus left
63bindsym $mod+Down focus down
64bindsym $mod+Up focus up
65bindsym $mod+Right focus right
66#: Focus parent container
67bindsym $mod+a focus parent
68#: Switch focus tiling ↔ floating
69bindsym $mod+space focus mode_toggle
70
71# ─── Move ────────────────────────────────────────────────────────
72#: Move window left
73bindsym $mod+Shift+$left move left
74#: Move window down
75bindsym $mod+Shift+$down move down
76#: Move window up
77bindsym $mod+Shift+$up move up
78#: Move window right
79bindsym $mod+Shift+$right move right
80bindsym $mod+Shift+Left move left
81bindsym $mod+Shift+Down move down
82bindsym $mod+Shift+Up move up
83bindsym $mod+Shift+Right move right
84
85# ─── Workspaces ──────────────────────────────────────────────────
86#: Go to workspace 1
87bindsym $mod+1 workspace number 1
88bindsym $mod+2 workspace number 2
89bindsym $mod+3 workspace number 3
90bindsym $mod+4 workspace number 4
91bindsym $mod+5 workspace number 5
92bindsym $mod+6 workspace number 6
93bindsym $mod+7 workspace number 7
94bindsym $mod+8 workspace number 8
95bindsym $mod+9 workspace number 9
96bindsym $mod+0 workspace number 10
97#: Move window to workspace 1
98bindsym $mod+Shift+1 move container to workspace number 1
99bindsym $mod+Shift+2 move container to workspace number 2
100bindsym $mod+Shift+3 move container to workspace number 3
101bindsym $mod+Shift+4 move container to workspace number 4
102bindsym $mod+Shift+5 move container to workspace number 5
103bindsym $mod+Shift+6 move container to workspace number 6
104bindsym $mod+Shift+7 move container to workspace number 7
105bindsym $mod+Shift+8 move container to workspace number 8
106bindsym $mod+Shift+9 move container to workspace number 9
107bindsym $mod+Shift+0 move container to workspace number 10
108#: Previous workspace (back and forth)
109bindsym $mod+Tab workspace back_and_forth
110#: Next workspace on this output
111bindsym $mod+$alt+Right workspace next_on_output
112#: Previous workspace on this output
113bindsym $mod+$alt+Left workspace prev_on_output
114#: Move workspace to the next monitor
115bindsym $mod+$alt+Shift+Right move workspace to output right
116bindsym $mod+$alt+Shift+Left move workspace to output left
117workspace_auto_back_and_forth yes
118
119# ─── Layout ──────────────────────────────────────────────────────
120#: Split horizontally
121bindsym $mod+semicolon splith
122#: Split vertically
123bindsym $mod+v splitv
124#: Stacking layout
125bindsym $mod+s layout stacking
126#: Tabbed layout
127bindsym $mod+t layout tabbed
128#: Toggle split layout
129bindsym $mod+o layout toggle split
130#: Fullscreen
131bindsym $mod+f fullscreen
132#: Toggle floating
133bindsym $mod+Shift+space floating toggle
134#: Sticky floating window (all workspaces)
135bindsym $mod+Shift+s sticky toggle
136#: Toggle gaps on this workspace
137bindsym $mod+g gaps inner current toggle 6
138
139# ─── Scratchpad ──────────────────────────────────────────────────
140#: Send window to scratchpad
141bindsym $mod+Shift+minus move scratchpad
142#: Show / cycle scratchpad
143bindsym $mod+minus scratchpad show
144#: Drop-down terminal (scratchpad)
145bindsym $mod+grave exec $scripts/dropterm.sh
146
147# ─── Screenshots ─────────────────────────────────────────────────
148#: Screenshot area β†’ clipboard + file
149bindsym Print exec $scripts/screenshot.sh area
150#: Screenshot whole screen
151bindsym Shift+Print exec $scripts/screenshot.sh screen
152#: Screenshot focused window
153bindsym $mod+Print exec $scripts/screenshot.sh window
154#: Screenshot area and annotate (swappy)
155bindsym $mod+Shift+Print exec $scripts/screenshot.sh edit
156
157# ─── Hardware keys (work on the lock screen too) ─────────────────
158bindsym --locked XF86AudioRaiseVolume exec $scripts/volume.sh up
159bindsym --locked XF86AudioLowerVolume exec $scripts/volume.sh down
160bindsym --locked XF86AudioMute exec $scripts/volume.sh mute
161bindsym --locked XF86AudioMicMute exec $scripts/volume.sh mic
162bindsym --locked XF86MonBrightnessUp exec $scripts/brightness.sh up
163bindsym --locked XF86MonBrightnessDown exec $scripts/brightness.sh down
164bindsym --locked XF86AudioPlay exec playerctl play-pause
165bindsym --locked XF86AudioPause exec playerctl play-pause
166bindsym --locked XF86AudioNext exec playerctl next
167bindsym --locked XF86AudioPrev exec playerctl previous
168#: Volume up (no media keys)
169bindsym $mod+F3 exec $scripts/volume.sh up
170#: Volume down (no media keys)
171bindsym $mod+F2 exec $scripts/volume.sh down
172#: Mute (no media keys)
173bindsym $mod+F1 exec $scripts/volume.sh mute
174#: Play / pause media
175bindsym $mod+p exec playerctl play-pause