I’m trying to add a new keybinding to the rc.xml
of my Openbox WM. The code is as follows:
<keybind key="Print">
<action name="Execute">
<command>scrot -s - | xclip -selection clipboard -target image/png</command>
</action>
</keybind>
But nothing happens. Alternatively, if I put something like:
scrot '/tmp/%F_%T_$wx$h.png' -e 'xclip -selection clipboard -target image/png -i $f'
…Everything works just fine. What am I doing wrong?