[openbox] Fwd: using backquotes on rc.xml
Mikael Magnusson
lists at bak.och.fr.am
Sat Sep 27 17:17:08 EDT 2008
On Sat, 27 Sep 2008, Nicolás Reynolds wrote:
> re-sending... i receive your mails but i can't send because i'm suscribed?
not subscribed? yes, that is probably why. I just accidentally sent my
reply from the wrong address due to an alpine bug and it seems to be
similarly swallowed.
> Hi everyone,
> I'm trying to bind keys to commands like this:
>
> notify-send -i mail_spam "LastFMProxy - Baneando" "`mpc | awk 'NR == 1'`"
>
>
> But it seems that openbox doesn't execute the command inside backquotes
> before notify-send, as I get a libnotify popup saying:
>
> LastFMProxy - Baneando
> `mpc | awk 'NR == 1'`
>
> when it should be something like:
>
> LastFMProxy - Baneando
> Hank Mobley - My sin
>
>
> I tried with html entities but still the same. is it possible?
This is for the same reason that you can't write python or C code in the
execute action, openbox is a window manager, not a shell. If you want to
use scripts, you have to execute the appropriate interpreter yourself, for
example:
<command>sh -c 'my command using `echo backticks`'</command>
--
Mikael Magnusson
More information about the openbox
mailing list