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]"
|
|
|
|
|
|
|
|
# window rules for 'special' types of windows
|
|
|
|
[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
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2022-09-06 08:49:58 +02:00
|
|
|
# `fullscreen disable` makes flameshot work across multiple displays
|
|
|
|
# but it also excludes areas of the screen which are not used by windows e.g. swaybar.
|
2023-01-09 13:56:55 +01:00
|
|
|
[app_id="flameshot"] floating enable; fullscreen disable; move absolute position 0 0; border pixel 0
|
2022-09-06 08:49:58 +02:00
|
|
|
|
2022-08-05 18:59:01 +02:00
|
|
|
# Looking Glass latency tuning. Ref.: https://looking-glass.io/wiki/Wayland_latency_tuning
|
2022-10-27 23:06:24 +02:00
|
|
|
[app_id="^looking-glass-client$"] max_render_time off
|
2022-08-05 18:59:01 +02:00
|
|
|
|
2022-01-04 21:08:21 +01:00
|
|
|
[class="Steam"] max_render_time off
|
2023-01-09 13:56:55 +01:00
|
|
|
|
|
|
|
[app_id="showmethekey-gtk"] floating enable; sticky enable
|
2022-01-02 16:41:18 +01:00
|
|
|
}
|