summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2016-08-02 23:53:13 -0300
committerFurkan Sahin <furkan-dev@proton.me>2016-08-02 23:53:13 -0300
commita0fcd163827daabafa81c2b081ce67fed6f73684 (patch)
treea99452dd401a3ce3f2171ecaa77b85b1de65bd25
parent8988fd4243f48ec6e26b2d1e318e23c203651014 (diff)
Don't repeat direction keys in config
I really didn't want to have to repeat the direction keys again for resize mode, and this makes it easier to change all of the relevant keybindings if you don't like the defaults (or prefer i3's).
-rw-r--r--config23
1 files changed, 14 insertions, 9 deletions
diff --git a/config b/config
index e127207b..4da48cf2 100644
--- a/config
+++ b/config
@@ -8,6 +8,11 @@
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
+# Home row direction keys, like vim
+set $left h
+set $down j
+set $up k
+set $right l
# Your preferred terminal emulator
set $term urxvt
# Your preferred application launcher
@@ -52,11 +57,11 @@ output * bg /usr/share/sway/Sway_Wallpaper_Blue_1920x1080.png fill
#
# Moving around:
#
- # Move your focus around with $mod+[h|j|k|l], like vim
- bindsym $mod+h focus left
- bindsym $mod+j focus down
- bindsym $mod+k focus up
- bindsym $mod+l focus right
+ # Move your focus around
+ bindsym $mod+$left focus left
+ bindsym $mod+$down focus down
+ bindsym $mod+$up focus up
+ bindsym $mod+$right focus right
# or use $mod+[up|down|left|right]
bindsym $mod+Left focus left
bindsym $mod+Down focus down
@@ -64,10 +69,10 @@ output * bg /usr/share/sway/Sway_Wallpaper_Blue_1920x1080.png fill
bindsym $mod+Right focus right
# _move_ the focused window with the same, but add Shift
- bindsym $mod+Shift+h move left
- bindsym $mod+Shift+j move down
- bindsym $mod+Shift+k move up
- bindsym $mod+Shift+l move right
+ bindsym $mod+Shift+$left move left
+ bindsym $mod+Shift+$down move down
+ bindsym $mod+Shift+$up move up
+ bindsym $mod+Shift+$right move right
# ditto, with arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down