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

3
polybar/scripts/bkpctl.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
echo "$(brightnessctl | grep -o "(.*" | tr -d "()")"

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"

View File

@ -3,7 +3,7 @@
updates=$(xbps-install -Mun 2> /dev/null | wc -l)
if [ -n "$updates" ] && [ "$updates" -gt 0 ]; then
echo " $updates"
echo " $updates"
else
echo ""
fi