rice/bright

7 lines
252 B
Plaintext
Raw Normal View History

2019-05-15 08:51:58 +00:00
#!/bin/bash
# Script to siimply change the brightness
level=$(echo "$(seq 1 100)" | dmenu -i -p 'Brightnesss from 1-100')
percentage=$(echo "$level/100" | bc -l | head -c 4)
[ -z "$percentage" ] && exit 0
xrandr --output eDP-1 --brightness $percentage