diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index fda57e6..76d0561 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -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"}) )