89 lines
3.3 KiB
Text
89 lines
3.3 KiB
Text
|
|
include $HOME/.config/sway/config.d/window_rules.d/*
|
|
|
|
for_window [shell="xwayland"] title_format "[X] %title"
|
|
|
|
# Discord/Armcord opens in scratchpad
|
|
# for_window [app_id="armcord"] move scratchpad, floating enable, scratchpad hide
|
|
# for_window [class="ArmCord"] move scratchpad, floating enable, scratchpad hide
|
|
# for_window [class="Discord"] move scratchpad, floating enable, scratchpad hide
|
|
# for_window [title="Discord"] move scratchpad, floating enable, scratchpad hide
|
|
|
|
# Floating PiP
|
|
# for_window [title="^Picture-in-Picture$"] floating enable, sticky enable
|
|
|
|
# Thunderbird assigned to workspace 9
|
|
# assign [title="Mozilla Thunderbird$"] workspace "9:"
|
|
|
|
# Sonixd assigned to workspace 10
|
|
# assign [title="^Sonixd$"] workspace "10:"
|
|
|
|
# Floating Copyq
|
|
# for_window [app_id="com.github.hluk.copyq"] floating enable, sticky enable
|
|
|
|
# Floating KeePass
|
|
# for_window [app_id="org.keepassxc.KeePassXC"] floating enable, sticky enable
|
|
|
|
# Dolphin popups
|
|
# for_window [title="(?i)(?:copying|deleting|moving|question|save file)"] floating enable, border pixel 2
|
|
# for_window [window_role="pop-up"] floating enable
|
|
# for_window [window_role="bubble"] floating enable
|
|
# for_window [window_role="dialog"] floating enable
|
|
# for_window [window_type="dialog"] floating enable
|
|
# for_window [title="^(?:Copying|Deleting|Moving|Progress).*Dolphin$"] floating enable
|
|
|
|
# Ryujinx popup
|
|
# for_window [title="^ContentDialogOverlayWindow$"] floating enable
|
|
|
|
# Alacritty Sticky Notes
|
|
# for_window [title="^alacritty_sticky_notes$"] floating enable
|
|
|
|
# Zoom popups
|
|
# for_window [title="^zoom$" class="zoom"] floating enable
|
|
|
|
# Libreoffice popups
|
|
# for_window [app_id="libreoffice-startcenter" title="$Save^"] floating enable
|
|
|
|
set {
|
|
|
|
$popup floating enable; shadows enable; border pixel 1; sticky enable
|
|
$game inhibit_idle focus; floating enable; border none; fullscreen enable; shadows disable
|
|
$float floating enable, sticky enable
|
|
$scratch move scratchpad, floating enable, scratchpad hide
|
|
|
|
}
|
|
|
|
for_window {
|
|
|
|
#popups - float
|
|
[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
|
|
[app_id="org.keepassxc.KeePassXC" title="^(?=.*(^Unlock Database|Browser Access Request$)).*$"] $float
|
|
|
|
#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
|
|
|
|
#float - float, sticky
|
|
[title="^alacritty_sticky_notes$"] $float
|
|
[app_id="com.github.hluk.copyq"] $float
|
|
[title="^Picture-in-Picture$"] $float
|
|
|
|
#scratch
|
|
[app_id="armcord"] $scratch
|
|
[app_id="org.keepassxc.KeePassXC" title="^(?!.*(Unlock Database|Browser Access Request)).*$"] $scratch
|
|
|
|
}
|