From 8f7dd2ab05b38a4f770c467e9df7b67baa1c1bd9 Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Sat, 19 Oct 2019 14:54:49 -0400 Subject: [PATCH] Add static workspace for music / Spotify --- i3/.config/i3/config | 15 ++++++++++++++- polybar/.config/polybar/config | 3 ++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index bafe153..599a398 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -36,6 +36,7 @@ workspace $ws98 output DP-2 workspace $ws97 output DP-2 workspace $ws96 output DP-2 workspace $ws95 output DP-2 +workspace $ws94 output DP-2 # To add a workspace, just create a bind below # Workspace binds @@ -70,6 +71,7 @@ set $ws98 98 set $ws97 97 set $ws96 96 set $ws95 95 +set $ws94 94 # Move only the container to workspace bindsym $mod+Ctrl+backslash move container to workspace $ws99 @@ -77,12 +79,14 @@ bindsym $mod+Ctrl+bracketright move container to workspace $ws98 bindsym $mod+Ctrl+apostrophe move container to workspace $ws97 bindsym $mod+Ctrl+slash move container to workspace $ws96 bindsym $mod+Ctrl+period move container to workspace $ws95 +bindsym $mod+Ctrl+comma move container to workspace $ws94 # Move to workspace with focused container bindsym $mod+Shift+backslash move container to workspace $ws99; workspace $ws99 bindsym $mod+Shift+bracketright move container to workspace $ws98; workspace $ws98 bindsym $mod+Shift+apostrophe move container to workspace $ws97; workspace $ws97 bindsym $mod+Shift+slash move container to workspace $ws96; workspace $ws96 bindsym $mod+Shift+period move container to workspace $ws95; workspace $ws95 +bindsym $mod+Shift+comma move container to workspace $ws94; workspace $ws94 # Custom named workspace keybinds # To get keysymbols, run 'xmodmap -pke' @@ -91,6 +95,7 @@ bindsym $mod+bracketright workspace number $ws98 # Mail bindsym $mod+apostrophe workspace number $ws97 # Sec bindsym $mod+slash workspace number $ws96 # Web bindsym $mod+period workspace number $ws95 # Terminal +bindsym $mod+comma workspace number $ws94 # Musak # Open applications on specific workspaces #assign [class="Signal"] $ws99 @@ -112,6 +117,13 @@ assign [class="Signal"] $ws99 exec --no-startup-id i3-msg 'exec discord' assign [class="discord"] $ws99 +exec_always --no-startup-id i3-msg 'exec spotify' +for_window [class="Spotify"] move to workspace number $ws94 +for_window [class="Spotify"] floating enable +for_window [class="Spotify"] resize set width 1200 +for_window [class="Spotify"] resize set height 850 +for_window [class="Spotify"] move position center + exec --no-startup-id i3-msg 'exec bitwarden' for_window [class="Bitwarden"] move to workspace number $ws97 for_window [class="Bitwarden"] floating enable @@ -126,7 +138,7 @@ for_window [class="firefox"] move to workspace number $ws96 # Passing -n to urxvt forces Xorg to default the WM_NAME to tmux # Only this instance of urxvt will have that WM_NAME # Prevents for_window from acting on new terminals -exec_always --no-startup-id i3-msg 'exec urxvt -n sterm -e tmux -u' +exec --no-startup-id i3-msg 'exec urxvt -n sterm -e tmux -u' for_window [title="tmux"] move to workspace number $ws95 for_window [title="tmux"] floating enable for_window [title="tmux"] resize set height 700 @@ -134,6 +146,7 @@ for_window [title="tmux"] resize set width 1000 for_window [title="tmux"] move position center # Enable popup calendar floating window for polybar +# This only works properly on the primary Xdisplay? for_window [class="Yad"] floating enable ############################################################### diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index b3ac67f..2101da7 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -314,7 +314,7 @@ menu-0-1-foreground = #fba922 menu-0-1-exec = i3 restart menu-0-2 = " Reboot " menu-0-2-foreground = #fba922 -menu-0-2-exec = sudo /sbin/reboot +menu-0-2-exec = sudo reboot menu-0-3 = " Power off " menu-0-3-foreground = #fba922 menu-0-3-exec = sudo poweroff @@ -475,6 +475,7 @@ ws-icon-10 = 98; ws-icon-11 = 97; ws-icon-12 = 96;爵 ws-icon-13 = 95; +ws-icon-14 = 94; ws-icon-default =  ; NOTE: You cannot skip icons, e.g. to get a ws-icon-6 ; you must also define a ws-icon-5.