Wayland touchpad options + Pinea config
Change-Id: I74994cf455b7dbd79a08ba41fa6a0922bbfaf670
Author: PineaFan <pineafan@clicks.codes>
Change-Id: I8c893e504671c6894d095b12f522c59d34656307
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/845
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: PineaFan <pineafan@clicks.codes>
diff --git a/systems/x86_64-linux/saurosuchus/audio/default.nix b/systems/x86_64-linux/saurosuchus/audio/default.nix
new file mode 100644
index 0000000..eab8f48
--- /dev/null
+++ b/systems/x86_64-linux/saurosuchus/audio/default.nix
@@ -0,0 +1,51 @@
+{...}: {
+ services.pipewire.extraConfig.pipewire."monitors" = {
+ "context.modules" = [
+ {
+ name = "libpipewire-module-combine-stream";
+ args = {
+ "combine.mode" = "sink";
+ "node.name" = "monitors";
+ "node.description" = "Monitors Auto";
+ "combine.latency-compensate" = false;
+ "combine.props" = {
+ "audio.position" = [ "FL" "FR" ];
+ };
+ "stream.props" = {
+ "stream.dont-remix" = true;
+ };
+ "stream.rules" = [
+ {
+ matches = [
+ {
+ "media.class" = "Audio/Sink";
+ "node.name" = "alsa_output.pci-0000_0a_00.1.pro-output-7";
+ }
+ ];
+ actions = {
+ create-stream = {
+ "audio.position" = [ "AUX0" "AUX1" ];
+ "combine.audio.position" = [ "FL" ];
+ };
+ };
+ }
+ {
+ matches = [
+ {
+ "media.class" = "Audio/Sink";
+ "node.name" = "alsa_output.pci-0000_0a_00.1.pro-output-9";
+ }
+ ];
+ actions = {
+ create-stream = {
+ "audio.position" = [ "AUX0" "AUX1" ];
+ "combine.audio.position" = [ "FR" ];
+ };
+ };
+ }
+ ];
+ };
+ }
+ ];
+ };
+}