Executar Multiplos Comandos no Openbox

1 – Copie o arquivo rc.xml do openbox para o home do seu usuario se o mesmo nao existir

test -e .config/openbox/rc.xml || cp /etc/xdg/openbox/rc.xml .config/openbox/

2 – Adicione a seguinte entrada dentro da tag keyboard do arquivo rc.xml

vi .config/openbox/rc.xml
<keyboard>
...
<keybind key="W-2">
   <action name="Execute">
     <command>sh -c 'pkill mplayer; mplayer http://relay.181.fm:8128'</command>
   </action>
 </keybind>

</keyboard>

3 – Execute o comando para re-ler os arquivos de configuracao

openbox --reconfigure
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s