20 lines
413 B
Lua
20 lines
413 B
Lua
local awful = require("awful")
|
|
|
|
function get_calendar()
|
|
local f = io.popen('gcal -i- -s1 .+')
|
|
local l = nil
|
|
if f ~= nil then
|
|
f:read()
|
|
l = f:read("*all")
|
|
else
|
|
l = '?'
|
|
end
|
|
f:close()
|
|
return l
|
|
end
|
|
|
|
textclock_widget = awful.widget.textclock(" %a %d %b %H:%M ")
|
|
|
|
calendar_widget = awful.tooltip({objects={textclock_widget}})
|
|
calendar_widget:set_text(get_calendar())
|