feat: cleanup .local/bin

This commit is contained in:
ange 2024-10-22 16:33:50 +07:00
parent 757b759b4a
commit 87d37712dd
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
21 changed files with 69 additions and 86 deletions

View file

@ -108,8 +108,8 @@ echo "$$" > "$HOME/.cache/pidofbar"
sec=0
while true; do
[ "$((sec % 300))" = 10 ] && update_crypto
[ "$((sec % 10))" = 0 ] && {
[ "$((sec % 300))" -eq 5 ] && update_crypto
[ "$((sec % 5))" -eq 0 ] && {
update_cpu
update_memory
update_sink_vol
@ -119,7 +119,7 @@ while true; do
update_time
display
}
((sec += 10))
awk "@load \"time\"; BEGIN {d=10; s=$(date '+%S.%N'); sleep(d - s % d)}" &
((sec += 5))
awk "@load \"time\"; BEGIN {d=5; s=$(date '+%S.%N'); sleep(d - s % d)}" &
wait
done