Fixed screenshot
This commit is contained in:
parent
220bc3fe88
commit
eceb465e70
|
@ -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"']]
|
||||||
|
awful.spawn.easy_async(command, function(stdout, stderr)
|
||||||
|
naughty.notify {
|
||||||
title = "Screenshot saved!",
|
title = "Screenshot saved!",
|
||||||
text = "Nice"})
|
text = stdout,
|
||||||
|
}
|
||||||
awful.spawn("escrotum \"$(xdg-user-dir PICTURES)/%Y-%m-%d_screenshot.png\"")
|
end)
|
||||||
end,
|
end,
|
||||||
{description = "Take screenshot", group = "audio"})
|
{description = "Take screenshot", group = "audio"})
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user