You are not logged in.

#1 2023-07-18 11:10:26

mhb2
Member
Registered: 2023-07-18
Posts: 4

Make dunst volume script use volume keys continuously press?

Using this script https://wiki.archlinux.org/title/Dunst# … _indicator. I have to press the volume key again and again for changing volume. How can i keep it pressed continuously and still change volume?
Using pulseaudio with alsa.

Last edited by mhb2 (2023-07-18 11:11:18)

Offline

#2 2023-07-18 16:01:12

seth
Member
Registered: 2012-09-03
Posts: 63,526

Re: Make dunst volume script use volume keys continuously press?

That has nothing to do w/ dunst or alsa or even pulsenoaudio but whether the key gets autorepeated and maybe how your shortcut dameon handles that.
You probaly want to rate control that with a temporary lockfile that prevents double execution of any script you use here.

Offline

#3 2023-07-22 12:33:41

anthony93
Member
Registered: 2021-07-31
Posts: 11

Re: Make dunst volume script use volume keys continuously press?

Using pulseaudio with alsa.

You're going to have to provide more information than that. What display server are you running? Is your autorepeat turned off? If you're using X11, you can check with

$ xset q

How are your keybindings defined? What desktop environment are you using? Are you using a window manager? Are you using xbindkeys? In i3wm, for instance, if you use the --release flag, the command bound to the key sequence won't be executed until the keys are released.

Bonus:
If you managed to resolve your issue and now you want dunst to modify the volume values in place instead of constantly popping up new notifications ribbons, you can take a look at this.

Last edited by anthony93 (2023-07-22 12:55:38)

Offline

#4 2023-07-25 15:55:13

mhb2
Member
Registered: 2023-07-18
Posts: 4

Re: Make dunst volume script use volume keys continuously press?

Using riverwm (https://github.com/riverwm/river) wayland compositor. Using exactly the same config as in the arch wiki - https://wiki.archlinux.org/title/Dunst# … _indicator. Using this in config file:

riverctl map $mode None XF86AudioRaiseVolume  spawn 'changeVolume 1%+ unmute'
riverctl map $mode None XF86AudioLowerVolume  spawn 'changeVolume 1%- unmute'
riverctl map $mode None XF86AudioMute spawn 'changeVolume mute'

Offline

#5 2023-07-25 16:01:24

mhb2
Member
Registered: 2023-07-18
Posts: 4

Re: Make dunst volume script use volume keys continuously press?

So i guess this is a window manager specific problem?

Offline

#6 2023-07-25 16:05:50

seth
Member
Registered: 2012-09-03
Posts: 63,526

Re: Make dunst volume script use volume keys continuously press?

"riverctl map -repeat …"?

Offline

#7 2023-08-01 16:10:32

mhb2
Member
Registered: 2023-07-18
Posts: 4

Re: Make dunst volume script use volume keys continuously press?

seth, thanks!! That was too easy!

Offline

#8 2023-08-01 19:16:53

seth
Member
Registered: 2012-09-03
Posts: 63,526

Re: Make dunst volume script use volume keys continuously press?

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB