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
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
echo " $(date '+%b %d (%a) %I:%M%p') "
|
||||
echo "$(/home/aselimov/bin/title_text.sh)"
|
||||
|
|
|
@ -43,7 +43,7 @@ else
|
|||
# Rofi theme
|
||||
sed -i -e "s/dark.rasi/light.rasi/" $HOME/.config/rofi/config.rasi
|
||||
|
||||
# Update ST colors
|
||||
# # Update ST colors
|
||||
echo " st*color0:#F0EDEC
|
||||
st*color1:#A8334C
|
||||
st*color2:#4F6C31
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue