polybar📆 Clear LC_TIME
I have set LC_TIME to tk_TM.utf8 for its date formatting, but this is cumbersome when calling `cal`.
This commit is contained in:
@@ -23,7 +23,7 @@ if [[ $# -eq 0 ]]; then
|
|||||||
echo 0 > "$FZF_CAL_TMP"
|
echo 0 > "$FZF_CAL_TMP"
|
||||||
|
|
||||||
# Call fzf
|
# Call fzf
|
||||||
cal -wm | fzf "${FZF_ARGS[@]}"
|
LC_TIME= cal -wm | fzf "${FZF_ARGS[@]}"
|
||||||
exit 0
|
exit 0
|
||||||
elif [[ $1 = "-t" ]]; then
|
elif [[ $1 = "-t" ]]; then
|
||||||
TITLE=polybar-datetime-calendar
|
TITLE=polybar-datetime-calendar
|
||||||
@@ -49,5 +49,5 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Print calendar
|
# Print calendar
|
||||||
cal -wm $(date +"%m %Y" -d "$counter months ago")
|
LC_TIME= cal -wm $(date +"%m %Y" -d "$counter months ago")
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user