LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices

Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Rate this Entry

Controlling VLC via openbox key bindings... and wget(!)

Posted 01-28-2013 at 10:21 AM by the dsc
Updated 01-28-2013 at 06:10 PM by the dsc (fixing some stuff, redirection didn't work that way)

On openbox' rc.xml, in the corresponding section:

Code:
    <keybind key="W-z">
      <action name="Execute">
<execute>wget http://127.0.0.1:8080/requests/status.xml?command=pl_previous -O /dev/null</execute> 
      </action>
    </keybind>
    <keybind key="W-x">
      <action name="Execute">
	<execute>wget http://127.0.0.1:8080/requests/status.xml?command=pl_next -O /dev/null</execute> 
      </action>
    </keybind>
With "web" interface enabled

By far the weirdest workaround I've seen on this sort of thing. If that's really a workaround and not the "proper" way to do it.

Command line has options such as:

vlc --global-key-prev p <playlist-name-I-guess.m3u>

which sort of works, except that in this case it won't be really the previous, but just a random element. I guess the playlist is being re-loaded, but it won't work if you don't give such mysterious "string", which is supposed to be a file, according to the error console. VLC's instrunctions are as follow:

Quote:
--global-key-prev=<string> Previous
Select the hotkey to use to skip to the previous item in the playlist.
--key-prev=<string> Previous
Select the hotkey to use to skip to the previous item in the playlist.
Which to be honest I can't really tell if that's a command line to navigate through the playlist, or just to set the hotkeys. It sounds more like the latter, but that's a rather odd command to have on command line begin with. Furthermore I didn't succeed in trying to re-set the hotkeys that way either, so I guess it's really a navigation control, as it's something more expected to have on command line, I guess.
Posted in Uncategorized
Views 611 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 11:12 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration