aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-05-06 02:08:27 +0200
committerDavid Runge <dave@sleepmap.de>2016-05-06 02:08:27 +0200
commit85dd7b5dc62cd56c99057269f7cd66a74fb37df6 (patch)
tree2250d2997376ec28fe4e3bd696322c2d23c161e8
parent1c08b44423ee59c64c0802dbec3d6f089e44f7d1 (diff)
downloaddotfiles-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-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