Reduce clock drift in the status bar

This commit is contained in:
Ohad Livne 2025-06-04 22:44:37 +03:00
parent 67a552bd04
commit 7da75d4b68
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D

View file

@ -251,7 +251,7 @@ bar {
# When the status_command prints a new line to stdout, swaybar updates. # When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time. # The default just shows the current date and time.
status_command while echo $(print-status); do sleep 1; done status_command while :; do sleep 0.5 & echo $(print-status); wait; done
colors { colors {
statusline #ffffff statusline #ffffff