about summary refs log tree commit diff
path: root/install.sh
diff options
context:
space:
mode:
authorWeirdTreeThing <bradyn127@protonmail.com>2023-10-06 21:13:02 -0400
committerWeirdTreeThing <bradyn127@protonmail.com>2023-10-06 21:13:02 -0400
commit1db91cfcf139a0e99a0dcd6c521ddda58b58132d (patch)
tree1d825fea4728b413a0695d80ddcd0977dd7f9b35 /install.sh
parent8780146cac25ecefff81090eaf371db08704f81b (diff)
Install libinput config for keyd virtual keyboard
Allows Disabled While Typing feature of touchpad to work
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index d26274f..ca2160a 100755
--- a/install.sh
+++ b/install.sh
@@ -3,6 +3,8 @@
 #alpine arch and suse have packages
 #need to build on fedora and deb*
 
+ROOT=$(pwd)
+
 if [ -f /usr/bin/apt ]; then
 	distro="deb"
 elif [ -f /usr/bin/zypper ]; then
@@ -74,4 +76,12 @@ case $distro in
 	;;
 esac
 
+echo "Installing libinput configuration"
+sudo mkdir -p /etc/libinput
+if [ -f /etc/libinput/local-overrides.quirks ]; then
+    cat $ROOT/local-overrides.quirks >> /etc/libinput/local-overrides.quirks
+else
+    cp $ROOT/local-overrides.quirks /etc/libinput/local-overrides.quirks
+fi
+
 echo "Done"