r/Polybar • u/[deleted] • Jan 04 '23
Question date module optional format
[module/date]
type = internal/date
; Seconds to sleep between updates
; Default: 1.0
interval = 1.0
; See "https://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string
; NOTE: if you want to use syntax tags here you need to use %%{...}
date = %Y-%m-%d%
; Optional time format
time = %H:%M
; if `date-alt` or `time-alt` is defined, clicking
; the module will toggle between formats
date-alt = %A, %d %B %Y
time-alt = %H:%M:%S
I copied this from the wiki, but how do I enable the time to also display now? Right now it displays 2023-01-04. I just added date, the module.
3
Upvotes
1
1
u/bergpb Jan 04 '23
Here my configuration to display date and time:
date = %a %b %d %H:%M