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:
parent
f2953e3eae
commit
a715d49bd1
|
@ -7,7 +7,7 @@ Power themes for Awesome WM 3.5+
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
:Author: Luke Bonham <dada [at] archlinux [dot] info>
|
:Author: Luke Bonham <dada [at] archlinux [dot] info>
|
||||||
:Version: 2.0-git
|
:Version: git
|
||||||
:License: BY-NC-SA_
|
:License: BY-NC-SA_
|
||||||
:Source: https://github.com/copycat-killer/awesome-copycats
|
:Source: https://github.com/copycat-killer/awesome-copycats
|
||||||
|
|
||||||
|
|
|
@ -313,7 +313,7 @@ for s = 1, screen.count() do
|
||||||
mywibox[s]:set_widget(layout)
|
mywibox[s]:set_widget(layout)
|
||||||
|
|
||||||
-- Set proper background, instead of beautiful.bg_normal
|
-- 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
|
end
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
|
|
|
@ -442,7 +442,7 @@ for s = 1, screen.count() do
|
||||||
mybottomwibox[s]:set_widget(bottom_layout)
|
mybottomwibox[s]:set_widget(bottom_layout)
|
||||||
|
|
||||||
-- Set proper backgrounds, instead of beautiful.bg_normal
|
-- 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")
|
mybottomwibox[s]:set_bg("#242424")
|
||||||
|
|
||||||
-- Create a borderbox above the bottomwibox
|
-- Create a borderbox above the bottomwibox
|
||||||
|
|
|
@ -114,7 +114,19 @@ markup = lain.util.markup
|
||||||
|
|
||||||
-- Textclock
|
-- Textclock
|
||||||
clockicon = wibox.widget.imagebox(beautiful.widget_clock)
|
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
|
-- Calendar
|
||||||
lain.widgets.calendar:attach(mytextclock, { font_size = 10 })
|
lain.widgets.calendar:attach(mytextclock, { font_size = 10 })
|
||||||
|
|
|
@ -114,6 +114,14 @@ separators = lain.util.separators
|
||||||
clockicon = wibox.widget.imagebox(beautiful.widget_clock)
|
clockicon = wibox.widget.imagebox(beautiful.widget_clock)
|
||||||
mytextclock = awful.widget.textclock(" %a %d %b %H:%M")
|
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
|
-- calendar
|
||||||
lain.widgets.calendar:attach(mytextclock, { font_size = 10 })
|
lain.widgets.calendar:attach(mytextclock, { font_size = 10 })
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue