System Gen80 @ 2025-06-25-01:51:45 by jonas@monolith
This commit is contained in:
parent
b3646bc382
commit
c1d7132097
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user