diff options
author | David Runge <dave@sleepmap.de> | 2016-05-06 02:08:27 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2016-05-06 02:08:27 +0200 |
commit | 85dd7b5dc62cd56c99057269f7cd66a74fb37df6 (patch) | |
tree | 2250d2997376ec28fe4e3bd696322c2d23c161e8 | |
parent | 1c08b44423ee59c64c0802dbec3d6f089e44f7d1 (diff) | |
download | dotfiles-85dd7b5dc62cd56c99057269f7cd66a74fb37df6.tar.gz dotfiles-85dd7b5dc62cd56c99057269f7cd66a74fb37df6.tar.bz2 dotfiles-85dd7b5dc62cd56c99057269f7cd66a74fb37df6.tar.xz dotfiles-85dd7b5dc62cd56c99057269f7cd66a74fb37df6.zip |
bin/set_volume: Removing break lines and raising display timeout.
-rwxr-xr-x | bin/set_volume | 6 |
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 |