sway: Add window rules, update assigns
This commit is contained in:
parent
9ca554afdd
commit
710ce8b210
2 changed files with 31 additions and 6 deletions
|
@ -6,15 +6,15 @@
|
|||
## Get app_id and/or class for all open windows:
|
||||
## `swaymsg -t get_tree | grep app_id`
|
||||
## `swaymsg -t get_tree | grep class`
|
||||
assign [app_id="^virt-manager$"] $ws1
|
||||
assign [app_id="^thunderbird$"] $wsF1
|
||||
assign [app_id="^evolution$"] $wsF5
|
||||
assign [app_id="^brave-browser$"] $ws2
|
||||
assign [app_id="^Element$"] $wsF2
|
||||
assign [class="^TeamSpeak 3$"] $wsF6
|
||||
assign [app_id="^Signal$"] $wsF6
|
||||
assign [app_id="^evolution$"] $wsF5
|
||||
assign [app_id="^Signal$"] $wsF3
|
||||
assign [app_id="^TeamSpeak"] $wsF6
|
||||
assign [app_id="^thunderbird$"] $wsF1
|
||||
assign [app_id="^virt-manager$"] $ws1
|
||||
|
||||
for_window [app_id="^org.keepassxc.KeePassXC$"] floating enable, move scratchpad, border pixel 10
|
||||
assign [class="^TeamSpeak 3$"] $wsF6
|
||||
|
||||
# ============================= #
|
||||
# Assign workspaces to displays #
|
||||
|
|
25
.config/sway/conf.d/window-rules
Normal file
25
.config/sway/conf.d/window-rules
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
# ================== #
|
||||
# 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
|
||||
[app_id="^org.keepassxc.KeePassXC$"] floating enable, move scratchpad, border pixel 10
|
||||
[app_id="mpv"] inhibit_idle visible; border none; max_render_time off
|
||||
|
||||
[class="Steam"] floating enable; max_render_time off
|
||||
}
|
Loading…
Add table
Reference in a new issue