From c1d7132097b20c61285b665cf8b064c951fb0c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Wed, 25 Jun 2025 01:51:46 +0200 Subject: [PATCH] System Gen80 @ 2025-06-25-01:51:45 by jonas@monolith --- modules/hardware/sound.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/hardware/sound.nix b/modules/hardware/sound.nix index f9c24da..55a68ff 100644 --- a/modules/hardware/sound.nix +++ b/modules/hardware/sound.nix @@ -57,8 +57,7 @@ in { HEAD="${pkgs.coreutils}/bin/head" $NOISETORCH -i -t ${toString cfg.noisetorch-threshold}; - sleep 2 - FILTER_ID=$($WPCTL status | $GREP "NoiseTorch" | $AWK '{print $2}' | $HEAD -c-2) + FILTER_ID=$($WPCTL status | $GREP NoiseTorch | $AWK 'match($0, /[0-9]+(\.[0-9]+)?/) { print substr($0, RSTART, RLENGTH) }' | head -n1) if [ -n "$FILTER_ID" ]; then $WPCTL set-default $FILTER_ID else