diff options
author | Justin Mayhew <mayhew@live.ca> | 2016-08-03 00:05:24 -0300 |
---|---|---|
committer | Justin Mayhew <mayhew@live.ca> | 2016-08-03 00:07:28 -0300 |
commit | 94adb24642c16c48c8d689fceb9d136d5ed7f0c2 (patch) | |
tree | 7e2969386a7d784e5530c1911fa0a8747ac1d5c6 /config | |
parent | Don't repeat direction keys in config (diff) | |
download | sway-94adb24642c16c48c8d689fceb9d136d5ed7f0c2.tar.gz sway-94adb24642c16c48c8d689fceb9d136d5ed7f0c2.tar.zst sway-94adb24642c16c48c8d689fceb9d136d5ed7f0c2.zip |
Add resize mode to config
These are the default keybindings in i3.
Diffstat (limited to 'config')
-rw-r--r-- | config | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -142,6 +142,30 @@ output * bg /usr/share/sway/Sway_Wallpaper_Blue_1920x1080.png fill | |||
142 | # Show the next scratchpad window or hide the focused scratchpad window. | 142 | # Show the next scratchpad window or hide the focused scratchpad window. |
143 | # If there are multiple scratchpad windows, this command cycles through them. | 143 | # If there are multiple scratchpad windows, this command cycles through them. |
144 | bindsym $mod+minus scratchpad show | 144 | bindsym $mod+minus scratchpad show |
145 | # | ||
146 | # Resizing containers: | ||
147 | # | ||
148 | mode "resize" { | ||
149 | # left will shrink the containers width | ||
150 | # right will grow the containers width | ||
151 | # up will shrink the containers height | ||
152 | # down will grow the containers height | ||
153 | bindsym $left resize shrink width 10 px or 10 ppt | ||
154 | bindsym $down resize grow height 10 px or 10 ppt | ||
155 | bindsym $up resize shrink height 10 px or 10 ppt | ||
156 | bindsym $right resize grow width 10 px or 10 ppt | ||
157 | |||
158 | # ditto, with arrow keys | ||
159 | bindsym Left resize shrink width 10 px or 10 ppt | ||
160 | bindsym Down resize grow height 10 px or 10 ppt | ||
161 | bindsym Up resize shrink height 10 px or 10 ppt | ||
162 | bindsym Right resize grow width 10 px or 10 ppt | ||
163 | |||
164 | # return to default mode | ||
165 | bindsym Return mode "default" | ||
166 | bindsym Escape mode "default" | ||
167 | } | ||
168 | bindsym $mod+r mode "resize" | ||
145 | 169 | ||
146 | # | 170 | # |
147 | # Status Bar: | 171 | # Status Bar: |