5

I have pulseeffects installed and running. I have created a few equalizer profiles.

How can I toggle (enable/disable) selected profile using command line options.

I know I can just click on the profile but I would like to bind that to some global key to toggle it when needed. How can I do that?

I know I can load selected preset by using (where v2 is a profile name):

   $ pulseeffects -l v2

But how can I disable (unload) this profile ?

Screenshot: enter image description here

1 Answers1

1

For example, if you have 3 profiles like V1, V2 & V3 and you would like to select profile V1, you can run the below command

gsettings set com.github.wwmm.pulseeffects last-used-preset 'V1'

If you dont want this, you can use below command

gsettings reset com.github.wwmm.pulseeffects last-used-preset

screenshot

you can create a script with below content and call it with a shortcut you wish.

#!/usr/bin/env bash

key="com.github.wwmm.pulseeffects last-used-preset" current=$(gsettings get "$key")

if [ "$current" == "'V1'" ]; then gsettings reset "$key" else gsettings set "$key" "V1" fi

screenshot

Courtesy by @MichalPrzbylowicz for toggling on and off

dconf write /com/github/wwmm/pulseeffects/sinkinputs/equalizer/state true
dconf write /com/github/wwmm/pulseeffects/sinkinputs/equalizer/state false
Pablo Bianchi
  • 17,552
  • Yes, this selects given profile but does not enable/disable it afterwards... Is it possible to also activate/deactivate the profile ? – Michal Przybylowicz Jan 03 '20 at 20:41
  • I mean turn on (process sounds by the equalizer preset) and turn off (do not process sounds). – Michal Przybylowicz Jan 04 '20 at 06:08
  • I have added a screenshot. Please check. So I have like two things. Loading/Unloading a preset (You have already covered that) and turning it on/off - currently I can only do that in the GUI... – Michal Przybylowicz Jan 04 '20 at 07:17
  • You can turn on and turn off using these commands: dconf write /com/github/wwmm/pulseeffects/sinkinputs/equalizer/state true dconf write /com/github/wwmm/pulseeffects/sinkinputs/equalizer/state false . Please add them to your answer and I will accept it. – Michal Przybylowicz Jan 10 '20 at 05:09
  • End-users are recommended to use gsettings, not dconf directly: gsettings get com.github.wwmm.pulseeffects.sinkinputs.equalizer state – Pablo Bianchi Apr 04 '22 at 20:05
  • No, it doesn't work. It changes active profile name in app but equalizer levels are not loaded. PulseEffects 4.8.7. PRESET="V2"; /usr/bin/flatpak run --branch=stable --arch=x86_64 --command="gsettings" com.github.wwmm.pulseeffects set com.github.wwmm.pulseeffects last-used-output-preset "$PRESET" – d9k Aug 30 '24 at 12:51
  • Ok, to work you must load preset after selecting it with gsettings: PRESET="V2"; /usr/bin/flatpak run --branch=stable --arch=x86_64 --command="pulseeffects" com.github.wwmm.pulseeffects --load-preset "$PRESET" – d9k Aug 30 '24 at 12:55