summaryrefslogtreecommitdiff
path: root/calendar-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2021-08-03 15:19:00 -0400
committerstreetturtle <streetturtle@gmail.com>2021-08-03 15:19:00 -0400
commit44c370aa575e46d8b5c026a933f036fd960e292e (patch)
tree428c37e56336adb29905d79495b4998a2ec26581 /calendar-widget
parent92a9170d9ce537693b2bdfe566f119b444bbe2e7 (diff)
parent55630a773497c117ab2233d72827b6f3a8d39032 (diff)
Merge branch 'master' of github.com:streetturtle/awesome-wm-widgets
Diffstat (limited to 'calendar-widget')
-rw-r--r--calendar-widget/calendar.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar-widget/calendar.lua b/calendar-widget/calendar.lua
index b39b563..81c28a9 100644
--- a/calendar-widget/calendar.lua
+++ b/calendar-widget/calendar.lua
@@ -142,7 +142,7 @@ local function worker(user_args)
-- highlight only today's day
if flag == 'focus' then
local today = os.date('*t')
- if today.month ~= date.month then
+ if not (today.month == date.month and today.year == date.year) then
flag = 'normal'
end
end