~dricottone/my-utils

ref: 598fcd5f3c9242b5f38809c982c7ca9045c33857 my-utils/src/pactl-volume-up -rwxr-xr-x 239 bytes
598fcd5fDominic Ricottone Added wg*, fw*, docker*, android*, pactl*, vimsplit; Update to enumerate 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

SINK="$(pactl-get-running-sink)"
if [ -z "$SINK" ]; then
  SINK=0
fi

if [ $# -eq 0 ]; then
  VOLUME="+10%"
elif echo "$1" | grep -F "%"; then
  VOLUME="+${1}"
else
  VOLUME="+${1}%"
fi

pactl set-sink-volume "$SINK" "$VOLUME"