Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
    
That is not going to work: the 'stop' 'next' and 'prev' have no knowledge of the currently playing video. Since none of the options are supported by vlc all you are doing here is start a new instance of VLC. –  Rinzwind May 29 '11 at 10:02
add comment

2 Answers 2

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

share|improve this answer
add comment

The standard VLC executable has no built-in support for those commands. However, you could control your instance of VLC via the remote control interface. Also there are a number of other interfaces available.

share|improve this answer
    
built in support? what version of vlc are you using? –  kazimir87 May 29 '11 at 14:17
    
Sorry, that was a type "has now support" was ment to be "has NO support". You misread me. –  con-f-use May 29 '11 at 15:01
1  
i didn't "misread" you if it was your fault for the typo. but thanks for the response. –  kazimir87 May 29 '11 at 22:25
    
No, that were even two typos "type" -> "typo". Sorry, I'm a governmentally tested dyslexic. –  con-f-use May 29 '11 at 22:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.