Shortcut key to run script?
Posted: Thu Sep 20, 2012 8:40 am
Hi folks, I use a dual monitor setup on a laptop and have managed somehow to ham-fist my way to making a successful script that autodetects the best monitor and selects it at highest resolution. I've got this to work at startup and that's just dandy. Now I want to make it work on a hotkey. xev shows XF86Launch1 when the button is pressed.
tl;dr - how make lxde-rc.xml run script when press button?
This is what I've got so far:
No worky. Obviously something stoopid I'm doing wrong... any ideas?
tl;dr - how make lxde-rc.xml run script when press button?
This is what I've got so far:
Code: Select all
<keybind key="XF86Launch1">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>automonitor</name>
</startupnotify>
<command>/home/user/.monitorswitcher/automonitor.sh</command>
</action>
</keybind>