Fixed screenshot

nixos
lanxu 2017-10-31 21:32:18 +02:00
parent 220bc3fe88
commit eceb465e70
1 changed files with 7 additions and 5 deletions

View File

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