stockholm/makefu/1systems/x/x13/toggle_brightness

9 lines
158 B
Plaintext
Raw Normal View History

2021-01-27 21:59:21 +00:00
#!/bin/sh
proc=/proc/acpi/ibm/lcdshadow
status=$(awk '/status:/{print $2}' "$proc")
if [ "$status" -eq 0 ];then
echo 1 > "$proc"
else
echo 0 > "$proc"
fi