From e2d9f5ab053eb8f4bfc4f9803c2f211061a209af Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Sat, 9 Aug 2025 19:11:31 +0200 Subject: [PATCH] added wireplumber confs --- .gitignore | 1 + hypr/scripts/replay-ctrl.sh | 2 +- .../60-specific-device-rates.conf | 29 +++++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 wireplumber/wireplumber.conf.d/60-specific-device-rates.conf diff --git a/.gitignore b/.gitignore index a490e87..ea3d3ed 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ !rice-2.png !rice-3.png !btop +!wireplumber/ diff --git a/hypr/scripts/replay-ctrl.sh b/hypr/scripts/replay-ctrl.sh index 9714f51..66503e8 100755 --- a/hypr/scripts/replay-ctrl.sh +++ b/hypr/scripts/replay-ctrl.sh @@ -17,7 +17,7 @@ start() { notify-send -u low "$PROGRAM_NAME" "$PROGRAM_NAME is starting ..." gpu-screen-recorder -w screen -f 120 -a default_output -a default_input -fm vfr \ -c mkv -bm qp -cr full -tune quality -k av1_10bit -q very_high -r 120 \ - -replay-storage ram -ab 320 -cursor yes -keyint 2 -o "$video_path" & + -replay-storage ram -ab 320 -cursor yes -keyint 2 -o "$video_path" &> /dev/null & echo $! > "$PID_FILE" } diff --git a/wireplumber/wireplumber.conf.d/60-specific-device-rates.conf b/wireplumber/wireplumber.conf.d/60-specific-device-rates.conf new file mode 100644 index 0000000..bec1267 --- /dev/null +++ b/wireplumber/wireplumber.conf.d/60-specific-device-rates.conf @@ -0,0 +1,29 @@ +monitor.alsa.rules = [ + { + matches = [ + { + node.name = "alsa_output.usb-iFi__by_AMR__iFi__by_AMR__HD_USB_Audio_0003-00.analog-stereo" + } + ] + actions = { + update-props = { + audio.format = "S32_LE" + audio.rate = 96000 + session.suspend-timeout-seconds = 0 + } + } + }, + { + matches = [ + { + node.name = "alsa_output.hw_U192k_0" + } + ] + actions = { + update-props = { + audio.format = "S32_LE" + audio.rate = 96000 + } + } + } +] \ No newline at end of file