dotfiles/sericea/.config/sway/config.d/40-window-rules.conf

57 lines
1.9 KiB
Plaintext
Raw Normal View History

2024-04-17 01:27:21 -05:00
# vim: set ft=swayconfig:
#
# This file allocates rules for organizing windows
#
2024-06-07 00:28:19 -05:00
## WORKSPACES
set $w1 1
set $w2 2
set $w3 3
set $w4 4
set $w5 5
set $w6 6
set $w7 7
set $w8 8
set $w9 9
set $w10 10
2024-07-05 22:43:00 -05:00
set $w11 11
2024-06-07 00:28:19 -05:00
2024-06-07 00:24:38 -05:00
# 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
2024-04-17 01:27:21 -05:00
for_window {
2024-06-07 00:24:38 -05:00
# Workspace 1 should always be the web browser
2024-04-17 01:27:21 -05:00
[app_id="org.mozilla.firefox"] move container to workspace $w1
2024-06-07 00:24:38 -05:00
# Workspace 2 should contain Steam, if we intend to launch a game this session
2024-06-09 11:14:58 -05:00
#[app_id="com.valvesoftware.Steam"] move container to workspace $w2
2024-06-07 00:24:38 -05:00
# Workspace 8 contains Thunderbird and Keepass
2024-04-17 01:27:21 -05:00
[app_id="org.keepassxc.KeePassXC"] move container to workspace $w8
2024-06-07 00:24:38 -05:00
[app_id="org.mozilla.Thunderbird"] move container to workspace $w8
2024-07-05 22:43:00 -05:00
[class="thunderbird"] move container to workspace $w8
2024-06-07 00:24:38 -05:00
# Workspace 9 should be communications platforms
2024-05-15 10:26:15 -05:00
[app_id="com.dev.vencord.Vesktop"] move container to workspace $w9
[app_id="com.dev.vencord.Vesktop"] inhibit_idle visible
2024-07-05 22:43:00 -05:00
[app_id="vesktop"] move container to workspace $w9
[app_id="vesktop"] inhibit_idle visible
2024-06-07 00:24:38 -05:00
[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
2024-04-17 01:27:21 -05:00
[class="Spotify"] move container to workspace $w10
2024-07-05 22:43:00 -05:00
[app_id="spotube"] move container to workspace $w10
2024-07-21 02:16:35 -05:00
[class="nuclear"] move container to workspace $w10
2024-04-17 01:27:21 -05:00
}