From f2b043c08ac4562652fded8ef6e50fdc25b7ccc0 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 10 Jan 2025 18:03:14 +0100 Subject: sway: Use ISO week number There are several week number definitions (see `man 1 date`). Switching to a more common one with this commit since it is very unexpected that it starts with calendar week 0 in 2025. --- sway/status.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/status.sh') diff --git a/sway/status.sh b/sway/status.sh index 6bbbd63..eb68f81 100755 --- a/sway/status.sh +++ b/sway/status.sh @@ -9,7 +9,7 @@ temp() { done } bat="BAT $(cat /sys/class/power_supply/BAT*/capacity | tr '\n' ' ')" -time="$(date '+KW %W %a %Y-%m-%d %H:%M')" +time="$(date '+KW %V %a %Y-%m-%d %H:%M')" echo "| $(temp)| ${bat}| ${time} |" -- cgit v1.2.3-70-g09d2