This is a collection of dotfiles and scripts for my bspwm setup
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.
 
 
 
 
 
 

24 lines
349 B

#!/bin/bash
case $BLOCK_BUTTON in
# right click
3) xbacklight -set 30;;
# scroll up
4) xbacklight -inc 10 ;;
# scroll down
5) xbacklight -dec 10 ;;
esac
percentage=$(printf "%.0f" "$(xbacklight)")
if (( $percentage >= 75 )); then
icon=""
elif (( $percentage >= 25 )); then
icon=""
else
icon=""
fi
echo $icon $percentage%