JoseExposito/touchegg

Volume config not working

Closed this issue · 3 comments

Hi!

This is already possible, try this config:

    <gesture type="SWIPE" fingers="3" direction="UP">
      <action type="RUN_COMMAND">
        <repeat>true</repeat>
        <command>pactl set-sink-volume 0 +10%</command>
        <decreaseCommand>pactl set-sink-volume 0 -10%</decreaseCommand>
      </action>
    </gesture>

    <gesture type="SWIPE" fingers="3" direction="DOWN">
      <action type="RUN_COMMAND">
        <repeat>true</repeat>
        <command>pactl set-sink-volume 0 -10%</command>
        <decreaseCommand>pactl set-sink-volume 0 +10%</decreaseCommand>
      </action>
    </gesture>

Originally posted by @JoseExposito in #470 (comment)

Hello Jose,
I've tried to use this configuration, but it doesn't work for me :(
I got the following error:
Failed to get sink information: No such entity

Can you help me please?
Thank you :)

Have you tried the other workaround suggested? #470 (comment)

It works!
Thank you

This work!
without using xdotool

<gesture type="SWIPE" fingers="4" direction="UP">
      <action type="RUN_COMMAND">
        <repeat>true</repeat>
        <command>pactl set-sink-volume @DEFAULT_SINK@ +10%</command>
        <decreaseCommand>pactl set-sink-volume @DEFAULT_SINK@ -10%</decreaseCommand>
      </action>
    </gesture>
<gesture type="SWIPE" fingers="4" direction="DOWN">
  <action type="RUN_COMMAND">
    <repeat>true</repeat>
    <command>pactl set-sink-volume @DEFAULT_SINK@ -10%</command>
    <decreaseCommand>pactl set-sink-volume @DEFAULT_SINK@ +10%</decreaseCommand>
  </action>
</gesture>