sway: More rules for floating windows

This commit is contained in:
Peter Cai 2023-08-31 15:54:16 -04:00
parent 975fddd2af
commit eace601ccb

View file

@ -273,8 +273,6 @@ client.focused_inactive 00000000 #bdae93 #282828 00000000
# This is annoying -- just turn it off
focus_follows_mouse no
for_window [app_id="pavucontrol"] floating enable
# Start the systemd-user target for sway and import environment
# Makes service management a bit cleaner
exec_always "systemctl --user import-environment; systemctl --user start sway-session.target"
@ -285,3 +283,8 @@ exec_always dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CUR
# Restart kanshi if it is running
# This restores monitor configuration on reload
exec_always "systemctl --user is-active kanshi && systemctl --user restart kanshi"
# Floating window rules
for_window [app_id="pavucontrol"] floating enable
for_window [app_id="qalculate-qt"] floating enable, resize set width 800 px height 800 px, opacity 1
for_window [app_id="thunderbird" title="Write.*"] floating enable, resize set width 800 px height 800 px