Small error in pkginfo.sh + added updates to bar.sh again
This commit is contained in:
parent
b056804a8c
commit
84968c9b91
2 changed files with 5 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
|||
FIFO="/tmp/bar.fifo"
|
||||
|
||||
FORMAT_LEFT=" %(music)s %(services)s %(diskspace)s"
|
||||
FORMAT_RIGHT="%(wifi)s %(battery)s %(clock)s "
|
||||
FORMAT_RIGHT="%(updates)s %(wifi)s %(battery)s %(clock)s "
|
||||
|
||||
icon_color="#A0A57E"
|
||||
icon() { echo -n "%{F$icon_color}"; printf '%b' "\ue$1"; echo -n "%{F-}"; }
|
||||
|
@ -113,8 +113,8 @@ clock() {
|
|||
|
||||
updates() {
|
||||
while true; do
|
||||
updates=$(pkginfo.sh)
|
||||
echo -n "$icon_updates $updates"
|
||||
updates=$(./pkginfo.sh)
|
||||
echo updates "$icon_updates $updates" > $FIFO;
|
||||
sleep 20
|
||||
done
|
||||
}
|
||||
|
@ -146,6 +146,7 @@ music &
|
|||
services &
|
||||
diskspace &
|
||||
wifi &
|
||||
updates &
|
||||
|
||||
( while true; do cat $FIFO; done ) | python ./barformatter.py "$FORMAT_LEFT" "$FORMAT_RIGHT" | lemonbar -g 1366x15 -f "Stlarch:size=6:style=regular" -f "Terminus:size=8" -B "#88000000" | run_handler
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ useless_packages() {
|
|||
pacman -Qtdq | wc -l
|
||||
}
|
||||
|
||||
if [ -Z "$internet" ]; then
|
||||
if [ -z "$internet" ]; then
|
||||
pac=?
|
||||
aur=?
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue