From 5b132bf1244a008ad3ce67688030a7678831f77d Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Fri, 23 Oct 2015 03:14:36 -0300 Subject: Initial commit --- scripts/get-volume.sh | 150 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 150 insertions(+) create mode 100755 scripts/get-volume.sh (limited to 'scripts/get-volume.sh') diff --git a/scripts/get-volume.sh b/scripts/get-volume.sh new file mode 100755 index 0000000..0696b6f --- /dev/null +++ b/scripts/get-volume.sh @@ -0,0 +1,150 @@ +#!/bin/bash + +# This prints a character '♫' and the percentage of the actual volume. +# ♫ = E299AB +WITH_ICONS=false + +get_percentage() { + full_db=65.25 + # -65.25 <= $db <= 0 + db=$1 + bc <