Files
dotfiles/.bin/brightness
Simonas Narbutas f4c7de2e5d mv home bin to repo
2018-07-24 17:08:53 +02:00

16 lines
284 B
Bash
Executable File

#!/bin/bash
#
# adjust screen brightness
#
#
# Script to adjust screen brightness
function usage_and_exit {
echo "Usage: $(basename ${0}) <param1>"
exit 1
}
# Exit if we have an incorrect number of arguments
if [ ${#} -ne 1 ]; then
usage_and_exit
fi
xbacklight -inc ${1}