aboutsummaryrefslogtreecommitdiff
path: root/volume
blob: 8dcd36ad615b925e41030349f6489de0073711b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# Change volume and notify
# Usage: volume {+n|-n}
# Requires: pulsemixer, notify-send or similar

#notify=notify-send
notify=herbe

newvol=$(pulsemixer --change-volume "$1" --get-volume | awk '{print $1}')

pkill herbe # comment this line too if not using herbe
$notify "Volume" "$newvol%"

Generated with cgit - Back to sebastiano.tronto.net