Sunday, October 20, 2013

Ubuntu Unity Launcher to Mute XBMC

Because you can never have too many ways to mute the TV when a prescription drug commercial begins.

The text for the desktop file is shown below. Change your IP address and port accordingly.

[Desktop Entry]
Name=Mute XBMC 
Type=Application
# I put the icon file in ~/.local/share/icons
Icon=mute.png
Exec=curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc": "2.0", "method": "Application.SetMute", "params": {"mute":"toggle"}, "id": 1}' http://192.168.1.20:8080/jsonrpc