Setting a keyboard shortcut to interactively select a screenshot (sxhkd/scrot)
0
votes
1
answer
1804
views
I would like to add a keyboard shortcut using [sxhkd](https://github.com/baskerville/sxhkd) let me select a region of my desktop to screenshot using [scrot](https://en.wikipedia.org/wiki/Scrot) . This should be accomplished by adding this section to my sxhkd file,
ctrl + alt + x
scrot --select
but this doesn't work. The command
scrot --select
works fine when issued from a terminal, and this keyboard shortcut works fine if I change --select
to something non-interactive like --focused
, so I'm not sure why the above sxhkd entry is not working, but I suspect that it has to do with --select
being interactive. Why doesn't this work?
Asked by Mike Pierce
(952 rep)
Jan 20, 2021, 10:42 PM
Last activity: Apr 12, 2021, 05:55 PM
Last activity: Apr 12, 2021, 05:55 PM