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?


If you don’t want a playerctl dependency you can use a dbus library to check for mpris players manually, though it’s a little less readable
https://wiki.archlinux.org/title/MPRIS
In section 2.3 it explains how to use D-Bus and I think OP should use it instead