From 85dd7b5dc62cd56c99057269f7cd66a74fb37df6 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 6 May 2016 02:08:27 +0200 Subject: bin/set_volume: Removing break lines and raising display timeout. --- bin/set_volume | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/set_volume') 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 -- cgit v1.2.3-70-g09d2