From 16e98c9503bfcfbe1816a78e761b3e5d0c75722f Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 24 Oct 2015 23:07:46 -0400 Subject: [PATCH] Make workspace binding more generic --- .config/i3/config | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index ba5326f..d5d9a54 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -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