easyeffects icon indicating copy to clipboard operation
easyeffects copied to clipboard

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

Open matsumiya8 opened this issue 1 year ago • 4 comments

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.

matsumiya8 avatar Jun 12 '24 23:06 matsumiya8

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

Digitalone1 avatar Jun 13 '24 05:06 Digitalone1

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?

wwmm avatar Jun 15 '24 16:06 wwmm

@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

Digitalone1 avatar Jun 15 '24 17:06 Digitalone1

Even being able to query a boolean value if any effect at all has been applied would be useful (maybe a separate flag to consider; maybe this can be already done via pipewire utilities but I don't know how).

andis-sprinkis avatar Aug 14 '24 20:08 andis-sprinkis