From 324232cf297156b4d8a7aa8ad53209fb7071f7ab Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 1 Jan 2022 21:40:27 +0100 Subject: Colemak keymap. Updated binds for i3, zsh, (n)vim --- .config/i3/config | 16 ++++++++++++++++ .config/keyd/default.conf | 1 + .config/nvim/lua/binds.lua | 2 +- .vim/vimrc | 2 +- 4 files changed, 19 insertions(+), 2 deletions(-) create mode 120000 .config/keyd/default.conf diff --git a/.config/i3/config b/.config/i3/config index 0a7e2f6..31671bb 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -34,12 +34,20 @@ bindsym $mod+h focus left bindsym $mod+j focus down bindsym $mod+k focus up bindsym $mod+l focus right +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right # Move focused window 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 # Focus the parent container bindsym $mod+a focus parent # Focus tiled / floating windows @@ -94,11 +102,19 @@ mode "Resize Mode" { bindsym j resize shrink height 6 px or 6 ppt bindsym k resize grow height 6 px or 6 ppt bindsym l resize grow width 6 px or 6 ppt + bindsym Left resize shrink width 6 px or 6 ppt + bindsym Down resize shrink height 6 px or 6 ppt + bindsym Up resize grow height 6 px or 6 ppt + bindsym Right resize grow width 6 px or 6 ppt bindsym Shift+h resize shrink width 12 px or 12 ppt bindsym Shift+j resize shrink height 12 px or 12 ppt bindsym Shift+k resize grow height 12 px or 12 ppt bindsym Shift+l resize grow width 12 px or 12 ppt + bindsym Shift+Left resize shrink width 12 px or 12 ppt + bindsym Shift+Down resize shrink height 12 px or 12 ppt + bindsym Shift+Up resize grow height 12 px or 12 ppt + bindsym Shift+Right resize grow width 12 px or 12 ppt bindsym minus gaps inner current minus 5 bindsym plus gaps inner current plus 5 diff --git a/.config/keyd/default.conf b/.config/keyd/default.conf new file mode 120000 index 0000000..37df45e --- /dev/null +++ b/.config/keyd/default.conf @@ -0,0 +1 @@ +/etc/keyd/default.conf \ No newline at end of file diff --git a/.config/nvim/lua/binds.lua b/.config/nvim/lua/binds.lua index 2bbaa69..0e7ae96 100644 --- a/.config/nvim/lua/binds.lua +++ b/.config/nvim/lua/binds.lua @@ -8,7 +8,7 @@ map('', 'Y', 'y$', opts) map('n', '', ':nohl', opts) map('n', 'n', 'nzzzv', opts) map('n', 'N', 'Nzzzv', opts) -map('i', 'kj', '', opts) +-- map('i', 'kj', '', opts) map('t', 'kj', '', { noremap = true }) map('i', ',', ',u', opts) diff --git a/.vim/vimrc b/.vim/vimrc index 2385007..18fe768 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -42,7 +42,7 @@ map Y y$ nnoremap :nohl nnoremap n nzzzv nnoremap N Nzzzv -inoremap kj +" inoremap kj tnoremap kj inoremap , ,u -- cgit v1.2.3-70-g09d2