Compare commits

...

2 commits

Author SHA1 Message Date
b4c72c46ac Vim: install coquille 2017-09-14 13:20:33 +02:00
15e76d0f14 i3: add mod+t to toggle touchpad 2017-07-09 10:54:44 +02:00
4 changed files with 32 additions and 1 deletions

View file

@ -0,0 +1,20 @@
#!/bin/bash
synclient=/usr/bin/synclient
prop='TouchpadOff'
if ! [ -x "$synclient" ]; then
exit 2
fi
state=$(${synclient} -l \
| grep "^ ${prop}" \
| sed 's/^.*= \([01]\)$/\1/g' \
| head -n 1)
if [ -z "$state" ] || $(echo "$state" | grep -vq '^[01]$') ; then
exit 1
fi
nState=$((($state + 1) % 2))
$synclient "$prop=$nState"

View file

@ -38,6 +38,9 @@ bindsym $mod+z exec ~/.config/i3/bin/i3lock
# kill focused window
bindsym $mod+Shift+q kill
# Toggle touchpad
bindsym $mod+t exec ~/.config/i3/bin/toggle-touchpad
## Specific applications
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run

View file

@ -0,0 +1,5 @@
nnoremap L <Esc>:CoqNext<CR>
nnoremap H <Esc>:CoqUndo<CR>
nnoremap <LocalLeader>c <Esc>:CoqToCursor<CR>
nnoremap <LocalLeader>k <Esc>:CoqKill<CR>
nnoremap <LocalLeader>l <Esc>:CoqLaunch<CR>

View file

@ -1,5 +1,5 @@
syntax on
filetype plugin on
syntax on
set colorcolumn=80
set background=dark
set number
@ -68,6 +68,9 @@ Plugin 'vim-airline/vim-airline-themes'
Plugin 'vim-scripts/a.vim'
Plugin 'rhysd/vim-clang-format'
Plugin 'christoomey/vim-tmux-navigator'
Plugin 'chrisbra/csv.vim'
Plugin 'let-def/vimbufsync'
Plugin 'the-lambda-church/coquille'
call vundle#end() " required
filetype plugin indent on " required