Ubuntu – How to make quicklist for VLC Media Player with playback controls

playbackquicklistsunityvlc

I am trying to make a quicklist for VLC that has playback control, if possible. Using this link as reference, I've made a copy of vlc.desktop and added the following to the bottom in Gedit:

X-Ayatana-Desktop-Shortcuts=Play;Pause;Stop;Next;Prev
[Play Shortcut Group]
Name=Play
Exec=vlc --play
TargetEnvironment=Unity

[Pause Shortcut Group]
Name=Pause
Exec=vlc --pause
TargetEnvironment=Unity

[Stop Shortcut Group]

Name=Stop
Exec=vlc --stop
TargetEnvironment=Unity

[Next Shortcut Group]
Name=Next
Exec=vlc --next
TargetEnvironment=Unity

[Prev Shortcut Group]
Name=Prev
Exec=vlc --prev
TargetEnvironment=Unity

So far I'm having no luck getting it to work properly.

Best Answer

You can do this but seems more of a pita than worth considering there is a vlc appindicator or systray icon. (the systray icon works better than the indicator

Anyway vlc will respond to global hotkeys, then you'd use something like xdotool in your quicklist

The pita part is you'd need to create & set global hotkeys in vlc that don't conflict with anything else, then test that they work in vlc.

So as an example for pause, setting the global for 'pause' to ctrl+alt+p in vlc, see screen (you could do the play/pause toggle instead so only 1 quicklist entry needed

Then the quicklist entry, using xdotool which needs to be installed

[Pause Shortcut Group]
Name=Pause
Exec=xdotool key ctrl+alt+p
TargetEnvironment=Unity

Depending on what version of vlc you have after setting a global hotkey the next time you open the settings window it may not be displayed but will still be valid. Overall as mentioned a pita

enter image description here

Related Question