When I try to put shortcut on "scrot -s" execution, nothing happenes.
When I use just "scrot" screenshot is taken and saved into necessary directory, but when I use "scrot -s" which is supposed to pop up the selection cursor, nothing happens. I tried to use both awful.spawn and awful.spawn.with_shell
awful.key({ modkey, }, "Print",
function()
awful.spawn.with_shell("scrot -s")
end, { description = "take screenshot", group =
"launcher" })
Bind your hotkey to sleep 0.2 && scrot -s
and it will work. The problem seems to be, that the window manager does not release the keyboard fast enough for scrot to be able to grab it (to wait for an abort signal).