Browse Source

Simplify resize mode definition

 *  Remove comments and unused bindings.
 *  Move mode binding to front>
Alois Mahdal 10 years ago
parent
commit
a9dd9842fb
1 changed files with 2 additions and 15 deletions
  1. 2
    15
      dotfiles/i3/config

+ 2
- 15
dotfiles/i3/config View File

@@ -143,30 +143,17 @@ bindsym $mod+Shift+r restart
143 143
 # exit i3 (logs you out of your X session)
144 144
 bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit' 'i3-msg exit'"
145 145
 
146
-# resize window (you can also use the mouse for that)
146
+
147
+bindsym $mod+r mode "resize"
147 148
 mode "resize" {
148
-        # These bindings trigger as soon as you enter the resize mode
149
-
150
-        # Pressing left will shrink the window’s width.
151
-        # Pressing right will grow the window’s width.
152
-        # Pressing up will shrink the window’s height.
153
-        # Pressing down will grow the window’s height.
154
-        bindsym j           resize shrink   width   200 px or 12 ppt
155
-        bindsym k           resize grow     height  200 px or 12 ppt
156
-        bindsym l           resize shrink   height  200 px or 12 ppt
157
-        bindsym semicolon   resize grow     width   200 px or 12 ppt
158
-
159
-        # same bindings, but for the arrow keys
160 149
         bindsym Left        resize shrink   width   200 px or 12 ppt
161 150
         bindsym Down        resize grow     height  200 px or 12 ppt
162 151
         bindsym Up          resize shrink   height  200 px or 12 ppt
163 152
         bindsym Right       resize grow     width   200 px or 12 ppt
164
-        # back to normal: Enter or Escape
165 153
         bindsym Return      mode "default"
166 154
         bindsym Escape      mode "default"
167 155
 }
168 156
 
169
-bindsym $mod+r mode "resize"
170 157
 # Start i3bar to display a workspace bar (plus the system information i3status
171 158
 # finds out, if available)
172 159
 bar {