Add and implement inputctl.sh, remove touchpad i2c_hid module blacklist

This commit is contained in:
Riyyi
2019-05-24 16:41:43 +02:00
parent 389be6427c
commit b78c0e3ed2
6 changed files with 139 additions and 28 deletions
+4 -3
View File
@@ -45,8 +45,9 @@ XF86Audio{LowerVolume,RaiseVolume,Mute}
mediacontrol.sh {down 5,up 5,toggle}
# Touchpad toggle
# XF86iTouch
XF86HomePage
inputctl.sh -d toggle
# Touchscreen toggle
XF86HomePage
touchscreen.sh
XF86Search
inputctl.sh -s toggle
+5 -7
View File
@@ -11,14 +11,12 @@ xrandr --output eDP-1 --mode 3000x2000_48.00 --primary
xset s off
xset -dpms
# Clear all key mappings
setxkbmap -option ''
# Customize keyboard layout
inputctl.sh -k off
inputctl.sh -k on
# Swap capslock with escape
setxkbmap -option caps:swapescape
# Set touchpad toggle key symbol
xmodmap -e "keycode 93 = XF86iTouch"
# Turn off touchscreen
inputctl.sh -s off
# Daemon starting
dunst &
-4
View File
@@ -129,10 +129,6 @@ alias nw="$HOME/.scripts/network.sh"
alias vp="$HOME/.scripts/vimplugin.sh"
alias mpvshuffle="$HOME/.scripts/mpv.sh shuffle"
# Laptop
alias offtouchpad='sudo rmmod i2c_hid'
alias ontouchpad="sudo modprobe i2c_hid && $HOME/.scripts/touchscreen.sh 0"
# Other
alias mysql-workbench="GDK_SCALE=1 GDK_DPI_SCALE=1 mysql-workbench 1>/dev/null 2>&1 &; disown"
alias weather="curl -s 'http://wttr.in/dordrecht?q&n&p' | head -n -3"