blob: 8ed96da5e4c5ed03d119a266ada90f25e3caf98c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/env bash
fg="$( ~/scripts/get_xres color7 )"
icon="$( ~/scripts/get_xres color2 )"
while getopts idq options
do
case $options in
i)
amixer sset Master 2%+
;;
d)
amixer sset Master 2%-
;;
q)
cur_vol=$( amixer sget Master | awk -F"[][]" '/dB/ { print $2 }' )
echo " %{F$fg}$cur_vol"
;;
esac
done
|