aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/set_volume6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/set_volume b/bin/set_volume
index 1652312..de980e5 100755
--- a/bin/set_volume
+++ b/bin/set_volume
@@ -40,9 +40,9 @@ function print_volumes()
local state_headphone=$(amixer $cardselector sget Headphone |grep "%" | cut -d'%' -f1 | cut -d '[' -f2 | uniq)
local state_speaker=$(amixer $cardselector sget Speaker |grep "%" | cut -d'%' -f1 | cut -d '[' -f2 | uniq)
if [ $state_bt_headphone = "[on]" ]; then
- send_notify "Master: $state_master% \nHeadphone: $state_headphone% \nSpeaker: $state_speaker%\nBT Headphone: $state_master%"
+ send_notify "Master: $state_master% Headphone: $state_headphone% Speaker: $state_speaker% BT Headphone: $state_master%"
else
- send_notify "Master: $state_master% \nHeadphone: $state_headphone% \nSpeaker: $state_speaker%"
+ send_notify "Master: $state_master% Headphone: $state_headphone% Speaker: $state_speaker%"
fi
}
@@ -103,7 +103,7 @@ function toggle_volume()
function send_notify()
{
# allow timeout to be set by 2nd argument
- local timeout=500
+ local timeout=1000
if [ $2 -gt 0 ]; then
timeout=$2
fi