aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-07-23 14:30:09 +0200
committerCharles Cabergs <me@cacharle.xyz>2021-07-23 14:30:09 +0200
commit3037d6bd668640f618b9da384b20058b8e73a974 (patch)
tree7dce987726a62c78ad542790739fcdedfc5bdffb
parent0f224c6f8b0fb84c0e14c077019e2ace12874163 (diff)
parent3cec0350754c8ac948df5b857baa5dfd5e93bb45 (diff)
downloaddotfiles-3037d6bd668640f618b9da384b20058b8e73a974.tar.gz
dotfiles-3037d6bd668640f618b9da384b20058b8e73a974.tar.bz2
dotfiles-3037d6bd668640f618b9da384b20058b8e73a974.zip
Merge branch 'master' of github.com:cacharle/dotfiles
-rw-r--r--config/keynav/keynavrc45
-rw-r--r--config/vim/vimrc3
-rwxr-xr-xconfig/x11/xinitrc1
3 files changed, 47 insertions, 2 deletions
diff --git a/config/keynav/keynavrc b/config/keynav/keynavrc
new file mode 100644
index 0000000..d612648
--- /dev/null
+++ b/config/keynav/keynavrc
@@ -0,0 +1,45 @@
+# default configuration from `man keynav`
+clear
+# ctrl+semicolon start
+Escape end
+ctrl+bracketleft end
+# q record ~/.keynav_macros
+shift+at playback
+a history-back
+h cut-left
+j cut-down
+k cut-up
+l cut-right
+shift+h move-left
+shift+j move-down
+shift+k move-up
+shift+l move-right
+space warp,click 1,end
+Return warp,click 1,end
+semicolon warp,end
+w warp
+t windowzoom
+c cursorzoom 300 300
+e end
+1 click 1
+2 click 2
+3 click 3
+ctrl+h cut-left
+ctrl+j cut-down
+ctrl+k cut-up
+ctrl+l cut-right
+y cut-left,cut-up
+u cut-right,cut-up
+b cut-left,cut-down
+n cut-right,cut-down
+shift+y move-left,move-up
+shift+u move-right,move-up
+shift+b move-left,move-down
+shift+n move-right,move-down
+ctrl+y cut-left,cut-up
+ctrl+u cut-right,cut-up
+ctrl+b cut-left,cut-down
+ctrl+n cut-right,cut-down
+
+# More consistent, ctrl for application, super for display
+Super_L+semicolon start
diff --git a/config/vim/vimrc b/config/vim/vimrc
index 13e5220..7d2441b 100644
--- a/config/vim/vimrc
+++ b/config/vim/vimrc
@@ -272,6 +272,7 @@ augroup vimrc_files
autocmd Filetype vim setlocal foldmethod=marker " vim fold method to marker
autocmd FileType haskell set formatprg=stylish-haskell
autocmd FileType lisp,html,css,htmldjango setlocal shiftwidth=2
+ autocmd Filetype markdown nnoremap <leader>r :execute 'silent !pandoc % -o %:r.pdf &' \| redraw! \| echom 'Converting to pdf: ' . expand('%:r') . '.pdf'<CR>
augroup END
" }}}
@@ -334,5 +335,3 @@ nnoremap <leader>ss :setlocal spell!<CR>
hi link juliaFunctionCall Identifier
hi link juliaParDelim Delimiter
-
-autocmd Filetype markdown nnoremap <leader>r :execute 'silent !pandoc % -o %:r.pdf &' \| redraw! \| echom 'Converting to pdf: ' . expand('%:r') . '.pdf'<CR>
diff --git a/config/x11/xinitrc b/config/x11/xinitrc
index 5eae132..dfe9ab6 100755
--- a/config/x11/xinitrc
+++ b/config/x11/xinitrc
@@ -1,5 +1,6 @@
#!/bin/sh
+keynav daemonize # moving the cursor around without the mouse
redshift & # filter blue light
dunst & # notification daemon
# certain event cause rate to reset (https://wiki.archlinux.org/title/Xorg/Keyboard_configuration)