wwmm / easyeffects

Limiter, compressor, convolver, equalizer and auto volume and many other plugins for PipeWire applications
GNU General Public License v3.0
6.12k stars 264 forks source link

[Request] Showing the last local preset loaded on command line #3179

Open matsumiya8 opened 2 weeks ago

matsumiya8 commented 2 weeks ago

It would be great if easyeffects -p would also let us see which preset was previously loaded. I'd like to put this information on my status bar, but I'm not sure how to access it other than using the GUI.

Digitalone1 commented 2 weeks ago

It's not easy since we show last local or last community preset loaded, depending on what has been selected.

wwmm commented 1 week ago

It's not easy since we show last local or last community preset loaded, depending on what has been selected.

Maybe we can just print more lines. For example this is easyeffects -p output on my system:

Output Presets: music,movies,mrodd,teams,game,teste,music_expander,
Input Presets: aula,teste,echo,debug,

It should be possible to something like

Last Local Input preset: ...
Last Local Output preset: ...
Last Loaded Community Input preset: ...

It is ugly but it should do the job. Or am I missing some detail that makes this not viable?

Digitalone1 commented 1 week ago

@wwmm It's doable. You could look at the code to set the labels in the preset menu. When the community package key is not set, it's a local preset, otherwise it's a community one.

https://github.com/wwmm/easyeffects/blob/master/src/presets_menu.cpp#L572