|
|
@@ -5,8 +5,17 @@ speaker_low=🔈 |
|
|
|
speaker_medium=🔉 |
|
|
|
speaker_high=🔊 |
|
|
|
brightness_symbol=🔅 |
|
|
|
|
|
|
|
DELAY=1m |
|
|
|
# Statusbar loop |
|
|
|
|
|
|
|
while true; do |
|
|
|
mbsync -a |
|
|
|
sleep $DELAY |
|
|
|
done & |
|
|
|
|
|
|
|
while true; do |
|
|
|
mail |
|
|
|
volume=$(amixer sget Master | awk -F"[][]" 'END{ print $2 }') |
|
|
|
volume_amount=$(printf $volume | tr -d %) |
|
|
|
if [ $volume_amount = 0 ]; then |
|
|
@@ -19,6 +28,7 @@ while true; do |
|
|
|
volume_symbol=$speaker_high |
|
|
|
fi |
|
|
|
|
|
|
|
xsetroot -name "$volume_symbol$volume | $(date +"%c")" |
|
|
|
sleep 1m # Update time every minute |
|
|
|
xsetroot -name "📧Messages $(find ~/Mail -path '*/INBOX/new' -type f | wc -l) | |
|
|
|
$volume_symbol$volume | $(date +"%c")" |
|
|
|
sleep $DELAY |
|
|
|
done |