Unix3r

Build. Break. Learn. Repeat.

Starting0%
Skip to content

unix3r/dotfiles

Public
main
U Unix3r Initial commit: sway + waybar dotfiles (Catppuccin Mocha) eb290df
37 lines Β· 2.1 KB Raw History
1# ── Window rules ──────────────────────────────────────────────────
2# Find app_id / class: swaymsg -t get_tree | grep -E '"(app_id|class)"'
3
4# Float small utility windows
5for_window [app_id="pavucontrol"] floating enable, resize set 800 550
6for_window [app_id="org.pulseaudio.pavucontrol"] floating enable, resize set 800 550
7for_window [app_id="blueman-manager"] floating enable, resize set 700 500
8for_window [app_id="nm-connection-editor"] floating enable
9for_window [app_id="nwg-look"] floating enable
10for_window [app_id="swappy"] floating enable
11for_window [app_id="org.gnome.Calculator"] floating enable
12for_window [app_id="mpv"] floating enable, resize set 960 540
13for_window [app_id="imv"] floating enable
14
15# Dialogs and pop-ups
16for_window [window_role="pop-up"] floating enable
17for_window [window_role="bubble"] floating enable
18for_window [window_role="dialog"] floating enable
19for_window [window_type="dialog"] floating enable
20for_window [title="(?:Open|Save) (?:File|Folder|As)"] floating enable, resize set 900 600
21for_window [title="^File Operation Progress$"] floating enable
22
23# Firefox / Chromium picture-in-picture: float, pin to every workspace, bottom-right
24for_window [title="^Picture-in-Picture$"] floating enable, sticky enable, resize set 480 270, move position 100 ppt 100 ppt, move left 500, move up 290
25
26# Drop-down terminal
27for_window [app_id="dropterm"] floating enable, resize set 80 ppt 50 ppt, move position center, move scratchpad, scratchpad show
28
29# Don't lock / blank the screen while something is fullscreen (videos, games)
30for_window [shell="xwayland"] title_format "%title [X]"
31for_window [app_id=".*"] inhibit_idle fullscreen
32for_window [class=".*"] inhibit_idle fullscreen
33
34# Send apps to workspaces (uncomment to use)
35# assign [app_id="firefox"] workspace number 2
36# assign [class="discord"] workspace number 9
37# assign [app_id="org.telegram.desktop"] workspace number 9