Add cursor keys for focussing, moving, snapping to the default config

This commit is contained in:
Michael Stapelberg 2009-10-26 15:13:25 +01:00
parent fe2e4991d8
commit 153462824b
2 changed files with 22 additions and 1 deletions

View File

@ -36,24 +36,44 @@ bind Mod1+44 h
bind Mod1+45 j bind Mod1+45 j
bind Mod1+46 k bind Mod1+46 k
bind Mod1+47 l bind Mod1+47 l
# (alternatively, you can use the cursor keys:)
bindsym Mod1+Left h
bindsym Mod1+Down j
bindsym Mod1+Up k
bindsym Mod1+Right l
# Focus Container (Mod3+j/k/l/;) # Focus Container (Mod3+j/k/l/;)
bind Mod3+44 wch bind Mod3+44 wch
bind Mod3+45 wcj bind Mod3+45 wcj
bind Mod3+46 wck bind Mod3+46 wck
bind Mod3+47 wcl bind Mod3+47 wcl
# (alternatively, you can use the cursor keys:)
bindsym Mod3+Left h
bindsym Mod3+Down j
bindsym Mod3+Up k
bindsym Mod3+Right l
# Snap (Mod1+Control+j/k/l/;) # Snap (Mod1+Control+j/k/l/;)
bind Mod1+Control+44 sh bind Mod1+Control+44 sh
bind Mod1+Control+45 sj bind Mod1+Control+45 sj
bind Mod1+Control+46 sk bind Mod1+Control+46 sk
bind Mod1+Control+47 sl bind Mod1+Control+47 sl
# (alternatively, you can use the cursor keys:)
bindsym Mod1+Control+Left h
bindsym Mod1+Control+Down j
bindsym Mod1+Control+Up k
bindsym Mod1+Control+Right l
# Move (Mod1+Shift+j/k/l/;) # Move (Mod1+Shift+j/k/l/;)
bind Mod1+Shift+44 mh bind Mod1+Shift+44 mh
bind Mod1+Shift+45 mj bind Mod1+Shift+45 mj
bind Mod1+Shift+46 mk bind Mod1+Shift+46 mk
bind Mod1+Shift+47 ml bind Mod1+Shift+47 ml
# (alternatively, you can use the cursor keys:)
bindsym Mod1+Shift+Left h
bindsym Mod1+Shift+Down j
bindsym Mod1+Shift+Up k
bindsym Mod1+Shift+Right l
# Move Container (Mod3+Shift+j/k/l/;) # Move Container (Mod3+Shift+j/k/l/;)
bind Mod3+Shift+44 wcmh bind Mod3+Shift+44 wcmh

View File

@ -74,7 +74,8 @@ two virtual screens.
Here is a short overview of the default keybindings: Here is a short overview of the default keybindings:
j/k/l/;:: j/k/l/;::
Direction keys (left, down, up, right). They are on your homerow (see the mark on your "j" key). Direction keys (left, down, up, right). They are on your homerow (see the mark
on your "j" key). Alternatively, you can use the cursor keys.
Mod1+<direction>:: Mod1+<direction>::
Focus window in <direction>. Focus window in <direction>.