summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-08-03 07:07:53 -0400
committerLibravatar GitHub <noreply@github.com>2016-08-03 07:07:53 -0400
commitc970d45d74ae2a9c985042e4ab03fdfe46ee758e (patch)
tree7e2969386a7d784e5530c1911fa0a8747ac1d5c6
parentMerge pull request #820 from minus7/bar-wrap-scroll-fix (diff)
parentAdd resize mode to config (diff)
downloadsway-c970d45d74ae2a9c985042e4ab03fdfe46ee758e.tar.gz
sway-c970d45d74ae2a9c985042e4ab03fdfe46ee758e.tar.zst
sway-c970d45d74ae2a9c985042e4ab03fdfe46ee758e.zip
Merge pull request #822 from mayhewj/add-resize-to-config
Add resize mode to the default config file
-rw-r--r--config47
1 files changed, 38 insertions, 9 deletions
diff --git a/config b/config
index e127207b..80765c29 100644
--- a/config
+++ b/config
@@ -8,6 +8,11 @@
8# 8#
9# Logo key. Use Mod1 for Alt. 9# Logo key. Use Mod1 for Alt.
10set $mod Mod4 10set $mod Mod4
11# Home row direction keys, like vim
12set $left h
13set $down j
14set $up k
15set $right l
11# Your preferred terminal emulator 16# Your preferred terminal emulator
12set $term urxvt 17set $term urxvt
13# Your preferred application launcher 18# Your preferred application launcher
@@ -52,11 +57,11 @@ output * bg /usr/share/sway/Sway_Wallpaper_Blue_1920x1080.png fill
52# 57#
53# Moving around: 58# Moving around:
54# 59#
55 # Move your focus around with $mod+[h|j|k|l], like vim 60 # Move your focus around
56 bindsym $mod+h focus left 61 bindsym $mod+$left focus left
57 bindsym $mod+j focus down 62 bindsym $mod+$down focus down
58 bindsym $mod+k focus up 63 bindsym $mod+$up focus up
59 bindsym $mod+l focus right 64 bindsym $mod+$right focus right
60 # or use $mod+[up|down|left|right] 65 # or use $mod+[up|down|left|right]
61 bindsym $mod+Left focus left 66 bindsym $mod+Left focus left
62 bindsym $mod+Down focus down 67 bindsym $mod+Down focus down
@@ -64,10 +69,10 @@ output * bg /usr/share/sway/Sway_Wallpaper_Blue_1920x1080.png fill
64 bindsym $mod+Right focus right 69 bindsym $mod+Right focus right
65 70
66 # _move_ the focused window with the same, but add Shift 71 # _move_ the focused window with the same, but add Shift
67 bindsym $mod+Shift+h move left 72 bindsym $mod+Shift+$left move left
68 bindsym $mod+Shift+j move down 73 bindsym $mod+Shift+$down move down
69 bindsym $mod+Shift+k move up 74 bindsym $mod+Shift+$up move up
70 bindsym $mod+Shift+l move right 75 bindsym $mod+Shift+$right move right
71 # ditto, with arrow keys 76 # ditto, with arrow keys
72 bindsym $mod+Shift+Left move left 77 bindsym $mod+Shift+Left move left
73 bindsym $mod+Shift+Down move down 78 bindsym $mod+Shift+Down move down
@@ -137,6 +142,30 @@ output * bg /usr/share/sway/Sway_Wallpaper_Blue_1920x1080.png fill
137 # Show the next scratchpad window or hide the focused scratchpad window. 142 # Show the next scratchpad window or hide the focused scratchpad window.
138 # If there are multiple scratchpad windows, this command cycles through them. 143 # If there are multiple scratchpad windows, this command cycles through them.
139 bindsym $mod+minus scratchpad show 144 bindsym $mod+minus scratchpad show
145#
146# Resizing containers:
147#
148mode "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}
168bindsym $mod+r mode "resize"
140 169
141# 170#
142# Status Bar: 171# Status Bar: