|
@@ -7,13 +7,6 @@ speaker_high=🔊 |
|
|
brightness_symbol=🔅 |
|
|
brightness_symbol=🔅 |
|
|
# Statusbar loop |
|
|
# Statusbar loop |
|
|
while true; do |
|
|
while true; do |
|
|
bat_state=$(acpi | awk 'NR==1{print $3}') |
|
|
|
|
|
if [ $bat_state == 'Charging,' ]; then |
|
|
|
|
|
bat_state='🠝' |
|
|
|
|
|
else |
|
|
|
|
|
bat_state='🠟' |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
volume=$(amixer sget Master | awk -F"[][]" 'END{ print $2 }') |
|
|
volume=$(amixer sget Master | awk -F"[][]" 'END{ print $2 }') |
|
|
volume_amount=$(printf $volume | tr -d %) |
|
|
volume_amount=$(printf $volume | tr -d %) |
|
|
if [ $volume_amount == 0 ]; then |
|
|
if [ $volume_amount == 0 ]; then |
|
@@ -26,9 +19,6 @@ while true; do |
|
|
volume_symbol=$speaker_high |
|
|
volume_symbol=$speaker_high |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
bat_percentage=$(acpi | awk 'NR==1{print $4}' | tr -d [,]) |
|
|
|
|
|
|
|
|
|
|
|
brightness=$(xbacklight -get | grep -o '^..') |
|
|
|
|
|
xsetroot -name "$brightness_symbol$brightness% | $volume_symbol$volume | 🔋$bat_state$bat_percentage | $(date +"%c")" |
|
|
|
|
|
|
|
|
xsetroot -name "$volume_symbol$volume | $(date +"%c")" |
|
|
sleep 1m # Update time every minute |
|
|
sleep 1m # Update time every minute |
|
|
done |
|
|
done |