archived old stuff;new layout

This commit is contained in:
pim-wtf
2023-02-16 10:26:50 +01:00
parent 8a327dc6f3
commit 4424e07644
54 changed files with 4779 additions and 0 deletions

View 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

View 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"