Fixes #54, setup xkb on laptop

Functions:
- tar/unzip that remove original file after extraction
- remove directory
- sudo nvim

Vim leader mappings:
- delete entire buffer into system clipboard
- find merge conflicts
This commit is contained in:
2018-03-14 07:12:31 -04:00
parent 0bba4a0eb3
commit d8ade3780a
8 changed files with 111 additions and 14 deletions

View File

@@ -5,8 +5,8 @@ URxvt.font: xft:hack:size=13
URxvt*inheritPixmap: true
URxvt*transparent: true
! URxvt*shading: 0 to 99 darkens, 101 to 200 lightens
! URxvt*shading: 40
URxvt*shading: 20
URxvt*shading: 40
! URxvt*shading: 20
/* }}} transparency */
URxvt.scrollBar: false

View File

@@ -144,9 +144,12 @@ let mapleader="\<Space>"
nnoremap <leader>cmt :%s/>\(.*\)>/<!---\1-->/g<CR>
" delete line into system clipboard
nnoremap <leader>D "+dd
" delete entire buffer into system clipboard
nnoremap <leader>DA "+ggdG
" reload file
nnoremap <leader>e :e<CR>
" find merge conflicts
nnoremap <leader>fc /[<>=]\{7\}<CR>
" reload folds
nnoremap <leader>ff :set foldmethod=marker<CR> zM
" toggle search highlighting

View File

@@ -102,5 +102,9 @@ export PATH="${PATH}:${HOME}/.local/bin/"
xset r rate 200 60
# laptop
if [ "$(hostname)" = "X1-Carbon" ];
then
xrandr --dpi 125
xinput disable "ELAN Touchscreen"
# enable horizontal scrolling
synclient HorizTwoFingerScroll=1
fi