-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
volume_update.sh
executable file
·23 lines (22 loc) · 1.24 KB
/
volume_update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#---------------------------------------------------------------------------------------
# volume updating function
#---------------------------------------------------------------------------------------
if [ -z "$1" ]
then
#input the volume level
#--------------------------------------------------------------------------
#amixer -q set Master toggle && amixer -M set 'Master' 20%- && amixer -M set 'Master' 0%+
#amixer -q set Master toggle && amixer -M set 'Master' 0%- && amixer -M set 'Master' 100%+
amixer -q set Master toggle && amixer -M set 'Master' 10%- && amixer -M set 'Master' $1%+
#amixer -q sset Master toggle && amixer sset 'Master' 100%- && amixer sset 'Master' $1%+
#gnome-terminal -- $(amixer -M set 'Master' $1%)
else
#-------------------------------default case
#amixer -q set Master toggle && amixer -M set 'Master' 0%- && amixer -M set 'Master' 100%+
#amixer -q set Master toggle && amixer -M set 'Master' 60%- && amixer -M set 'Master' 20%+
#amixer -q set Master toggle && amixer -M set 'Master'60%- && amixer -M set 'Master' 100%+
fi
espeak "Updated volume level $1 percentage" -w foo.wav
vlc --fullscreen --effect-list=spectrometer foo.wav
sleep 1
#--------------------------------------------------------------------------