Add and implement inputctl.sh, remove touchpad i2c_hid module blacklist
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 &
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user