Last active
August 29, 2015 14:21
-
-
Save mikaelz/71055bbf5fc1aaf34ae7 to your computer and use it in GitHub Desktop.
Control VLC via command line (CLI). More info at https://stackoverflow.com/questions/8943464/linux-shell-vlc-programming
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export DISPLAY=":0.0" | |
dbus-send --session --type=method_call --print-reply --dest=org.mpris.MediaPlayer2.vlc /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export DISPLAY=":0.0" | |
dbus-send --session --type=method_call --print-reply --dest=org.mpris.MediaPlayer2.vlc /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment