diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-08-28 16:38:57 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-08-28 16:38:57 +0200 |
| commit | 69336f4aebe8fce9884dae2375eabc9948f43beb (patch) | |
| tree | f45d9d6c2623d2a75603cb71fba8c321d598bab1 | |
| parent | 084809954f13205af598127ea00d37b819d927b4 (diff) | |
| download | dotfiles-69336f4aebe8fce9884dae2375eabc9948f43beb.tar.gz dotfiles-69336f4aebe8fce9884dae2375eabc9948f43beb.tar.bz2 dotfiles-69336f4aebe8fce9884dae2375eabc9948f43beb.zip | |
Added touchpad toggle
| -rw-r--r-- | .vimrc | 2 | ||||
| -rwxr-xr-x | .xinitrc | 2 | ||||
| -rw-r--r-- | .zsh_aliases | 4 | ||||
| -rwxr-xr-x | bin/touchpad-toggle | 9 | ||||
| -rwxr-xr-x | install | 1 | ||||
| -rw-r--r-- | xmonad.hs | 1 |
6 files changed, 15 insertions, 4 deletions
@@ -29,7 +29,7 @@ set wrapmargin=0 " disable auto line wrapping set encoding=utf-8 " utf-8 encoding set formatoptions-=t " do not auto break line > 89 character filetype plugin indent on " allow to add specific rules for certain type of file -set mouse=a " mouse scrolling (heretic) +" set mouse=a " mouse scrolling (heretic) " }}} " browse list with tab {{{ @@ -1,4 +1,4 @@ -xinput disable 'ETPS/2 Elantech Touchpad' & +# xinput disable 'ETPS/2 Elantech Touchpad' & redshift -c /home/charles/.config/redshift.conf & dunst & exec xmonad diff --git a/.zsh_aliases b/.zsh_aliases index b2bd6ee..1410f07 100644 --- a/.zsh_aliases +++ b/.zsh_aliases @@ -10,8 +10,8 @@ alias valgrindc='colour-valgrind' # common commands alias less='less -N' # enable line number -alias v='nvim' -alias vim='nvim' +alias v='vim' +# alias vim='nvim' # alias mkdir='mkdir -p' alias gdb='gdb -q' # disable long intro message alias sudo='sudo ' # enable color (the search for aliases continues) diff --git a/bin/touchpad-toggle b/bin/touchpad-toggle new file mode 100755 index 0000000..f0a86a1 --- /dev/null +++ b/bin/touchpad-toggle @@ -0,0 +1,9 @@ +#!/bin/sh + +touchpad_name='ETPS/2 Elantech Touchpad' + +active="$(xinput list-props "$touchpad_name" | grep 'Device Enabled' | cut -f 3)" + +[ "$active" -eq 1 ] && + xinput disable "$touchpad_name" || + xinput enable "$touchpad_name" @@ -44,6 +44,7 @@ create_dotfile_link dunst/dunstrc .config/dunst/dunstrc mkdir -p "$HOME/.newsboat" create_dotfile_link_same .newsboat/config +#create_dotfile_link_same .newsboat/urls # create_dotfile_link_same slock/config.def.h @@ -39,6 +39,7 @@ myKeys = [ ("<XF86AudioRaiseVolume>", spawn "~/bin/volume-ctl up") , ("<XF86MonBrightnessUp>", spawn "~/bin/backlight-ctl up") , ("<XF86MonBrightnessDown>", spawn "~/bin/backlight-ctl down") , ("<XF86ScreenSaver>", spawn "slock") + , ("<XF86TouchpadToggle>", spawn "~/bin/touchpad-toggle") , ("M-o", spawn "~/bin/project-open") , ("M-m", spawn "st -e mocp") |
