• 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 @Maxy
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
Maxy in !linux
@Maxy@lemmy.blahaj.zone · Mar 07
That depends on your distro. On Debian/ubuntu(-based) distro’s, you can try apt list --installed playerctl, which will output nothing if the package isn’t yet installed, or the package name with version info if it is installed. To install it, run sudo apt install playerctl On arch(-based) distro’s, you can try pacman -Qi playerctl, which should return an error if there is no such package installed, or several lines of info if it is installed. To install it, run sudo pacman -S playerctl, ideally after running a full system upgrade with sudo pacman -Syu
View on lemmy.blahaj.zone
0
1
0
Sign in to interact

Comments (1)

Showing 0 of 1 cached locally.
Syncing comments from the remote thread. 1 more reply is still loading.

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: 07:31:06 UTC