include $HOME/.config/sway/config.d/window_rules.d/* set { #window behavior $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 #workspace assignments $home_ws workspace 0: } 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 { #home workspace assignment [app_id="org.kde.tokodon"] $home_ws [class="RSS.Guard"] $home_ws } scratchpad_minimize true