updated icons in scripts

This commit is contained in:
Solomon Laing 2022-10-10 16:27:17 +10:30
parent 184d51a65c
commit 0e95230b6a
5 changed files with 9 additions and 9 deletions

View File

@ -6,4 +6,4 @@ status=$(status-bat)
parts=($status) parts=($status)
echo "<fn=1>${parts[0]}</fn> ${parts[1]}" echo "<fn=1>${parts[0]} </fn> ${parts[1]}"

View File

@ -4,7 +4,7 @@ freemb=$(df -h -B 1048576 | grep "/$" | awk -F ' ' '{ print $4 }')
freegb=$(df -h -B 1048576 | grep "/$" | awk -F ' ' '{ print $4/1024 }') freegb=$(df -h -B 1048576 | grep "/$" | awk -F ' ' '{ print $4/1024 }')
if [ $freemb -lt 1024 ]; then if [ $freemb -lt 1024 ]; then
printf "<fn=1></fn> %0.2fMb" $freemb printf "<fn=1> </fn> %0.2fMb" $freemb
else else
printf "<fn=1></fn> %0.2fGb" $freegb printf "<fn=1> </fn> %0.2fGb" $freegb
fi fi

View File

@ -27,6 +27,6 @@ case $layout in
*) color=$magenta; icon=""; name="dvorak" ;; # f11c fa-keyboard-o *) color=$magenta; icon=""; name="dvorak" ;; # f11c fa-keyboard-o
esac esac
echo "<fc=$color><fn=1>$icon</fn> ${name}</fc>" echo "<fc=$color><fn=1>$icon </fn> ${name}</fc>"
# vim: ft=sh:expandtab:ts=4:shiftwidth=4 # vim: ft=sh:expandtab:ts=4:shiftwidth=4

View File

@ -67,7 +67,7 @@ then
signal=$((signal/5*5)) # get rid of some jitter signal=$((signal/5*5)) # get rid of some jitter
((signal > 100)) && signal=100 ((signal > 100)) && signal=100
wifi_status=" <fn=1>$wifi_icon</fn> <fc=$green>${signal}</fc>% ${ssid##*SSID: }" wifi_status=" <fn=1>$wifi_icon </fn> <fc=$green>${signal}</fc>% ${ssid##*SSID: }"
fi fi
vpn="$(ip -o address | grep -i "$dev_vpn *inet ")" vpn="$(ip -o address | grep -i "$dev_vpn *inet ")"
@ -75,13 +75,13 @@ if [ -n "$vpn" ]
then then
#vpn="${vpn##*inet }" #vpn="${vpn##*inet }"
#vpn_status="<fn=1></fn> ${vpn%%/*}" #vpn_status="<fn=1></fn> ${vpn%%/*}"
vpn_status="<fn=1></fn> " vpn_status="<fn=1> </fn> "
color=$green color=$green
else else
vpn_status="<fn=1></fn> " vpn_status="<fn=1> </fn> "
fi fi
echo "<fc=$color>${vpn_status}<fn=1>$icon</fn>${connectivity##*full}$wifi_status$eth_status</fc>" echo "<fc=$color>${vpn_status}<fn=1>$icon </fn>${connectivity##*full}$wifi_status$eth_status</fc>"
# vim: ft=sh:expandtab:ts=4:shiftwidth=4 # vim: ft=sh:expandtab:ts=4:shiftwidth=4

View File

@ -3,4 +3,4 @@
count=$(yay -Qu | wc -l) count=$(yay -Qu | wc -l)
icon="" icon=""
echo "<fn=1>$icon</fn> $count" echo "<fn=1>$icon </fn> $count"