From 64e878f67c65a99aa8730ef214f264b054b4d1df Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Fri, 16 Oct 2020 10:34:30 +0200 Subject: [PATCH] Dock sounds are working again --- local/bin/sslider.sh | 4 ++-- profile | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/local/bin/sslider.sh b/local/bin/sslider.sh index 61a7f66..d6e7a6e 100755 --- a/local/bin/sslider.sh +++ b/local/bin/sslider.sh @@ -1,6 +1,6 @@ #!/bin/sh -#card="$(aplay -l | sed -n 's/^card [0-9]*: \(\w*\).*/\1/p' | tail -1)" -card=PCH +card="$(aplay -l | sed -n 's/^card [0-9]*: \(\w*\).*/\1/p' | tail -1)" +#card=PCH control="$(amixer -c "$card" scontrols | sed -n "1s/.*'\(.*\)'.*/\1/p")" uplimit="$(amixer -c "$card" get "$control" | grep "Limits:" | tr -s ' ' | cut -d' ' -f6)" diff --git a/profile b/profile index 06b6bba..0b5a4b6 100755 --- a/profile +++ b/profile @@ -27,9 +27,9 @@ export LC_ALL=en_US.utf8 # Select Dock sound card if it's there #(it's broken) -#if [ -e /proc/asound/Dock ]; then -# export ALSA_CARD=Dock -#fi +if [ -e /proc/asound/Dock ]; then + export ALSA_CARD=Dock +fi #stty -ixon # disable