New beggining.
This commit is contained in:
commit
6964b2b200
33 changed files with 1281 additions and 0 deletions
17
mouse_detect.sh
Executable file
17
mouse_detect.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
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`
|
||||
else
|
||||
exec `xinput enable ELAN0515:01\ 04F3:3142\ Touchpad`
|
||||
fi
|
||||
exit 0
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue