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 
# I put the icon file in ~/.local/share/icons
Exec=curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc": "2.0", "method": "Application.SetMute", "params": {"mute":"toggle"}, "id": 1}'

No comments: