dotfiles/de/home/.config/sway/config.d/window_rules
2025-03-18 14:45:02 -07:00

64 lines
2.2 KiB
Text

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:
$personal_ws workspace 1:$profile_icon
$dev_ws workspace 11:$development_icon
$school_ws workspace 21:$school_icon
$work_ws workspace 31:$work_icon
}
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
#browser profile assignment
[app_id="LibreWolf_Work"] $work_ws
}
scratchpad_minimize true