Fixed screenshot

This commit is contained in:
lanxu 2017-10-31 21:32:18 +02:00
parent 220bc3fe88
commit eceb465e70

View File

@ -502,11 +502,13 @@ for i = 1, 9 do
{description = "unmute audio", group = "audio"}), {description = "unmute audio", group = "audio"}),
awful.key({ modkey }, "Print", awful.key({ modkey }, "Print",
function () function ()
naughty.notify({ preset = naughty.config.presets.info, local command = [[bash -c 'escrotum "$(xdg-user-dir PICTURES)/%Y-%m-%d_%T_screenshot.png"']]
title = "Screenshot saved!", awful.spawn.easy_async(command, function(stdout, stderr)
text = "Nice"}) naughty.notify {
title = "Screenshot saved!",
awful.spawn("escrotum \"$(xdg-user-dir PICTURES)/%Y-%m-%d_screenshot.png\"") text = stdout,
}
end)
end, end,
{description = "Take screenshot", group = "audio"}) {description = "Take screenshot", group = "audio"})
) )