stockholm/makefu/1systems/x/x13/toggle_brightness
2021-01-27 22:59:21 +01:00

9 lines
158 B
Bash

#!/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