commit d9e351f6eb41c44e6e6b226dbf34c9e6a0c63bf6
parent a49ebe3d8225ff999d7a8b0935e0c872aa93ca4e
Author: JayVii <jayvii[AT]noreply[DOT]localhost>
Date: Thu, 17 Sep 2020 22:16:17 +0200
optionally turn up the volume
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/alarm.sh b/alarm.sh
@@ -2,6 +2,7 @@
# defaults -------------------------------------------------------------
zzzaction=0
+fullvolume=1
# checks ---------------------------------------------------------------
# has alarmtone been chosen yet?
@@ -11,6 +12,11 @@ if [ ! -f ~/.alarmtone ]; then
~/.alarmtone
fi
+# turn up volume
+if [ $fullvolume == 1 ]; then
+ pactl set-sink-volume 0 0.99 # not really sure why, but it works...
+fi
+
# Function: ring alarm -------------------------------------------------
function alarm_ring {
# play ringtone