#!/bin/bash
#Toggle the LCD backlight.
#There is no way to read the LCD backlight status, so we must use a temporary file.
if [ -f /etc/acpi/actions/lighton.state ]; then
	echo "Turning off LCD backlight"
	radeontool light off
	rm /etc/acpi/actions/lighton.state
else
	echo "Turning on LCD backlight"
	radeontool light on
	touch /etc/acpi/actions/lighton.state
fi
