dotfiles/.config/sway/config.d/07-window-rules.conf

71 lines
3.2 KiB
Plaintext

# sway # window rules
# auto floating
for_window [class="XTerm|XCalc|Xmessage|Lxappearance|Sxiv|Nsxiv|Tk"] floating enable, move absolute position center
for_window [app_id="org.keepassxc.KeePassXC|org.gnome.Calculator|engrampa|file-roller|lxappearance|mpv|swayimg*|mixer|pavucontrol"] floating enable, move absolute position center
for_window [title="Infos-System|Infos System"] floating enable, move absolute position center
for_window [window_role="pop-up|bubble|task_dialog|Preferences|About"] floating enable, move absolute position center
for_window [window_type="dialog"] floating enable, move absolute position center
# no idle on movies
for_window [app_id="mpv"] inhibit_idle focus
for_window [title="VLC"] inhibit_idle focus
# no transparency for Gimp tools
for_window [class="Gimp"] mark --add no3d
# special icons on title for special apps
# inspired by https://github.com/iguanajuice/sway-font-awesome
for_window [app_id="foot|footclient"] title_format " %title"
for_window [app_id="file-roller"] title_format " %title"
for_window [app_id="eog|eom|feh|ristretto|xviewer|imv|gthumb|org.inkscape.Inkscape"] title_format " %title"
for_window [app_id="epiphany|org.qutebrowser.qutebrowser|firefox|Firefox-esr"] title_format " %title"
for_window [app_id="thunderbird-*"] title_format " %title"
for_window [app_id="mpv"] title_format " %title"
for_window [app_id="irc"] title_format " %title"
for_window [app_id="libreoffice*"] title_format " %title"
for_window [app_id="gedit|geany|kate|mousepad|xed"] title_format " %title"
for_window [app_id="filezilla"] title_format " %title"
for_window [app_id="transmission-gtk"] title_format " %title"
for_window [app_id="player"] title_format " %title"
for_window [app_id="btop"] title_format " %title"
for_window [title="filer"] title_format " %title"
for_window [class="Unison"] title_format " %title"
for_window [class="Pcmanfm"] title_format " %title"
for_window [class="Sxiv|Nsxiv|Gimp"] title_format " %title"
# assign clients to specific workspace
# ws1 mail
assign [app_id="thunderbird*"] $ws1
# ws2 web
assign [app_id="firefox"] $ws2
# ws3 dev
assign [app_id="irc|xmpp|jetbrains-idea"] $ws3
# ws4 files
assign [app_id="(?i)^org[.]gnome[.]Nautilus$"] $ws4
assign [class="(?i)^org[.]gnome[.]Nautilus$"] $ws4
# ws5 video
assign [app_id="(?i)^freetube$"] $ws5
assign [class="(?i)^freetube$"] $ws5
# ws6 meetings
assign [app_id="(?i)^(chromium|chromium-browser|google-chrome|google-chrome-stable|jitsi-meet)$"] $ws6
assign [class="(?i)^(chromium|chromium-browser|google-chrome|google-chrome-stable|jitsi-meet)$"] $ws6
# ws7 games
assign [app_id="(?i)^steam$"] $ws7
assign [class="(?i)^steam$"] $ws7
# ws8 dev tools
assign [app_id="foot|footclient"] $ws8
assign [app_id="(?i)^(bruno|parsec|parsecd)$"] $ws8
assign [class="(?i)^(bruno|parsec|parsecd)$"] $ws8
# ws9 chat
assign [app_id="(?i)^(Mattermost[.]Desktop|Mattermost|discord)$"] $ws9
assign [class="(?i)^(Mattermost[.]Desktop|Mattermost|discord)$"] $ws9
# ws10 agentic
assign [app_id="(?i)^github$"] $ws10
assign [class="(?i)^github$"] $ws10
# ws11 deb
# ws12 music
assign [app_id="player"] $ws12
assign [app_id="(?i)^spotify$"] $ws12
assign [class="(?i)^spotify$"] $ws12