feat(eww): improve eww startup

This commit is contained in:
matt1432 2023-08-20 11:44:31 -04:00
parent 0528f40c60
commit 74d5373d48
4 changed files with 5 additions and 3 deletions

View file

@ -28,8 +28,8 @@ fi
if [[ $1 == "icon" ]]; then
while true; do
sleep 1
get_state
tail "$FILE"
sleep 1
done
fi

View file

@ -35,8 +35,8 @@ fi
if [[ $1 == "icon" ]]; then
while true; do
sleep 1
get_icon
sleep 1
done
fi

View file

@ -16,6 +16,7 @@ toggle() {
startup() {
(
if [[ ! -f "$FILE" ]]; then
echo 󰣐 > "$FILE"
fi
@ -37,6 +38,7 @@ startup() {
sleep 0.9 &&
eww update heart-ts=true
fi
) &
tail -f "$FILE"
}

View file

@ -25,8 +25,8 @@ fi
if [[ $1 == "icon" ]]; then
while true; do
sleep 1
get_state
sleep 1
done
fi