summaryrefslogtreecommitdiff
path: root/.i3/config
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-12-19 16:55:46 +0000
committerUrbain Vaes <urbain@vaes.uk>2015-12-19 16:55:46 +0000
commit1303e21f431bc49bba6dc275053d516da0392e54 (patch)
tree79bc4d02a43a13828b703383404cbc1745a60aff /.i3/config
parent64cfb306cc543fd28d2cb3ce7adadad15a8d96e6 (diff)
Fix script for i3 workspaces
Diffstat (limited to '.i3/config')
-rw-r--r--.i3/config45
1 files changed, 24 insertions, 21 deletions
diff --git a/.i3/config b/.i3/config
index d0606ed..ea96bd9 100644
--- a/.i3/config
+++ b/.i3/config
@@ -85,28 +85,32 @@ bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show
# switch to workspace
-bindsym $mod+ampersand workspace 1
-bindsym $mod+bracketleft workspace 2
-bindsym $mod+braceleft workspace 3
-bindsym $mod+braceright workspace 4
-bindsym $mod+parenleft workspace 5
-bindsym $mod+equal workspace 6
-bindsym $mod+asterisk workspace 7
-bindsym $mod+parenright workspace 8
-bindsym $mod+plus workspace 9
-bindsym $mod+bracketright workspace 10
+bindsym $mod+ampersand exec workspace n 1
+bindsym $mod+bracketleft exec workspace n 2
+bindsym $mod+braceleft exec workspace n 3
+bindsym $mod+braceright exec workspace n 4
+bindsym $mod+parenleft exec workspace n 5
+bindsym $mod+equal exec workspace n 6
+bindsym $mod+asterisk exec workspace n 7
+bindsym $mod+parenright exec workspace n 8
+bindsym $mod+plus exec workspace n 9
+bindsym $mod+bracketright exec workspace n 10
# move focused container to workspace
-bindsym $mod+Shift+ampersand move container to workspace 1
-bindsym $mod+Shift+bracketleft move container to workspace 2
-bindsym $mod+Shift+braceleft move container to workspace 3
-bindsym $mod+Shift+braceright move container to workspace 4
-bindsym $mod+Shift+1 move container to workspace 5
-bindsym $mod+Shift+equal move container to workspace 6
-bindsym $mod+Shift+asterisk move container to workspace 7
-bindsym $mod+Shift+2 move container to workspace 8
-bindsym $mod+Shift+plus move container to workspace 9
-bindsym $mod+Shift+bracketright move container to workspace 10
+bindsym $mod+Shift+ampersand exec workspace m 1 m
+bindsym $mod+Shift+bracketleft exec workspace m 2
+bindsym $mod+Shift+braceleft exec workspace m 3
+bindsym $mod+Shift+braceright exec workspace m 4
+bindsym $mod+Shift+1 exec workspace m 5
+bindsym $mod+Shift+equal exec workspace m 6
+bindsym $mod+Shift+asterisk exec workspace m 7
+bindsym $mod+Shift+2 exec workspace m 8
+bindsym $mod+Shift+plus exec workspace m 9
+bindsym $mod+Shift+bracketright exec workspace m 10
+
+# Keybindings for create and move
+bindsym $mod+n exec workspace n
+bindsym $mod+m exec workspace m
# reload the configuration file
bindsym $mod+Shift+c reload
@@ -155,7 +159,6 @@ bindsym $mod+period workspace next
# Programs shortcuts
bindsym $mod+b exec uzbl-browser
bindsym $mod+at exec chromium-browser
-bindsym $mod+n exec workspace
# Configuration
# bindsym F1 exec $HOME/.xinitrc