From 141e42291015d1831bcb6b3977934050b5856a21 Mon Sep 17 00:00:00 2001 From: druckdev Date: Fri, 2 Apr 2021 18:36:03 +0200 Subject: [PATCH] polybar:calendar: Clear LC_TIME I have set LC_TIME to tk_TM.utf8 for its date formatting, but this is cumbersome when calling `cal`. --- .config/polybar/scripts/calendar.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/polybar/scripts/calendar.sh b/.config/polybar/scripts/calendar.sh index 3450a0e..1f99a9f 100755 --- a/.config/polybar/scripts/calendar.sh +++ b/.config/polybar/scripts/calendar.sh @@ -23,7 +23,7 @@ if [[ $# -eq 0 ]]; then echo 0 > "$FZF_CAL_TMP" # Call fzf - cal -wm | fzf "${FZF_ARGS[@]}" + LC_TIME= cal -wm | fzf "${FZF_ARGS[@]}" exit 0 elif [[ $1 = "-t" ]]; then TITLE=polybar-datetime-calendar @@ -49,5 +49,5 @@ else fi # Print calendar - cal -wm $(date +"%m %Y" -d "$counter months ago") + LC_TIME= cal -wm $(date +"%m %Y" -d "$counter months ago") fi