X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/e6f3e74e0c087d10d5b20448b3554cdb8b1f9fce..1a8ddf0e7fd88ec6f71c1a59aa4b2602c12cec50:/widgets/calendar.lua?ds=sidebyside diff --git a/widgets/calendar.lua b/widgets/calendar.lua index 7e52308..4714a54 100644 --- a/widgets/calendar.lua +++ b/widgets/calendar.lua @@ -113,15 +113,17 @@ function calendar:attach(widget, args) calendar.cal = args.cal or "/usr/bin/cal" calendar.post_cal = args.post_cal or "" calendar.icons = args.icons or icons_dir .. "cal/white/" - calendar.font = args.font or beautiful.font:sub(beautiful.font:find(""), - beautiful.font:find(" ")) + calendar.font = args.font or beautiful.font:gsub(" %d.*", "") calendar.font_size = tonumber(args.font_size) or 11 calendar.fg = args.fg or beautiful.fg_normal or "#FFFFFF" - calendar.bg = args.bg or beautiful.bg_normal or "#FFFFFF" + calendar.bg = args.bg or beautiful.bg_normal or "#000000" calendar.position = args.position or "top_right" calendar.scr_pos = args.scr_pos or 1 calendar.followmouse = args.followmouse or false + calendar.fg = string.sub(calendar.fg, 1, 7) + calendar.bg = string.sub(calendar.bg, 1, 7) + calendar.offset = 0 calendar.notify_icon = nil