1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-23 03:32:30 +00:00

#87 fix; multicolor, powerarrow-darker: textclock localization readded

This commit is contained in:
luke bonham 2015-05-22 09:27:30 +02:00
parent f2953e3eae
commit a715d49bd1
5 changed files with 24 additions and 4 deletions

View file

@ -7,7 +7,7 @@ Power themes for Awesome WM 3.5+
--------------------------------
:Author: Luke Bonham <dada [at] archlinux [dot] info>
:Version: 2.0-git
:Version: git
:License: BY-NC-SA_
:Source: https://github.com/copycat-killer/awesome-copycats

View file

@ -313,7 +313,7 @@ for s = 1, screen.count() do
mywibox[s]:set_widget(layout)
-- Set proper background, instead of beautiful.bg_normal
mywibox[s]:set_bg(beautiful.topbar_path .. tostring(screen[mouse.screen].workarea.width):gsub(".0", "") .. ".png")
mywibox[s]:set_bg(beautiful.topbar_path .. math.floor(screen[mouse.screen].workarea.width) .. ".png")
end
-- }}}

View file

@ -442,7 +442,7 @@ for s = 1, screen.count() do
mybottomwibox[s]:set_widget(bottom_layout)
-- Set proper backgrounds, instead of beautiful.bg_normal
mywibox[s]:set_bg(beautiful.topbar_path .. tostring(screen[mouse.screen].workarea.width):gsub(".0", "") .. ".png")
mywibox[s]:set_bg(beautiful.topbar_path .. math.floor((screen[mouse.screen].workarea.width)) .. ".png")
mybottomwibox[s]:set_bg("#242424")
-- Create a borderbox above the bottomwibox

View file

@ -114,7 +114,19 @@ markup = lain.util.markup
-- Textclock
clockicon = wibox.widget.imagebox(beautiful.widget_clock)
mytextclock = awful.widget.textclock(markup("#7788af", "%A %d %B ") .. markup("#343639", ">") .. markup("#de5e1e", " %H:%M "))
--mytextclock = awful.widget.textclock(markup("#7788af", "%A %d %B ") .. markup("#343639", ">") .. markup("#de5e1e", " %H:%M "))
mytextclock = lain.widgets.abase({
timeout = 60,
cmd = "date +'%A %d %B %R'",
settings = function()
local t_output = ""
local o_it = string.gmatch(output, "%S+")
for i=1,3 do t_output = t_output .. " " .. o_it(i) end
widget:set_markup(markup("#7788af", t_output) .. markup("#343639", " > ") .. markup("#de5e1e", o_it(1)) .. " ")
end
})
-- Calendar
lain.widgets.calendar:attach(mytextclock, { font_size = 10 })

View file

@ -114,6 +114,14 @@ separators = lain.util.separators
clockicon = wibox.widget.imagebox(beautiful.widget_clock)
mytextclock = awful.widget.textclock(" %a %d %b %H:%M")
mytextclock = lain.widgets.abase({
timeout = 60,
cmd = "date +'%a %d %b %R'",
settings = function()
widget:set_text(" " .. output)
end
})
-- calendar
lain.widgets.calendar:attach(mytextclock, { font_size = 10 })