#!/bin/bash DEVICE=sysfs/backlight/intel_backlight case $1 in d*) light -s $DEVICE -U 10 ;; i*) light -s $DEVICE -A 10 ;; *) echo "ERROR: invalid command: \"$1\"" ;; esac