From: copycat-killer Date: Tue, 15 Sep 2015 06:55:53 +0000 (+0200) Subject: #139 proposed fix X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/5e8b6394ff09c3cf0b7f7d6bf61a2174efe87359?ds=sidebyside;hp=c959fc72b053b09a1f08bcb070cd360cc1c975ad #139 proposed fix --- diff --git a/widgets/calendar.lua b/widgets/calendar.lua index b811f70..4714a54 100644 --- a/widgets/calendar.lua +++ b/widgets/calendar.lua @@ -113,8 +113,7 @@ 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 "#000000"