1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Enforce Vim style arrow keys

This commit is contained in:
Joe Groocock 2016-10-12 15:03:09 +01:00
parent 77b615b1d1
commit a01ca82063
2 changed files with 23 additions and 17 deletions

View File

@ -12,37 +12,37 @@ bindsym $mod+apostrophe kill
bindsym Mod1+F4 kill bindsym Mod1+F4 kill
# change window focus # change window focus
bindsym $mod+Left focus left bindsym $mod+d focus left
bindsym $mod+Right focus right bindsym $mod+n focus right
bindsym $mod+Up focus up bindsym $mod+t focus up
bindsym $mod+Down focus down bindsym $mod+h focus down
# move focused window # move focused window
bindsym $mod+Shift+Left move left bindsym $mod+Shift+d move left
bindsym $mod+Shift+Down move down bindsym $mod+Shift+n move down
bindsym $mod+Shift+Up move up bindsym $mod+Shift+t move up
bindsym $mod+Shift+Right move right bindsym $mod+Shift+h move right
# split in horizontal orientation # split in horizontal orientation
bindsym $mod+h split h bindsym $mod+m split h
bindsym $mod+t split v bindsym $mod+w split v
# enter fullscreen mode for the focused container # enter fullscreen mode for the focused container
bindsym $mod+Shift+f fullscreen toggle global bindsym $mod+Shift+f fullscreen toggle global
bindsym $mod+f fullscreen toggle bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split) # change container layout (stacked, tabbed, toggle split)
bindsym $mod+o layout stacking bindsym $mod+p layout stacking
bindsym $mod+comma layout tabbed bindsym $mod+comma layout tabbed
bindsym $mod+period layout toggle split bindsym $mod+period layout toggle split
# toggle tiling / floating # toggle tiling / floating
bindsym $mod+u floating toggle bindsym $mod+u floating toggle
bindsym $mod+w sticky toggle bindsym $mod+e sticky toggle
# focus the parent container # focus the parent container
bindsym $mod+a focus parent bindsym $mod+a focus parent
bindsym $mod+d focus child bindsym $mod+o focus child
# Screen configs # # Screen configs #
set $tl "DP-0.2.1" set $tl "DP-0.2.1"
@ -73,10 +73,10 @@ bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10 bindsym $mod+0 workspace 10
# move workspaces across screens # move workspaces across screens
bindsym $mod+Mod1+Left move workspace to output left bindsym $mod+Mod1+d move workspace to output left
bindsym $mod+Mod1+Right move workspace to output right bindsym $mod+Mod1+n move workspace to output right
bindsym $mod+Mod1+Up move workspace to output up bindsym $mod+Mod1+t move workspace to output up
bindsym $mod+Mod1+Down move workspace to output down bindsym $mod+Mod1+h move workspace to output down
# move focused container to workspace # move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1 bindsym $mod+Shift+1 move container to workspace 1

6
.vimrc
View File

@ -57,6 +57,12 @@ let g:airline#extensions#tabline#enabled = 1
let g:auto_save = 1 " enable AutoSave on Vim startup let g:auto_save = 1 " enable AutoSave on Vim startup
let mapleader="\<space>" let mapleader="\<space>"
" Unbind arrow keys
for prefix in ['i', 'n', 'v']
for key in ['<Up>', '<Down>', '<Left>', '<Right>']
exe prefix . "noremap " . key . " <Nop>"
endfor
endfor
" Dvorak Hackery " Dvorak Hackery
" Source: https://github.com/sporkbox/vimrc/blob/master/vimrc " Source: https://github.com/sporkbox/vimrc/blob/master/vimrc