mirror of
https://github.com/wassname/thinkpad-x380-yoga-scripts.git
synced 2026-09-11 12:51:55 +08:00
toggle script
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
# toggles tablet mode
|
||||
if synclient -l | egrep "TouchpadOff.*= *0"; then
|
||||
xinput disable "ETPS/2 Elantech TrackPoint"
|
||||
synclient TouchpadOff=1
|
||||
nohup onboard >/dev/null 2>&1 &
|
||||
echo "tablet mode"
|
||||
else
|
||||
xinput enable "ETPS/2 Elantech TrackPoint"
|
||||
synclient TouchpadOff=0
|
||||
killall onboard
|
||||
echo "normal mode"
|
||||
fi
|
||||
Reference in New Issue
Block a user