From eceb465e703b20b7c91f0a01bf9cf0979bdbe8de Mon Sep 17 00:00:00 2001 From: lanxu Date: Tue, 31 Oct 2017 21:32:18 +0200 Subject: [PATCH] Fixed screenshot --- .config/awesome/rc.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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"}) )