Lots of updates to SelimovDE

- Swap from Super to alt as my main mod key
- Update some bar scripts
- Update picom settings (for use with Openbox)
- Update some dunst settings
- Update rofi settings
This commit is contained in:
Alex Selimov 2025-07-14 10:34:18 -04:00
parent 3db68c6a5a
commit 6be8aa0d32
Signed by: aselimov
GPG key ID: 3DDB9C3E023F1F31
13 changed files with 286 additions and 183 deletions

View file

@ -1,9 +1,18 @@
#!/bin/bash
#First we get the capacity
bat=$1
if [ -z "$1" ]; then
bat="BAT0"
else
bat=$1
fi
charge=$(cat /sys/class/power_supply/$bat/capacity)
# Exit early
if [ -z $charge ]; then
echo " $cstat󱉞"
fi
#Now get the status
bstat=$(cat /sys/class/power_supply/$bat/status)
@ -14,19 +23,19 @@ else
cstat=""
fi
if [ "$charge" -gt 90 ]; then
bat="$cstat"
bat="$cstat󰁹"
charge=""
elif [ "$charge" -gt 70 ]; then
bat="$cstat"
bat="$cstat󰂀"
charge=""
elif [ "$charge" -gt 50 ]; then
bat="$cstat"
bat="$cstat󰁾"
charge=""
elif [ "$charge" -gt 20 ]; then
bat="$cstat"
bat="$cstat󰁻"
charge=""
else
bat=" $cstat"
bat=" $cstat󰁺"
charge=" $charge%"
fi