You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
216 B

#!/bin/bash
BRIGHTNESS=`cat brightness.txt`
if [[ -z "$BRIGHTNESS" ]]; then
BRIGHTNESS=1
fi
BRIGHTNESS=`bc -l <<< $BRIGHTNESS$1`
xrandr --output eDP-1 --brightness $BRIGHTNESS
echo "$BRIGHTNESS" > brightness.txt