I am looking for a way in Ubuntu Minimal (No desktop UI) to be able to create a custom keyboard shortcut like Ctrl+Alt+1 and then have it run a wGet HTTP command.
To do this in Windows I would create a .cmd file that contains a wGET HTTP command like:
For example this HTTP command would tell my Home Automation system to do something, like turn on a light.
wget --delete-after "http://192.168.1.100:3480/data_request?id=lu_action&output_format=xml&DeviceNum=3&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1"
In Windows I would then use AutoHotKey running in the system tray and a AutoHotKey script like:
^!1 = Ctrl+Alt+1 and it then runs the command file C:\Lights\Lounge-On-Left.cmd.
IfWinExist Untitled - Left Lamp On
So when I pressed Ctrl+Alt+1 on the keyboard the Light would come on. I can then further program my Universal remote control, to send these custom keyboard shortcuts to the HTPC. So I can control my lights via my remote control.
I have migrated away from Windows Media Center to Linux Ubuntu 12.10 minimal and XBMC. I am a Linux newbie and am looking for help on how I might do this under Linux?
Any help greatly appreciated