67 lines
2.8 KiB
Plaintext
67 lines
2.8 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-esr"] $ws2
|
|
assign [class="Firefox-esr|Dillo"] $ws2
|
|
# ws3 irc
|
|
assign [app_id="irc|xmpp"] $ws3
|
|
# ws4 edit
|
|
assign [app_id="geany|libreoffice*"] $ws4
|
|
# ws5 media
|
|
assign [app_id="fr.handbrake.ghb"] $ws5
|
|
assign [class="avidemux3_*|Pitivi|openshot|Flowblade"] $ws5
|
|
# ws6 gfx
|
|
assign [app_id="gimp|org.gnome.gThumb|org.inkscape.Inkscape"] $ws6
|
|
# ws7 vbox
|
|
assign [class="VirtualBox Manager|VirtualBox Machine|Qemu-system-x86_64"] $ws7
|
|
assign [app_id="qemu"] $ws7
|
|
# ws8 bkp
|
|
assign [app_id="filezilla"] $ws8
|
|
assign [app_id="unison*"] $ws8
|
|
# ws9 p2p
|
|
assign [app_id="transmission*"] $ws9
|
|
# ws10 top
|
|
assign [app_id="btop"] $ws10
|
|
assign [class="Psensor"] $ws10
|
|
# ws11 deb
|
|
# ws12 zik
|
|
assign [app_id="player"] $ws12
|
|
|