streetturtle / awesome-wm-widgets

Widgets for Awesome Window Manager
http://pavelmakhov.com/awesome-wm-widgets/
MIT License
2.16k stars 279 forks source link

calendar-widget: added option to show week numbers, possible fix for #316 #417

Closed Luka5W closed 1 year ago

Luka5W commented 1 year ago

the problem should be, that the decorate_all (fn_embed) is called multiple times for multiple purposes:

  1. flag=header|monthheader|weeknumber: background should stay normal
  2. flag=weekday|normal|focus: background should stay normal until its weekend
  3. flag=month: background should stay normal. and this is the line causing problems: https://github.com/awesomeWM/awesome/blob/aa8c7c6e27a20fa265d3f06c5dc3fe72cc5f021e/lib/wibox/widget/calendar.lua#L272

ive kind of fixed it but since i just know some lua basics, this might be not the best solution

possible fix for #316

streetturtle commented 1 year ago

Great! Thanks!