You are not logged in.

#1 2013-07-06 14:08:15

totolotto
Member
From: Hungary
Registered: 2012-11-13
Posts: 114

[solved] Awesome wm - time format error

Hi,

I was able to configure Awesome with one exception: when I change the time format from %H to %l (lower case L in /usr/share/awesome/lib/awful/widget/textclock.lua file) I get an error

"bad argument #1 to 'date' (invalid conversion specifier '%l:%M ' )". 

Any idea?

Thanks.

Last edited by totolotto (2013-07-06 15:08:44)

Offline

#2 2013-07-06 14:19:05

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: [solved] Awesome wm - time format error

http://www.lua.org/pil/22.1.html

Also don't change the format in the library itself, pass the format as the first argument to awful.widget.textclock in your rc.lua


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#3 2013-07-06 15:02:57

totolotto
Member
From: Hungary
Registered: 2012-11-13
Posts: 114

Re: [solved] Awesome wm - time format error

Thanks. Also, as I see there is not time format for 12-hour clock without a leading zero (i.e. 5:01 instead of 05:01)?

Offline

Board footer

Powered by FluxBB