You are not logged in.
So I am trying to change the clock format on the normal awesome top bar from 24h to 12h. The default format is "%a %b %d, %H:%M" as per the awesome documentation here.
That link also explains the textclock widget function call that is present in .config/awesome/rc.lua , so I have been trying to figure out why adding the format parameter (shown below) doesn't change the clock to a 12h display
I went from:
mytextclock = awful.widget.textclock({ align = "right" })
to the new code:
mytextclock = awful.widget.textclock({ align = "right", format = "%a %b %d, %I:%M" })
And that is having no effect. Can anyone tell me the correct place I can edit this time format?
Last edited by trann (2009-10-29 17:30:51)
Offline
You're in the right place, but your formatting is a bit off. My line is as follows:
mytextclock = awful.widget.textclock({ align = "right" }, " %a %d %b, %H:%M:%S ", 1)
so you need to update your line to:
mytextclock = awful.widget.textclock({ align = "right" }, "%a %b %d, %I:%M", 60)
Last edited by fastfret79 (2009-10-29 17:14:54)
Offline
yep, that worked perfectly. Thank you fastfret79
marking as solved.
Offline