Browse Source

Use variables for workspace names

Alois Mahdal 10 years ago
parent
commit
a68c33b994
1 changed files with 32 additions and 20 deletions
  1. 32
    20
      dotfiles/i3/config

+ 32
- 20
dotfiles/i3/config View File

@@ -85,29 +85,41 @@ bindsym $mod+a focus parent
85 85
 # focus the child container
86 86
 #bindsym $mod+d focus child
87 87
 
88
+# assign workspace names
89
+set $w1 1
90
+set $w2 2
91
+set $w3 3
92
+set $w4 4
93
+set $w5 5
94
+set $w6 6
95
+set $w7 7
96
+set $w8 8
97
+set $w9 9
98
+set $w0 10
99
+
88 100
 # switch to workspace
89
-bindsym $mod+1 workspace 1
90
-bindsym $mod+2 workspace 2
91
-bindsym $mod+3 workspace 3
92
-bindsym $mod+4 workspace 4
93
-bindsym $mod+5 workspace 5
94
-bindsym $mod+6 workspace 6
95
-bindsym $mod+7 workspace 7
96
-bindsym $mod+8 workspace 8
97
-bindsym $mod+9 workspace 9
98
-bindsym $mod+0 workspace 10
101
+bindsym $mod+1 workspace $w1
102
+bindsym $mod+2 workspace $w2
103
+bindsym $mod+3 workspace $w3
104
+bindsym $mod+4 workspace $w4
105
+bindsym $mod+5 workspace $w5
106
+bindsym $mod+6 workspace $w6
107
+bindsym $mod+7 workspace $w7
108
+bindsym $mod+8 workspace $w8
109
+bindsym $mod+9 workspace $w9
110
+bindsym $mod+0 workspace $w0
99 111
 
100 112
 # move focused container to workspace
101
-bindsym $mod+Shift+1 move container to workspace 1
102
-bindsym $mod+Shift+2 move container to workspace 2
103
-bindsym $mod+Shift+3 move container to workspace 3
104
-bindsym $mod+Shift+4 move container to workspace 4
105
-bindsym $mod+Shift+5 move container to workspace 5
106
-bindsym $mod+Shift+6 move container to workspace 6
107
-bindsym $mod+Shift+7 move container to workspace 7
108
-bindsym $mod+Shift+8 move container to workspace 8
109
-bindsym $mod+Shift+9 move container to workspace 9
110
-bindsym $mod+Shift+0 move container to workspace 10
113
+bindsym $mod+Shift+1 move container to workspace $w1
114
+bindsym $mod+Shift+2 move container to workspace $w2
115
+bindsym $mod+Shift+3 move container to workspace $w3
116
+bindsym $mod+Shift+4 move container to workspace $w4
117
+bindsym $mod+Shift+5 move container to workspace $w5
118
+bindsym $mod+Shift+6 move container to workspace $w6
119
+bindsym $mod+Shift+7 move container to workspace $w7
120
+bindsym $mod+Shift+8 move container to workspace $w8
121
+bindsym $mod+Shift+9 move container to workspace $w9
122
+bindsym $mod+Shift+0 move container to workspace $w0
111 123
 
112 124
 # reload the configuration file
113 125
 bindsym $mod+Shift+c reload