You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
366 B

5 years ago
#!/usr/bin/env sh
TOUCHSCREENID=$(
xinput |
grep -i touchscreen |
grep pointer |
grep -oE 'id=[0-9]+' |
cut -d= -f2
)
xinput disable $TOUCHSCREENID
sxmo_setpineled blue 1
OLDB="$(cat /sys/class/backlight/backlight/brightness)"
sxmo_setpinebacklight 0
echo "Dragons?" | dmenu
sxmo_setpinebacklight $OLDB
sxmo_setpineled blue 0
xinput enable $TOUCHSCREENID