awesome-wm-widgets/calendar-widget
streetturtle d6fec8b94d add monokai theme 2019-12-17 21:46:02 -05:00
..
README.md add light and dark calendar themes 2019-12-17 16:43:36 -05:00
calendar.lua add monokai theme 2019-12-17 21:46:02 -05:00
calendar_bottom_right.png themes for calendar widget 2019-12-15 22:10:22 -05:00
calendar_top.png add readme for the calendar widget 2019-12-12 22:39:16 -05:00
calendar_top_right.png add readme for the calendar widget 2019-12-12 22:39:16 -05:00
dark.png add light and dark calendar themes 2019-12-17 16:43:36 -05:00
light.png add light and dark calendar themes 2019-12-17 16:43:36 -05:00
nord.png themes for calendar widget 2019-12-15 22:10:22 -05:00
outrun.png themes for calendar widget 2019-12-15 22:10:22 -05:00

README.md

Calendar Widget

Calendar widget for Awesome WM - slightly improved version of the wibox.widget.calendar.

Features

  • mouse support: scroll up - shows next month, scroll down - previous

  • themes:

    Name Screenshot
    nord (default) nord_theme
    outrun outrun_theme
    light outrun_theme
    dark outrun_theme
  • setup widget placement

top center - in case you clock is centered:

calendar_top

top right - for default awesome config:

calendar_top_right

bottom right - in case your wibar at the bottom:

calendar_bottom_right

How to use

This widget needs an 'anchor' - another widget which triggers visibility of the calendar. Default mytextclock is the perfect candidate!
Just after mytextclock is instantiated, create the widget and add the mouse listener to it.

local calendar_widget = require("awesome-wm-widgets.calendar-widget.calendar")
-- ...
-- Create a textclock widget
mytextclock = wibox.widget.textclock()
-- default
local cw = calendar_widget()
-- or customized
local cw = calendar_widget({
    theme = 'outrun',
    placement = 'bottom_right'
})
mytextclock:connect_signal("button::press", 
    function(_, _, _, button)
        if button == 1 then cw.toggle() end
    end)