System Gen80 @ 2025-06-25-01:51:45 by jonas@monolith

This commit is contained in:
Jonas Röger 2025-06-25 01:51:46 +02:00
parent b3646bc382
commit c1d7132097

View File

@ -57,8 +57,7 @@ in {
HEAD="${pkgs.coreutils}/bin/head" HEAD="${pkgs.coreutils}/bin/head"
$NOISETORCH -i -t ${toString cfg.noisetorch-threshold}; $NOISETORCH -i -t ${toString cfg.noisetorch-threshold};
sleep 2 FILTER_ID=$($WPCTL status | $GREP NoiseTorch | $AWK 'match($0, /[0-9]+(\.[0-9]+)?/) { print substr($0, RSTART, RLENGTH) }' | head -n1)
FILTER_ID=$($WPCTL status | $GREP "NoiseTorch" | $AWK '{print $2}' | $HEAD -c-2)
if [ -n "$FILTER_ID" ]; then if [ -n "$FILTER_ID" ]; then
$WPCTL set-default $FILTER_ID $WPCTL set-default $FILTER_ID
else else