I am trying to spawn khal, a terminal calendar, when mouse pressing the default textclock widget in awesome wm.
local cal_notification
mytextclock:connect_signal("button::release",
function()
if cal_notification == nil then
awful.spawn.easy_async(noisy,
function(stdout, stderr, reason, exit_code)
cal_notification = naughty.notify{
text = stdout,
width = auto,
destroy = function() cal_notification = nil end
}
end
)
else
naughty.destroy(cal_notification)
end
end)
Unfortunately on execution, all syntax highlighting of khal is gone. Does anyone have an idea how to spawn a notification without losing the 'look'?
Edit: This occurs probably with any other terminal calendar, for example with cal, I think.
With grep --color -EC6 "$(date +%e)" it still doesnt output color. With a forced --color statement of khal it outputs 001b 1m before every highlighted character.