Updated bspwmrc, polybar scripts.

This commit is contained in:
Salyrus
2021-12-05 09:38:44 +01:00
parent 5f7b0fda75
commit 8e93f468ef
6 changed files with 283 additions and 32 deletions

View File

@ -1,3 +1,16 @@
#!/bin/bash
echo "$(brightnessctl | grep -o "(.*" | tr -d "()")"
BRIGHTNESS_VALUE=`brightnessctl | grep -o "(.*" | tr -d "()"`
BRIGHTNESS_NR=${BRIGHTNESS_VALUE//%}
if [ $BRIGHTNESS_NR -lt 20 ]; then
BRIGHTNESS_ICON=''
elif [ $BRIGHTNESS_NR -lt 50 ]; then
BRIGHTNESS_ICON=''
elif [ $BRIGHTNESS_NR -lt 80 ]; then
BRIGHTNESS_ICON=''
else
BRIGHTNESS_ICON=''
fi
echo "$BRIGHTNESS_ICON $BRIGHTNESS_VALUE"