From ea34410fbbb8dd5dffc2b43eda737fe2f870e903 Mon Sep 17 00:00:00 2001 From: copycat-killer Date: Sat, 14 Jan 2017 17:23:31 +0100 Subject: [PATCH] textclock deprecations removed; closes #133 --- rc.lua.copland | 2 +- rc.lua.dremora | 2 +- rc.lua.multicolor | 2 +- rc.lua.powerarrow-darker | 2 +- rc.lua.rainbow | 2 +- rc.lua.steamburn | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rc.lua.copland b/rc.lua.copland index de45e1e..d3d9726 100644 --- a/rc.lua.copland +++ b/rc.lua.copland @@ -122,7 +122,7 @@ green = "#8FEB8F" -- Textclock --os.setlocale(os.getenv("LANG")) -- to localize the clock -mytextclock = awful.widget.textclock(" %H:%M ") +mytextclock = wibox.widget.textclock(" %H:%M ") -- Calendar lain.widgets.calendar.attach(mytextclock) diff --git a/rc.lua.dremora b/rc.lua.dremora index 98278fd..fc925a9 100644 --- a/rc.lua.dremora +++ b/rc.lua.dremora @@ -119,7 +119,7 @@ white = beautiful.fg_focus gray = "#858585" -- 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 ")) -- Calendar diff --git a/rc.lua.multicolor b/rc.lua.multicolor index 9d9729f..5746eca 100644 --- a/rc.lua.multicolor +++ b/rc.lua.multicolor @@ -118,7 +118,7 @@ markup = lain.util.markup -- Textclock os.setlocale(os.getenv("LANG")) -- to localize the 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({ timeout = 60, diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index d24a163..c8906af 100644 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -119,7 +119,7 @@ separators = lain.util.separators -- Textclock 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({ timeout = 60, diff --git a/rc.lua.rainbow b/rc.lua.rainbow index cbcd415..078777c 100644 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -121,7 +121,7 @@ white = beautiful.fg_focus gray = beautiful.fg_normal -- Textclock -mytextclock = awful.widget.textclock(markup.font("Tamsyn 3", " ") .. +mytextclock = wibox.widget.textclock(markup.font("Tamsyn 3", " ") .. markup(white, " %H:%M ")) -- Calendar diff --git a/rc.lua.steamburn b/rc.lua.steamburn index 75da561..47cc090 100644 --- a/rc.lua.steamburn +++ b/rc.lua.steamburn @@ -119,7 +119,7 @@ markup = lain.util.markup gray = "#94928F" -- Textclock -mytextclock = awful.widget.textclock(" %H:%M ") +mytextclock = wibox.widget.textclock(" %H:%M ") -- Calendar lain.widgets.calendar.attach(mytextclock)