commit 975fec3dd91537c7f2f5b500d59432dfdb3f031b parent 01d8a06ac9a55da57f890545461abb4cabf15051 Author: ryukamish <[email protected]> Date: Wed, 10 Jun 2026 22:22:23 +0530 fix: window rules for specific windows Diffstat:
| M | .config/sway/config | | | 32 | ++++++++++++++++---------------- |
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/.config/sway/config b/.config/sway/config @@ -282,29 +282,29 @@ bindsym $mod+Print exec --no-startup-id slurp \ | tesseract - - \ | wl-copy -n -# === Windows === +# ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ +# ┃ Window Rules ┃ +# ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ floating_modifier $mod normal -for_window [app_id = "floating"] floating enable -for_window [app_id = "floating_update"] floating enable -for_window [app_id = "keepassxc"] floating enable -for_window [title = "^Open File$"] { - floating enable - resize set 900 800 px +set { + $float floating enable; shadows enable; border pixel 1 + $float_resize floating enable; resize set 900 800 px + $popup floating enable; sticky enable; shadows enable } + +for_window [app_id = "floating"] $float +for_window [app_id = "floating_update"] $float +for_window [title = "^Open File$"] $float_resize for_window [app_id = "mpv"] { floating enable - resize set 1024 1000 px -} -for_window [app_id = "pavucontrol"] { - floating enable - resize set 900 800 px -} -for_window [app_id = "TUI.float"] { - floating enable - resize set 900 800 px + resize set 900 900 px } +for_window [app_id = "pavucontrol"] $float_resize +for_window [app_id = "TUI.float"] $float_resize +for_window [app_id="firefox" title="^Picture-in-Picture$"] $popup +# for_window [title="^Picture in Picture$"] $popup # ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ # ┃ Status bar ┃