|
|
@@ -14,7 +14,21 @@ messages() { |
|
|
|
'.uidvalidity' -type f | grep -vE ',[^,]*S[^,]*$'| wc -l)" |
|
|
|
} |
|
|
|
|
|
|
|
DELAY=10m |
|
|
|
volume() { |
|
|
|
v="$(pactl list sinks | grep '^[[:space:]]Volume:' | head -n 1 | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,')" |
|
|
|
|
|
|
|
if [ $v -eq 0 ]; then |
|
|
|
i="ﱝ" |
|
|
|
elif [ $v -le 50 ]; then |
|
|
|
i="" |
|
|
|
else |
|
|
|
i="墳" |
|
|
|
fi |
|
|
|
|
|
|
|
printf "$i $v" |
|
|
|
} |
|
|
|
|
|
|
|
DELAY=5m |
|
|
|
|
|
|
|
while true; do |
|
|
|
mbsync -a |
|
|
@@ -22,25 +36,14 @@ while true; do |
|
|
|
done & |
|
|
|
|
|
|
|
while true; do |
|
|
|
volume=$(amixer sget Master | awk -F"[][]" 'END{ print $2 }') |
|
|
|
volume_amount=$(printf $volume | tr -d %) |
|
|
|
if [ $volume_amount = 0 ]; then |
|
|
|
volume_symbol=$speaker_muted |
|
|
|
elif [ $volume_amount -lt 30 ]; then |
|
|
|
volume_symbol=$speaker_low |
|
|
|
elif [ $volume_amount -lt 70 ]; then |
|
|
|
volume_symbol=$speaker_medium |
|
|
|
else |
|
|
|
volume_symbol=$speaker_high |
|
|
|
fi |
|
|
|
|
|
|
|
xsetroot -name "📧Messages $(messages) | |
|
|
|
$volume_symbol$volume | $(date +"%c")" |
|
|
|
xsetroot -name " Messages $(messages) \ |
|
|
|
$(volume) \ |
|
|
|
$(date +"%c")" |
|
|
|
sleep $DELAY |
|
|
|
done & |
|
|
|
|
|
|
|
setxkbmap -option ctrl:swapcaps -option tilde:swapescape |
|
|
|
picom -b |
|
|
|
picom -bfc |
|
|
|
~/.fehbg |
|
|
|
xbindkeys -f $HOME/Source/configs/xbindkeysrc |
|
|
|
|
|
|
@@ -54,7 +57,7 @@ do |
|
|
|
if [ "$csum" != "$new_csum" ] |
|
|
|
then |
|
|
|
csum=$new_csum |
|
|
|
dwm |
|
|
|
awesome |
|
|
|
else |
|
|
|
exit 0 |
|
|
|
fi |
|
|
|