chore(obs@modules): moved audio device setup
This commit is contained in:
@@ -25,5 +25,27 @@ in
|
|||||||
obs-vkcapture
|
obs-vkcapture
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
systemd.user.services.pw-discordaudio-virtual-device = {
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "hyprland-session.target" ];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.writeShellScript "discord_audio_virt_device" ''
|
||||||
|
#!/run/current-system/sw/bin/bash
|
||||||
|
pw-loopback -m '[ FL FR]' --capture-props='media.class=Audio/Sink node.name=DiscordSink' -n DiscordSink
|
||||||
|
''}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
systemd.user.services.pw-gameaudio-virtual-device = {
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "hyprland-session.target" ];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.writeShellScript "game_audio_virt_device" ''
|
||||||
|
#!/run/current-system/sw/bin/bash
|
||||||
|
pw-loopback -m '[ FL FR]' --capture-props='media.class=Audio/Sink node.name=GameAudioSink' -n GameAudioSink
|
||||||
|
''}";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user