From ba9fca08d3090ae38fedd5a2583988b711158f10 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 18 Apr 2020 20:51:12 +0200 Subject: .config/sway/config: Adding automatic move to certain containers for some applications. Using waybar as bar. --- .config/sway/config | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) (limited to '.config/sway/config') diff --git a/.config/sway/config b/.config/sway/config index 8d99192..e2ac511 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -211,19 +211,31 @@ mode "resize" { } bindsym $mod+r mode "resize" -# TODO: triggers endless loop within sway! -# + +for_window [class="firefox"] move container to workspace 2 +for_window [class="qutebrowser"] move container to workspace 2 +for_window [class="scide"] move container to workspace 3 +for_window [class="Sonic Pi"] move container to workspace 3 +for_window [class="DialogWindow"] move container to workspace 3 +for_window [class="PatchWindow"] move container to workspace 3 +for_window [class="PdWindow"] move container to workspace 3 +for_window [class="ffado-mixer"] move container to workspace 4 +for_window [class="Carla*"] move container to workspace 4 +for_window [class="Ardour*"] move container to workspace 4 +for_window [class="Hydrogen"] move container to workspace 4 +for_window [class="Yoshimi"] move container to workspace 4 +for_window [class="Zynaddsubfx"] move container to workspace 4 +for_window [class="MediaElch"] move container to workspace 6 +for_window [app_id="ghb"] move container to workspace 7 +for_window [app_id="shotwell"] move container to workspace 8 +for_window [app_id="qjackctl"] move container to workspace 4 +for_window [app_id="qjackctl"] floating enable + # Status Bar: # # Read `man 5 sway-bar` for more information about this section. bar { - position top - status_command while date +'%Y-%m-%d %R'; do sleep 1; done - colors { - statusline #ffffff - background #323232 - inactive_workspace #32323200 #32323200 #5c5c5c - } + swaybar_command waybar } # Execs -- cgit v1.2.3-70-g09d2