dotfiles/de/home/.config/sway/config.d/window_rules
2025-03-12 16:30:02 -07:00

51 lines
1.9 KiB
Text

include $HOME/.config/sway/config.d/window_rules.d/*
set {
$ii inhibit_idle focus
$popup floating enable; shadows enable; border pixel 1; sticky enable
$game inhibit_idle focus; floating enable; border none; fullscreen enable; shadows disable
$scratch move scratchpad, floating enable, scratchpad hide
}
for_window {
#ii - inhibit idle focus
[app_id="^Kodi$"] $ii
[app_id="^firefox$"] $ii
[app_id="^com.github.iwalton3.jellyfin-media-player$"] $ii
[class="^feishin$"] $ii
#popup - float, sticky
[app_id="libreoffice-startcenter" title="$Save^"] $popup
# [title="^zoom$" class="zoom"] $popup
[title="^ContentDialogOverlayWindow$"] $popup
[window_role="pop-up"] $popup
[window_role="bubble"] $popup
[window_role="dialog"] $popup
[window_type="dialog"] $popup
[title="^(?:Copying|Deleting|Moving|Progress).*Dolphin$"] $popup
[title="^(File|Folder)\s*Already Exists\s*—\s*" app_id="dolphin|org.kde.ark|pcmanfm|pcmanfm-qt"] $popup
[title="Confirm to replace files" app_id="dolphin|org.kde.ark|pcmanfm|pcmanfm-qt"] $popup
[title="^alacritty_sticky_notes$"] $popup
[app_id="com.github.hluk.copyq"] $popup
[title="^Picture-in-Picture$"] $popup
[app_id="org.keepassxc.KeePassXC" title="^(?=.*(^Unlock Database|Browser Access Request$|\[Locked\])).*$"] $popup; resize set height 50 ppt; resize set width 75 ppt
#game - inhibit idle focus, no border, fullscreen, floating
[instance="origin.exe"] $game
[instance="gamescope"] $game
[class="gamescope"] $game
[class="dolphin-emu" title="Dolphin (.*) \| (.*) \| (.*) \| (.*)"] $game
[class="sm64ex"] $game
[class="steam_app.*"] $game
[instance="steam_app.*"] $game
#scratch
[app_id="armcord"] $scratch
[app_id="org.keepassxc.KeePassXC" title="^(?!.*(Unlock Database|Browser Access Request|\[Locked\])).*$"] $scratch
}
assign [app_id="org.kde.tokodon"] workspace number 0
assign [class="RSS.Guard"] workspace number 0