all repos — dotfiles @ 2fa4f0b499a63faa9327cea2c86e3cc18cb592fc

linux dotfiles

update vimrc and qutebrowser config

added some searchengine definitions for qutebrowser
prithugoswami prithugoswami524@gmail.com
Wed, 30 May 2018 16:57:47 +0530
commit

2fa4f0b499a63faa9327cea2c86e3cc18cb592fc

parent

10b15f812f5b3538b02421e6a861b54cf048df1f

3 files changed, 14 insertions(+), 4 deletions(-)

jump to
M .vimrc.vimrc

@@ -43,9 +43,6 @@

" <Space> is foldToggle (za) in normal mode nnoremap <silent> <Tab> @=(foldlevel('.')?'za':"\<Space>")<CR> -" Preserve folds -autocmd BufWinLeave * mkview -autocmd BufWinEnter * silent loadview set number " number line
M qutebrowser/config.pyqutebrowser/config.py

@@ -1350,7 +1350,10 @@ ## else than a URL was entered to be opened. Other search engines can be

## used by prepending the search engine name to the search term, e.g. ## `:open google qutebrowser`. ## Type: Dict -c.url.searchengines = {'DEFAULT': 'https://www.google.com/search?hl=en&q={}'} +c.url.searchengines = {'DEFAULT': 'https://www.google.com/search?hl=en&q={}', + 'r': 'www.reddit.com/r/{}', + 'y': 'www.youtube.com/results?search_query={}'} + ## Page(s) to open at the start. ## Type: List of FuzzyUrl, or FuzzyUrl
A scripts/toggle_toucpad.sh

@@ -0,0 +1,10 @@

+#!/bin/sh + +# device id=14 +touchpad="$(xinput list-props 14 | awk 'NR == 2 {print $4}')" + +if [ "$touchpad" -eq 0 ]; then + xinput --enable 14 +else + xinput --disable 14 +fi