From a9568985fb3382b4a71916465f24098814a8469f Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Fri, 7 Jun 2024 00:24:38 -0500 Subject: [PATCH] Update window rules --- .../sway/config.d/40-window-rules.conf | 30 +++++++++++++++---- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/sericea/.config/sway/config.d/40-window-rules.conf b/sericea/.config/sway/config.d/40-window-rules.conf index 709fb6ed..d295ea64 100644 --- a/sericea/.config/sway/config.d/40-window-rules.conf +++ b/sericea/.config/sway/config.d/40-window-rules.conf @@ -3,16 +3,36 @@ # This file allocates rules for organizing windows # +# General rules of thought: +# * The primary monitor will contain workspaces 1-7 +# * Secondary monitors will get workspaces 8-10 +# * Important apps go on primary, unimportant ones that are likely to be side- +# content, event-driven, and distractive can go on the secondary +# * Laptops get all 10 on one monitor, but shunting unimportant junk to the +# back workspaces yields a better workflow regardless +# * No rules are set in stone and the user can totally just move stuff around +# with reckless abandon for_window { + # Workspace 1 should always be the web browser [app_id="org.mozilla.firefox"] move container to workspace $w1 - [app_id="org.mozilla.Thunderbird"] move container to workspace $w7 + + # Workspace 2 should contain Steam, if we intend to launch a game this session + [app_id="com.valvesoftware.Steam"] move container to workspace $w2 + + # Workspace 8 contains Thunderbird and Keepass [app_id="org.keepassxc.KeePassXC"] move container to workspace $w8 - [app_id="com.discordapp.Discord"] move container to workspace $w9 - [app_id="com.discordapp.Discord"] inhibit_idle visible + [app_id="org.mozilla.Thunderbird"] move container to workspace $w8 + + # Workspace 9 should be communications platforms [app_id="com.dev.vencord.Vesktop"] move container to workspace $w9 [app_id="com.dev.vencord.Vesktop"] inhibit_idle visible - [class="Element"] move container to workspace $w9 - [class="Element"] inhibit_idle visible + [app_id="com.discordapp.Discord"] move container to workspace $w9 + [app_id="com.discordapp.Discord"] inhibit_idle visible + + [app_id="im.riot.Riot"] move container to workspace $w9 + [app_id="im.riot.Riot"] inhibit_idle visible + + # And Workspace 10 should contain misc. long-running programs [class="Spotify"] move container to workspace $w10 }