• Sign in
  • Sign up
Elektrine
EN
Log in Register
Modes
Overview Chat Timeline Communities Gallery Lists Friends Email Vault DNS VPN
Back to Timeline !linux @floquant
In reply to 3 earlier posts
@AstroLightz@lemmy.world on lemmy.world Open parent
Arch: Control VLC through terminal commands?
I’m making a Python script to play music through VLC and I wanted to add a way to control audio playback of VLC, like pause/play, next/previous, etc. I know I can change shuffle mode before launching VLC with the –random and –no-random arguments. However, is there a way to change playback settings through the Linux terminal while VLC is running?
Open parent Original URL
28
1
13
@Maxy@lemmy.blahaj.zone on lemmy.blahaj.zone Open parent
VLC appears to support MPRIS, so commands like $ playerctl play-pause $ playerctl next $ playerctl previous Should be able to control it. See the Relevant arch wiki page for more info. VLC also appears to have a TUI interface. Check out the VLC wiki
Open parent Original URL
0
0
9
@AstroLightz@lemmy.world on lemmy.world Open parent
Thank you so much! One more thing: would there be a way to check if the user has playerctl installed on their system? Or is there a Python package like it?
Open parent Original URL
0
0
7
0
floquant in !linux
@floquant@lemmy.dbzer0.com · Mar 07
You can test if a command exists in several ways, but the most portable one should be using command -v which is POSIX. if command -v playerctl &> /dev/null # do things else # warn and exit end
View on lemmy.dbzer0.com
0
0
0
Sign in to interact

Loading comments...

About Community

linux
Linux
!linux@lemmy.ml

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules
  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc
Related Communities
  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

64670
Members
10906
Posts
Created: June 01, 2019
View All Posts
313k7r1n3

Company

  • About
  • Contact
  • FAQ

Legal

  • Terms of Service
  • Privacy Policy
  • VPN Policy

Email Settings

IMAP: mail.elektrine.com:993

POP3: pop3.elektrine.com:995

SMTP: mail.elektrine.com:465

SSL/TLS required

Support

  • support@elektrine.com
  • Report Security Issue

Connect

Tor Hidden Service

khav7sdajxu6om3arvglevskg2vwuy7luyjcwfwg6xnkd7qtskr2vhad.onion
© 2026 Elektrine. All rights reserved. • Server: 05:52:37 UTC