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 if [[ $1 == "icon" ]]; then
while true; do while true; do
sleep 1
get_state get_state
tail "$FILE" tail "$FILE"
sleep 1
done done
fi fi

View file

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

View file

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

View file

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