Update scripts.

This commit is contained in:
CronyAkatsuki 2024-12-25 21:14:35 +01:00
parent 9eb0fa22a9
commit 614e626902
12 changed files with 201 additions and 101 deletions

View file

@ -1,17 +1,17 @@
#!/bin/sh
if [ $XDG_SESSION_TYPE = "wayland" ]; then
if riverctl list-inputs | grep -i 'mouse' | grep -i 'MOSART' >> /dev/null ; then
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
if riverctl list-inputs | grep -i 'mouse' | grep -i 'MOSART' >>/dev/null; then
riverctl input pointer-1267-12610-ELAN0515:01_04F3:3142_Touchpad events disabled
else
riverctl input pointer-1267-12610-ELAN0515:01_04F3:3142_Touchpad events enabled
fi
exit 0
else
if xinput list | grep -i 'mouse' | grep -i 'MOSART' >> /dev/null; then
exec `xinput disable ELAN0515:01\ 04F3:3142\ Touchpad`
if xinput list | grep -i 'mouse' | grep -i 'MOSART' >>/dev/null; then
exec $(xinput disable ELAN0515:01\ 04F3:3142\ Touchpad)
else
exec `xinput enable ELAN0515:01\ 04F3:3142\ Touchpad`
exec $(xinput enable ELAN0515:01\ 04F3:3142\ Touchpad)
fi
exit 0
fi