4

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
  • 15,657
PRATAP
  • 22,460