You are not logged in.
I have clock and date widget , classic original in awesome wm .. it is possible make some fonts in this widget with color?
here is code:
mytextclock = awful.widget.textclock({ align = "right" }, "%A ~ %d.%m.%Y || %H:%M:%S", 5)Last edited by xhc (2012-07-30 16:04:40)
#Awesome window manager
Offline
Most widgets in awesome accept a simple html-like language to colorize the text:
mytext = "<span foreground=\"red\"> %A ~ %d.%m.%Y </span> this is not red"Offline
added to rc.lua.. awesome dont accept this form
#Awesome window manager
Offline
Here is what I use:
mytext = '<span color="#1793D1"> %A ~ %d.%m.%Y </span> this is not red'"Think for yourself and question authority." -T. Leary
Offline
added mytext, changed registered widget mytextclock to mytext... rc.lua accepted, but clock nowhere
#Awesome window manager
Offline
ok... it was a shortcut..
so: all code is:
mytextclock = awful.widget.textclock({ align = "right" }, '<span color="#1793D1"> %A ~ %d.%m.%Y </span> || %H:%M:%S', 5)Last edited by xhc (2012-07-30 16:27:15)
#Awesome window manager
Offline