diff options
author | Shubham Saini <pryr@pryr.xyz> | 2021-04-04 10:49:57 +0000 |
---|---|---|
committer | Shubham Saini <pryr@pryr.xyz> | 2021-04-04 10:49:57 +0000 |
commit | f87ff7e6af543939791f630cb78c1f1b6b8c0f8e (patch) | |
tree | 27ac5d995159d4f6368ed00e0e8bf57ae5bb0ac8 | |
parent | b5d7a3928d1d2925bf1a2dcc26a0c61164c910de (diff) |
touhcpad hotkey
-rwxr-xr-x | bin/.bin/touchpad | 9 | ||||
-rwxr-xr-x | sxhkd/.config/sxhkd/sxhkdrc | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/bin/.bin/touchpad b/bin/.bin/touchpad new file mode 100755 index 0000000..bd647e5 --- /dev/null +++ b/bin/.bin/touchpad | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | enabled=$(xinput --list-props ETPS/2\ Elantech\ Touchpad | grep "Device Enabled" | awk '{print $4}') | ||
4 | |||
5 | if [ $enabled == 1 ]; then | ||
6 | xinput --disable ETPS/2\ Elantech\ Touchpad | ||
7 | else | ||
8 | xinput --enable ETPS/2\ Elantech\ Touchpad | ||
9 | fi | ||
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index 188cc18..2feb00b 100755 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc | |||
@@ -37,6 +37,10 @@ XF86AudioMicMute | |||
37 | XF86Favorites | 37 | XF86Favorites |
38 | ~/.bin/disp | 38 | ~/.bin/disp |
39 | 39 | ||
40 | # touchpad | ||
41 | control + XF86Favorites | ||
42 | ~/.bin/touchpad | ||
43 | |||
40 | # brightness | 44 | # brightness |
41 | XF86MonBrightnessDown | 45 | XF86MonBrightnessDown |
42 | sudo ~/.bin/light d | 46 | sudo ~/.bin/light d |