2018-02-20 10:21:03 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-04-01 08:26:40 +00:00
|
|
|
display=off
|
|
|
|
if xset q | grep -iq "monitor is on"; then
|
|
|
|
display=on
|
2018-02-20 10:21:03 +00:00
|
|
|
fi
|
2024-04-01 08:26:40 +00:00
|
|
|
|
|
|
|
case "$display" in
|
|
|
|
off)
|
|
|
|
xinput enable "TSC2005 touchscreen"
|
|
|
|
xset dpms force on
|
|
|
|
;;
|
|
|
|
on)
|
|
|
|
xinput disable "TSC2005 touchscreen"
|
|
|
|
xset dpms force off
|
|
|
|
;;
|
|
|
|
esac
|