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:
parent
3db68c6a5a
commit
6be8aa0d32
13 changed files with 286 additions and 183 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue