feat: cleanup aliases, sbar, XDG home
This commit is contained in:
parent
caafb1b1c6
commit
03a0bab194
11 changed files with 35 additions and 30 deletions
26
bin/sbar
26
bin/sbar
|
@ -93,17 +93,19 @@ echo "$$" > "$HOME/.cache/pidofbar"
|
|||
|
||||
sec=0
|
||||
while true; do
|
||||
[ "$((sec % 300))" = 0 ] && update_crypto
|
||||
[ "$((sec % 10))" = 0 ] && {
|
||||
update_cpu
|
||||
update_memory
|
||||
update_sink_vol
|
||||
update_source_vol
|
||||
update_wlp
|
||||
update_bat
|
||||
update_time
|
||||
display
|
||||
wait && {
|
||||
[ "$((sec % 300))" = 0 ] && update_crypto
|
||||
[ "$((sec % 10))" = 0 ] && {
|
||||
update_cpu
|
||||
update_memory
|
||||
update_sink_vol
|
||||
update_source_vol
|
||||
update_wlp
|
||||
update_bat
|
||||
update_time
|
||||
display
|
||||
}
|
||||
sec="$((sec + 10))"
|
||||
}
|
||||
sleep "$(awk "BEGIN {s=$(date '+%S.%N'); print 10 - s % 10}")" & wait
|
||||
sec="$((sec + 10))"
|
||||
awk '@load "time"; BEGIN {d=10; s=system("date \"+%S.%N\""); sleep(d - s % d)}' &
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue