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

44 lines
1.5 KiB
Text
Raw Normal View History

2022-01-02 16:41:18 +01:00
# ================== #
# Setup window rules #
# ================== #
for_window {
# Mark all windows running under XWayland as such
[shell="xwayland"] title_format "%title [XWayland]"
2023-03-20 16:58:27 +01:00
# window rules for 'special' types of windows (in x11 territory)
2022-01-02 16:41:18 +01:00
[window_role="pop-up"] floating enable
[window_role="bubble"] floating enable
[window_role="dialog"] floating enable
[window_role="task_dialog"] floating enable
[window_role="Preferences"] floating enable
[window_type="dialog"] floating enable
[window_type="menu"] floating enable
[instance="update_installer"] floating enable
2023-03-20 16:58:27 +01:00
# window rules for 'special' types of windows; in wayland we can only go by window title for now
[title="Sharing Indicator"] floating enable
# floating and no border for (firefox) picture in picture windows
[title="Picture-in-Picture"] floating enable; border none
2022-01-02 16:41:18 +01:00
# window rules for specific apps
2022-01-04 21:08:21 +01:00
[app_id="^org.keepassxc.KeePassXC$"] floating enable
2022-01-02 16:41:18 +01:00
[app_id="mpv"] inhibit_idle visible; border none; max_render_time off
# Looking Glass latency tuning. Ref.: https://looking-glass.io/wiki/Wayland_latency_tuning
[app_id="^looking-glass-client$"] max_render_time off
[app_id="showmethekey-gtk"] floating enable; sticky enable
[class="steam"] max_render_time off
[class="steam_app"] max_render_time off
[class="steam_proton"] max_render_time off
[class="steamwebhelper"] max_render_time off
2023-01-09 13:56:55 +01:00
[title="Default - Wine desktop"] fullscreen
# Element crash workaround?
[app_id="Element"] floating enable
2022-01-02 16:41:18 +01:00
}