mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 19:22:32 +00:00
textclock deprecations removed; closes #133
This commit is contained in:
parent
3c8a746a20
commit
ea34410fbb
|
@ -122,7 +122,7 @@ green = "#8FEB8F"
|
||||||
|
|
||||||
-- Textclock
|
-- Textclock
|
||||||
--os.setlocale(os.getenv("LANG")) -- to localize the clock
|
--os.setlocale(os.getenv("LANG")) -- to localize the clock
|
||||||
mytextclock = awful.widget.textclock("<span font='Tamsyn 5'> </span>%H:%M ")
|
mytextclock = wibox.widget.textclock("<span font='Tamsyn 5'> </span>%H:%M ")
|
||||||
|
|
||||||
-- Calendar
|
-- Calendar
|
||||||
lain.widgets.calendar.attach(mytextclock)
|
lain.widgets.calendar.attach(mytextclock)
|
||||||
|
|
|
@ -119,7 +119,7 @@ white = beautiful.fg_focus
|
||||||
gray = "#858585"
|
gray = "#858585"
|
||||||
|
|
||||||
-- Textclock
|
-- Textclock
|
||||||
mytextclock = awful.widget.textclock(markup(gray, " %a")
|
mytextclock = wibox.widget.textclock(markup(gray, " %a")
|
||||||
.. markup(white, " %d ") .. markup(gray, "%b ") .. markup(white, "%H:%M "))
|
.. markup(white, " %d ") .. markup(gray, "%b ") .. markup(white, "%H:%M "))
|
||||||
|
|
||||||
-- Calendar
|
-- Calendar
|
||||||
|
|
|
@ -118,7 +118,7 @@ markup = lain.util.markup
|
||||||
-- Textclock
|
-- Textclock
|
||||||
os.setlocale(os.getenv("LANG")) -- to localize the clock
|
os.setlocale(os.getenv("LANG")) -- to localize the clock
|
||||||
clockicon = wibox.widget.imagebox(beautiful.widget_clock)
|
clockicon = wibox.widget.imagebox(beautiful.widget_clock)
|
||||||
mytextclock = awful.widget.textclock(markup("#7788af", "%A %d %B ") .. markup("#535f7a", ">") .. markup("#de5e1e", " %H:%M "))
|
mytextclock = wibox.widget.textclock(markup("#7788af", "%A %d %B ") .. markup("#535f7a", ">") .. markup("#de5e1e", " %H:%M "))
|
||||||
--[[
|
--[[
|
||||||
mytextclock = lain.widgets.base({
|
mytextclock = lain.widgets.base({
|
||||||
timeout = 60,
|
timeout = 60,
|
||||||
|
|
|
@ -119,7 +119,7 @@ separators = lain.util.separators
|
||||||
|
|
||||||
-- Textclock
|
-- Textclock
|
||||||
clockicon = wibox.widget.imagebox(beautiful.widget_clock)
|
clockicon = wibox.widget.imagebox(beautiful.widget_clock)
|
||||||
--mytextclock = awful.widget.textclock(" %a %d %b %H:%M")
|
--mytextclock = wibox.widget.textclock(" %a %d %b %H:%M")
|
||||||
|
|
||||||
mytextclock = lain.widgets.abase({
|
mytextclock = lain.widgets.abase({
|
||||||
timeout = 60,
|
timeout = 60,
|
||||||
|
|
|
@ -121,7 +121,7 @@ white = beautiful.fg_focus
|
||||||
gray = beautiful.fg_normal
|
gray = beautiful.fg_normal
|
||||||
|
|
||||||
-- Textclock
|
-- Textclock
|
||||||
mytextclock = awful.widget.textclock(markup.font("Tamsyn 3", " ") ..
|
mytextclock = wibox.widget.textclock(markup.font("Tamsyn 3", " ") ..
|
||||||
markup(white, " %H:%M "))
|
markup(white, " %H:%M "))
|
||||||
|
|
||||||
-- Calendar
|
-- Calendar
|
||||||
|
|
|
@ -119,7 +119,7 @@ markup = lain.util.markup
|
||||||
gray = "#94928F"
|
gray = "#94928F"
|
||||||
|
|
||||||
-- Textclock
|
-- Textclock
|
||||||
mytextclock = awful.widget.textclock(" %H:%M ")
|
mytextclock = wibox.widget.textclock(" %H:%M ")
|
||||||
|
|
||||||
-- Calendar
|
-- Calendar
|
||||||
lain.widgets.calendar.attach(mytextclock)
|
lain.widgets.calendar.attach(mytextclock)
|
||||||
|
|
Loading…
Reference in a new issue