Project

General

Profile

Change Audacious' skin via the command line?

Added by aaa bbb 2 months ago

Hi there,

Is there any way to change Audacious' skin using the command line or with a script?

I'd like to change it's skin automatically when I change my desktop theme. I have a script that changes my desktop theme and I'd like to add a command to change Audacious' skin along with it when I run that script. I'm using the Winamp Classic interface in Qt mode on Linux Mint.

Thanks.


Replies (3)

RE: Change Audacious' skin via the command line? - Added by Thomas Lange 2 months ago

The skin setting is saved as file path in the config file ~/.config/audacious/config.

[skins]
skin=/usr/share/audacious/Skins/Default

You can read or change it with "audtool".

$ audtool config-get skins:skin
/usr/share/audacious/Skins/Default

$ audtool config-set skins:skin "/usr/share/audacious/Skins/Classic" 

This only works while Audacious is running and then requires to restart it to take effect.
So it may be better for you to use "sed" or something similar on the config file directly.

RE: Change Audacious' skin via the command line? - Added by aaa bbb 2 months ago

Thank you, Thomas.

Although, I have Audacious installed via Flatpak. It seems that the skin files are located here on my HD:

/var/lib/flatpak/app/org.atheme.audacious/x86_64/stable/82cb7e70796272c7086b621994073c114b4973fa7371063f0333e9e7cdf9440e/files/share/audacious/Skins

I ran the following command (when Audacious was running, and restarted it after I ran the command), but it didn't seem to change the skin:

audtool config-set skins:skin "/var/lib/flatpak/app/org.atheme.audacious/x86_64/stable/82cb7e70796272c7086b621994073c114b4973fa7371063f0333e9e7cdf9440e/files/share/audacious/Skins/Classic" 

Could this be a permissions issue or something, you think?

RE: Change Audacious' skin via the command line? - Added by aaa bbb 2 months ago

I uninstalled the Flatpak version and installed the latest build (4.2) from Panda Jim's PPA (https://audacious-media-player.org/download), since the Linux Mint version is old (3.10) on their software manager.

Now the command works and the skin changes after restarting Audacious.

Thank you again, Thomas!

    (1-3/3)