102 lines
3.5 KiB
Text
102 lines
3.5 KiB
Text
|
|
include $HOME/.config/sway/config.d/window_rules.d/*
|
|
|
|
set {
|
|
#window behavior
|
|
#misc properties
|
|
$ii inhibit_idle focus
|
|
$float floating enable, shadows enable
|
|
$half resize set 50ppt 50ppt
|
|
$small resize set width 400, resize set height 400
|
|
$med resize set width 600, resize set height 500
|
|
$large resize set width 75ppt, resize set height 50ppt
|
|
$xl resize set width 90ppt, resize set height 90ppt
|
|
|
|
#popup windows
|
|
$popup $float, $half, border pixel 3, sticky enable
|
|
#game windows? dunno if these rules do anything really
|
|
$game $ii, $float, border none, fullscreen enable, shadows disable
|
|
#scratchpad windows
|
|
$scratch $float, move scratchpad, scratchpad hide
|
|
#status bar window
|
|
$sb floating enable, sticky enable, resize set width 400, resize set height 400
|
|
#large status bar window
|
|
$sbxl resize set width 600, resize set height 500
|
|
#move to cursor
|
|
$atcursor move position cursor, move down 60
|
|
#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, $med
|
|
# [title="^zoom$" class="zoom"] $popup
|
|
[title="^ContentDialogOverlayWindow$"] $popup, $half
|
|
[app_id="xdg-desktop-portal-gtk" title="Open Files"] $popup, $half
|
|
[window_role="pop-up"] $popup, $med
|
|
[window_role="bubble"] $popup, $med
|
|
[window_role="dialog"] $popup, $med
|
|
[window_type="dialog"] $popup, $med
|
|
[title="^Deleting.*Dolphin$"] $popup, $med
|
|
[title="^(File|Folder)\s*Already Exists\s*—\s*" app_id="dolphin|org.kde.ark|pcmanfm|pcmanfm-qt"] $popup, $med
|
|
[title="Confirm to replace files" app_id="dolphin|org.kde.ark|pcmanfm|pcmanfm-qt"] $popup, $med
|
|
[title="^alacritty_sticky_notes$"] $popup, $med
|
|
[app_id="udiskie"] $popup, $med
|
|
[title="^Picture-in-Picture$"] $popup, $med
|
|
[title="^Extension: (.*)Bitwarden(.*)"] $float, $large
|
|
[app_id="xdg-desktop-portal-gtk"] $popup, $half
|
|
[class="^feh$"] $popup, $atcursor, $small
|
|
[app_id="org.kde.dolphin" title="^Extracting Files"] $popup, $med
|
|
|
|
#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="vesktop"] $scratch
|
|
[class="^Signal$"] $scratch
|
|
[app_id="^org.signal.Signal$"] $scratch
|
|
[app_id="^signal$"] $scratch
|
|
[title="^Progress Dialog.*" app_id="org.kde.dolphin"] $scratch
|
|
[title="^Copying.*" app_id="org.kde.dolphin"] $scratch
|
|
[title="^Moving.*" app_id="org.kde.dolphin"] $scratch
|
|
[app_id="gurk-rs"] $scratch
|
|
|
|
#status bar windows
|
|
[app_id="pavucontrol-qt$"] $sb, $small, $atcursor
|
|
[app_id="nm-connection-editor$"] $sb, $small, $atcursor
|
|
[app_id="blueman-manager$"] $sb, $small, $atcursor
|
|
[app_id="nextcloud$"] $sb, $med, $atcursor
|
|
# [app_id=""] $statusbar
|
|
|
|
}
|
|
|
|
assign {
|
|
#home workspace assignment
|
|
[app_id="org.kde.tokodon"] $home_ws
|
|
[app_id="io.github.martinrotter.rssguard"] $home_ws
|
|
}
|
|
|
|
no_focus {
|
|
[title="^Picture-in-Picture$"]
|
|
[title="^Progress Dialog.*" app_id="org.kde.dolphin"]
|
|
[title="^Steam Input On-screen Keyboard$"]
|
|
}
|
|
scratchpad_minimize true
|