]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/widgets/calendar.lua
mpv: don't ignore vp9 codecs
[dotfiles.git] / awesome / widgets / calendar.lua
index cdf58ae9a6c4faf78001578db2f8c12f7492df2f..a8acb07aa8249806f58f83bbc55c5d8a8dad9814 100644 (file)
@@ -9,6 +9,7 @@
 local awful        = require("awful")
 local beautiful    = require("beautiful")
 local naughty      = require("naughty")
+local wibox        = require("wibox")
 
 local io           = { popen = io.popen }
 local os           = { date = os.date }
@@ -22,11 +23,11 @@ calendar.bg        = beautiful.bg_normal or "#FFFFFF"
 calendar.position  = "top_right"
 calendar.offset = 0
 
-local calwidget = awful.widget.textclock(" %a %b %d, %k:%M ", 10)
+local calwidget = wibox.widget.textclock(" %a %b %d, %H:%M ", 10)
 
 calwidget:connect_signal("mouse::enter", function () calendar:show(0) end)
 calwidget:connect_signal("mouse::leave", function () calendar:hide() end)
-calwidget:buttons(awful.util.table.join(
+calwidget:buttons(gears.table.join(
     awful.button({ }, 1, function () calendar:show(-1) end),
     awful.button({ }, 3, function () calendar:show( 1) end),
     awful.button({ }, 4, function () calendar:show(-1) end),