Make workspace binding more generic

This commit is contained in:
Adam Goldsmith 2015-10-24 23:07:46 -04:00
parent 009b4a3e0d
commit 16e98c9503

View File

@ -23,6 +23,8 @@ exec --no-startup-id setxkbmap -option "shift:both_capslock"
# $mod variable for use later
set $mod Mod4
set $mon1 DP-0
set $mon2 LVDS-0
## Keybindings! ##
bindsym $mod+Return exec mate-terminal # start a terminal
@ -140,27 +142,27 @@ bindsym $mod+z focus child
bindsym $mod+Tab workspace back_and_forth
# bind workspaces 1-10 to monitor 1, 11-20 to monitor 2
workspace 1 output LVDS-0
workspace 2 output LVDS-0
workspace 3 output LVDS-0
workspace 4 output LVDS-0
workspace 5 output LVDS-0
workspace 6 output LVDS-0
workspace 7 output LVDS-0
workspace 8 output LVDS-0
workspace 9 output LVDS-0
workspace 10 output LVDS-0
workspace 1 output $mon1
workspace 2 output $mon1
workspace 3 output $mon1
workspace 4 output $mon1
workspace 5 output $mon1
workspace 6 output $mon1
workspace 7 output $mon1
workspace 8 output $mon1
workspace 9 output $mon1
workspace 10 output $mon1
workspace 11 output DP-0
workspace 12 output DP-0
workspace 13 output DP-0
workspace 14 output DP-0
workspace 15 output DP-0
workspace 16 output DP-0
workspace 17 output DP-0
workspace 18 output DP-0
workspace 19 output DP-0
workspace 20 output DP-0
workspace 11 output $mon2
workspace 12 output $mon2
workspace 13 output $mon2
workspace 14 output $mon2
workspace 15 output $mon2
workspace 16 output $mon2
workspace 17 output $mon2
workspace 18 output $mon2
workspace 19 output $mon2
workspace 20 output $mon2
# switch to workspace
bindsym $mod+1 workspace number 1