dot/outerheaven.init3.home/.config/sway/16-for_windows.conf

85 lines
4.5 KiB
Text
Raw Normal View History

2024-06-18 13:09:58 +00:00
## per-window preferences
# eg: title format, floating, opacity
#
# add app_id to window title
# styling requires pango be enabled in the font of the main config
# for_window [title="."] title_format "<b>%title</b> (%app_id)"
#
# very-generic titles will benefit from anchors (^...$) - it's effectively a wildcard otherwise
#
# for_window [shell="xdg_shell"] title_format "<b>%title</b> <i>(%app_id)</i>"
# commented out the above to only expose xwayland things and reduce repetition in titles
for_window [shell="xwayland"] title_format "<span> %title <i>[X11]</i> </span>"
# added 3/17/2023: enable CSDs for floating windows - client side decorations
for_window [floating] border csd; sticky enable
# make polkit, file managers, and other dialog prompts float
# - no longer a fullscreen-ish window
# - 'sticky'; follows across workspaces
# - has csd for potential shadows/etc
# gnome polkit segfaults sometimes when needed (eg: stopping a service as regular user), don't use it
for_window [app_id="xfce-polkit"] floating enable; sticky enable
for_window [app_id="lxqt-policykit-agent"] floating enable; sticky enable
for_window [app_id="thunar"] floating enable; sticky enable; border normal
for_window [app_id="solaar"] floating enable; sticky enable; border normal
for_window [app_id="nm-connection-editor"] floating enable; sticky enable; border csd
# common things that should float, also made sticky
# snippet from gentoo wiki for Sway: https://wiki.gentoo.org/wiki/Sway#Automatic_floating_windows
for_window [window_role="pop-up"] floating enable; sticky enable
for_window [window_role="bubble"] floating enable; sticky enable
for_window [window_role="dialog"] floating enable; sticky enable
for_window [window_role="task_dialog"] floating enable; sticky enable
for_window [window_role="About"] floating enable; sticky enable
for_window [window_type="menu"] floating enable; sticky enable
for_window [window_type="dialog"] floating enable; sticky enable
for_window [app_id="org.kde.elisa" title="Configure.*$"] sticky enable; floating enable
for_window [app_id="albert"] floating enable; border none
for_window [app_id="com.github.gi_lom.dialect"] floating enable
# make Discord file open windows only float - specifically cased app_id and no title
for_window [app_id="Discord" title=""] floating enable
for_window [app_id="org.gnome.Calculator"] floating enable
# for_window [app_id="org.gnome.Calendar"] floating enable
for_window [app_id="org.kde.dolphin"] floating enable; border normal
for_window [app_id="org.mozilla.firefox" title="^About( Mozilla)? Firefox$"] floating enable; sticky enable; border normal
for_window [app_id="org.mozilla.firefox" title="^Library$"] floating enable; sticky enable; border normal
for_window [app_id="thunderbird" title="^About Mozilla Thunderbird$"] floating enable; sticky enable
for_window [class="XEyes" title="xeyes"] floating enable; border none
# make the main pcsx2 window float -- the double spacing is significant
for_window [class="PCSX2" title="PCSX2 .*$"] floating enable
# make mpv / other windows sticky, appear on any workspace on that output
for_window [app_id=mpv] sticky enable; border csd
# get rid of annoying webex popup
for_window [app_id="org.mozilla.firefox" title="Firefox — Sharing Indicator"] kill
# mark wayland/xwayland browser windows, to inhibit idle when fullscreen
#for_window [class="Chromium-browser"] mark Browser
#for_window [class="Brave-browser"] mark Browser
#for_window [class="firefox"] mark Browser
#for_window [class="work-firefox"] mark Browser
#for_window [app_id="Chromium-browser"] mark Browser
#for_window [app_id="brave-browser"] mark Browser
#for_window [app_id="firefox"] mark Browser
#for_window [app_id="org.mozilla.firefox"] mark Browser
#for_window [app_id="work-firefox"] mark Browser
# CS2 is floating for some reason, stop it
for_window [class="cs2" title="Counter-Strike 2"] floating disable; fullscreen enable; border none; max_render_time off
# inhibit scrensaver for fullscreen browser windows
#for_window [con_mark="Browser"] {
# inhibit_idle fullscreen
# max_render_time off
#}
# misc Steam fixes, also from Gentoo wiki (link above)
for_window [class="^Steam$" title="^Settings$"] floating enable; sticky enable
for_window [class="steam" title="Steam Settings"] floating enable; sticky enable
for_window [class="^Steam$" title="^Steam - Self Updater$"] floating enable; sticky enable
for_window [class="^Steam$" title="^Screenshot Uploader$"] floating enable; sticky enable
for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Required$"] floating enable; sticky enable