From ebf268e0ea25e0e57bc46de615a0136173aa2249 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Tue, 10 Sep 2019 19:14:36 -0400 Subject: [PATCH] Gave more used screens more virtual desktops --- i3/desktop.conf | 42 ++++++++++++++++++++++++++--------- i3/i3wm-config-gen.sh | 2 ++ i3/shared.conf | 2 +- scripts/system-start-audio.sh | 2 +- 4 files changed, 35 insertions(+), 13 deletions(-) diff --git a/i3/desktop.conf b/i3/desktop.conf index 80195b4..8f8a703 100644 --- a/i3/desktop.conf +++ b/i3/desktop.conf @@ -1,13 +1,13 @@ # Assign workspaces to monitors -workspace $ws1 output HDMI-0 +workspace $ws1 output DP-4 workspace $ws2 output DP-4 -workspace $ws3 output DVI-D-0 -workspace $ws4 output HDMI-0 -workspace $ws5 output DP-4 +workspace $ws3 output DP-4 +workspace $ws4 output DP-4 +workspace $ws5 output DVI-D-0 workspace $ws6 output DVI-D-0 -workspace $ws7 output HDMI-0 -workspace $ws8 output DP-4 -workspace $ws9 output DVI-D-0 +workspace $ws7 output DVI-D-0 +workspace $ws8 output DVI-D-0 +workspace $ws9 output HDMI-0 workspace $ws10 output HDMI-0 mode "$g13" { @@ -31,11 +31,31 @@ exec_always --no-startup-id sh ~/.config/scripts/system-start-audio.sh for_window [title="Google Play Music Desktop Player"] move to workspace $ws10 # Starting Overwatch -for_window [class="Wine" title="Overwatch"] move to workspace $ws8 +for_window [class="Wine" title="Overwatch"] move to workspace $ws4 for_window [class="Wine" title="Overwatch"] exec --no-startup-id cat ~/.config/g13/overwatch.bind > /tmp/g13-0 && sleep .1 && cat ~/.config/g13/overwatch.lpbm > /tmp/g13-0 -for_window [class="Wine" title="Blizzard Battle.net"] move to workspace $ws8 +for_window [class="Wine" title="Blizzard Battle.net"] move to workspace $ws4 for_window [class="Lutris"] move to workspace $ws8 # Starting DaVinci Resolve -for_window [class="resolve"] move to workspace $ws5 -for_window [class="resolve"] exec --no-startup-id cat ~/.config/g13/resolve.bind > /tmp/g13-0 && sleep .1 && cat ~/.config/g13/resolve.lpbm > /tmp/g13-0 \ No newline at end of file +for_window [class="resolve"] move to workspace $ws1 +for_window [class="resolve"] exec --no-startup-id cat ~/.config/g13/resolve.bind > /tmp/g13-0 && sleep .1 && cat ~/.config/g13/resolve.lpbm > /tmp/g13-0 + +# Starting Reaper +for_window [class="REAPER"] move to workspace $ws3 + +# Steam +for_window [class="^Steam$"] move to workspace $ws4 +for_window [class="^Steam$" title="^Friends$"] floating enable +for_window [class="^Steam$" title="Steam - News"] floating enable +for_window [class="^Steam$" title=".* - Chat"] floating enable +for_window [class="^Steam$" title="^Settings$"] floating enable +for_window [class="^Steam$" title=".* - event started"] floating enable +for_window [class="^Steam$" title=".* CD key"] floating enable +for_window [class="^Steam$" title="^Steam - Self Updater$"] floating enable +for_window [class="^Steam$" title="^Screenshot Uploader$"] floating enable +for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Required$"] floating enable +for_window [title="^Steam Keyboard$"] floating enable + +# Jetbrains +for_window [class="^com-intellij-updater-Runner$" title="^Update$"] floating enable +for_window [instance="^sun-awt-X11-XDialogPeer$" title="^Complete Installation$"] floating enable \ No newline at end of file diff --git a/i3/i3wm-config-gen.sh b/i3/i3wm-config-gen.sh index fbb9fe0..28e24ee 100755 --- a/i3/i3wm-config-gen.sh +++ b/i3/i3wm-config-gen.sh @@ -4,3 +4,5 @@ . ~/.config/settings.conf cat ~/.config/i3/shared.conf ~/.config/i3/${computer}.conf > ~/.config/i3/config + +i3-msg reload diff --git a/i3/shared.conf b/i3/shared.conf index 7657816..f4ce784 100644 --- a/i3/shared.conf +++ b/i3/shared.conf @@ -101,7 +101,7 @@ bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+0 move container to workspace $ws10 # reload the configuration file -bindsym $mod+Shift+c exec "sh ~/.config/i3/i3wm-config-gen.sh" ; reload +bindsym $mod+Shift+c exec "sh ~/.config/i3/i3wm-config-gen.sh" # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r exec "sh ~/.config/i3/i3wm-config-gen.sh" ; restart # exit i3 (logs you out of your X session) diff --git a/scripts/system-start-audio.sh b/scripts/system-start-audio.sh index 119e676..ca1a005 100644 --- a/scripts/system-start-audio.sh +++ b/scripts/system-start-audio.sh @@ -22,4 +22,4 @@ alsa_out -d hw:1 & # Start up programs that use audio sleep .1 && i3-msg 'workspace 10; exec google-play-music-desktop-player' -sleep .1 && i3-msg 'workspace 3; exec firefox' +sleep .1 && i3-msg 'workspace 5; exec firefox'