SEARCH
Can a keybinding in ~/.config/openbox/lubuntu-rc.xml be bound to a shellscript?
Use a keybinding to bound a shellscript
Link keybinding to a command
INTRO
In lubuntu 14.04, when one wants to change/add keybindings, you can open up ~/.config/openbox/lubuntu-rc.xml and add in your keybinding. Recently I have added a keybinding to vertically maximize the active window, by pasting the following code in between </keybind> and </keybind key = ...> in the <keyboard> section:
Code:
<!--MAXIMIZE VERTICAL-->
<!--Super+Alt+Enter: Maximize Vertically-->
<keybind key="W-Return">
<action name="ToggleMaximizeVert"/>
</keybind>
MAIN QUESTION:
I have a shellscript that I would like to make a keybinding for. But when I write:
Code:
<keybind key="W-Return">
<action name="/home/${USER}/myshellscript.sh"/>
</keybind>
in lubuntu-rc.xml it doesn't execute myshellscript.sh.
How can we use a key binding to launch a shell script?