diff options
| author | ryukamish <[email protected]> | 2026-06-10 22:22:23 +0530 |
|---|---|---|
| committer | ryukamish <[email protected]> | 2026-06-10 22:22:23 +0530 |
| commit | 975fec3dd91537c7f2f5b500d59432dfdb3f031b (patch) | |
| tree | d248f0464b94461cdfe8531b3ef26aa615b5065a /.config | |
| parent | 01d8a06ac9a55da57f890545461abb4cabf15051 (diff) | |
fix: window rules for specific windows
Diffstat (limited to '.config')
| -rw-r--r-- | .config/sway/config | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/.config/sway/config b/.config/sway/config index 54f3c88..1537f17 100644 --- 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 ┃ |
