From 3b7fc5a4aab3561549267331d85d03c40d204066 Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Tue, 29 Sep 2015 13:55:37 +0200 Subject: [PATCH] Improve i3 multiple outputs management --- i3.base | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/i3.base b/i3.base index 249d026..5c7b09a 100644 --- a/i3.base +++ b/i3.base @@ -39,12 +39,6 @@ bindsym $mod+d exec dmenu_run # installed. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop -# change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+l focus up -bindsym $mod+m focus right - # alternatively, you can use the cursor keys: bindsym $mod+Left focus left bindsym $mod+Down focus down @@ -84,21 +78,28 @@ bindsym $mod+a focus parent #bindsym $mod+d focus child # switch to workspace -bindsym $mod+1 workspace 1 -bindsym $mod+2 workspace 2 -bindsym $mod+3 workspace 3 -bindsym $mod+4 workspace 4 -bindsym $mod+5 workspace 5 -bindsym $mod+6 workspace 6 -bindsym $mod+7 workspace 7 -bindsym $mod+8 workspace 8 -bindsym $mod+9 workspace 9 -bindsym $mod+0 workspace 10 +bindsym $mod+1 workspace number 1 +bindsym $mod+2 workspace number 2 +bindsym $mod+3 workspace number 3 +bindsym $mod+4 workspace number 4 +bindsym $mod+5 workspace number 5 +bindsym $mod+6 workspace number 6 +bindsym $mod+7 workspace number 7 +bindsym $mod+8 workspace number 8 +bindsym $mod+9 workspace number 9 +bindsym $mod+0 workspace number 10 + +# See https://faq.i3wm.org/question/2332/flexible-monitor-setup/?answer=3557#post-id-3557 +bindsym $mod+Control+r exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' # Back and forth bindsym $mod+Tab workspace back_and_forth -bindsym $mod+Shift+j workspace next_on_output -bindsym $mod+Shift+k workspace prev_on_output +bindsym $mod+Shift+j workspace prev_on_output +bindsym $mod+Shift+k workspace next_on_output + +# move workspaces between outputs +bindsym $mod+Control+Left move workspace to output left +bindsym $mod+Control+Right move workspace to output right # move focused container to workspace bindsym $mod+Shift+1 move container to workspace 1