archived old stuff;new layout
This commit is contained in:
9
2022-archive/artix/polybar/scripts/bat_toggle.sh
Normal file
9
2022-archive/artix/polybar/scripts/bat_toggle.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
updates=$(xbps-install -Mun 2> /dev/null | wc -l)
|
||||
|
||||
if [ -n "$updates" ] && [ "$updates" -gt 0 ]; then
|
||||
echo " $updates"
|
||||
else
|
||||
echo ""
|
||||
fi
|
16
2022-archive/artix/polybar/scripts/brightnessctl.sh
Normal file
16
2022-archive/artix/polybar/scripts/brightnessctl.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
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"
|
||||
|
Reference in New Issue
Block a user