Skip to content

Commit

Permalink
tiny fix: clicking the sidebar clock should not call non existent fun…
Browse files Browse the repository at this point in the history
…ction calendar_toggle() anymore
  • Loading branch information
Elena committed Feb 28, 2019
1 parent 49f1006 commit b817986
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions config/awesome/noodle/sidebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -258,43 +258,19 @@ local time = wibox.widget.textclock("%H %M")
time.align = "center"
time.valign = "center"
time.font = "sans 55"
time:buttons(gears.table.join(
awful.button({ }, 1, function ()
calendar_toggle()
end),
awful.button({ }, 3, function ()
calendar_toggle()
end)
))

local date = wibox.widget.textclock("%B %d")
-- local date = wibox.widget.textclock("%A, %B %d")
-- local date = wibox.widget.textclock("%A, %B %d, %Y")
date.align = "center"
date.valign = "center"
date.font = "sans medium 16"
date:buttons(gears.table.join(
awful.button({ }, 1, function ()
calendar_toggle()
end),
awful.button({ }, 3, function ()
calendar_toggle()
end)
))

-- local fancy_date = wibox.widget.textclock("%-j days around the sun")
local fancy_date = wibox.widget.textclock("Knowing that today is %A fills you with determination.")
fancy_date.align = "center"
fancy_date.valign = "center"
fancy_date.font = "sans italic 11"
fancy_date:buttons(gears.table.join(
awful.button({ }, 1, function ()
calendar_toggle()
end),
awful.button({ }, 3, function ()
calendar_toggle()
end)
))

local mpd_song = require("noodle.mpd_song")
local mpd_widget_children = mpd_song:get_all_children()
Expand Down

0 comments on commit b817986

Please sign in to comment.