You are not logged in.
Pages: 1
Couldn't find anyone who's done it successfully yet.
Is it possible to call `scrot -s` from awesome spawn process calls?
awful.key({ }, "Print",
function()
awful.util.spawn("scrot -s",false)
end),
awful.key({ modkey, }, "Print",
function()
awful.util.spawn("scrot -u",false)
end),
The `modkey` bound one works, it simply snaps a screenshot of the currently selected window.
However, the `scrot -s` call appears to do nothing.
Any ideas on how to correct my sloppy binding?
Offline
Try this, for awesome 3.5
-- Screen Shot Selection Shortcut
awful.key({ "Mod1", "Control" }, "c", function () awful.util.spawn_with_shell("sleep 0.5 && scrot /root/'%Y-%m-%d_%T_$wx$h.png' -s -q 100") end),
Hope it help
Offline
famous input grabbing conflict issue, "sleep 0.2;" (play with the time, but 0.2 works for me) first to give yourself some time to release the shortcut so that scrot can grab the X server.
Offline
Try this, for awesome 3.5
-- Screen Shot Selection Shortcut awful.key({ "Mod1", "Control" }, "c", function () awful.util.spawn_with_shell("sleep 0.5 && scrot /root/'%Y-%m-%d_%T_$wx$h.png' -s -q 100") end),
Hope it help
thank you, man. helped so much
Offline
Pages: 1