I always wanted my volume keys to change the volume logarithmically. Actually getting it was easier than expected:

pactl set-sink-volume @DEFAULT_SINK@ $(pacmd list-sinks | awk '/volume:/ {print int($3 * 1.2); exit}')

I just bound this to the volume up key via xbindkeys.

@karlb Instructions unclear. Volume set to increase exponentially. Am now deaf.

Follow

@Ateriath You can find the full lines I'm using in my .xbindkeysrc at karl.berlin/suckless-desktop.h . Use `killall -HUP xbindkeys` to reload. I'm using dzen2 to show the current volume afterwards. If you don't want that, skip everything after the semicolon.

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.