add pipewire configuration

This commit is contained in:
Philipp 2024-07-12 07:27:23 +02:00
parent a395c388ff
commit 6b21ecb616
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
3 changed files with 39 additions and 2 deletions

View file

@ -7,7 +7,7 @@
You will need atleast following packages for it to work You will need atleast following packages for it to work
`paru -S neovim alacritty plasma-meta zsh fzf stow tmux git` `paru -S neovim alacritty plasma-meta zsh fzf stow tmux git pipewire fd ripgrep go`
### Getting started ### Getting started
@ -15,7 +15,7 @@ For stow to restore the old state you have to run following command.
`git clone https://git.snrd.eu/Spaenny/dotfiles.git && cd dotfiles` `git clone https://git.snrd.eu/Spaenny/dotfiles.git && cd dotfiles`
`stow alacritty nvim plasma zsh tmux git` `stow alacritty nvim plasma zsh tmux git pipewire`
If you just wanna restore one application config you can do so by executing it via package name. If you just wanna restore one application config you can do so by executing it via package name.
`stow nvim` `stow nvim`

View file

@ -0,0 +1,20 @@
context.modules = [
{ name = libpipewire-module-loopback
args = {
node.description = "Scarlett 2i2 Loopback"
capture.props = {
node.name = "Scarlett_2i2_Loopback"
media.class = "Audio/Sink"
audio.position = [ FL FR ]
}
playback.props = {
node.name = "playback.Scarlett_2i2_Loopback"
audio.position = [ AUX0 AUX1 ]
target.object = "alsa_output.usb-Focusrite_Scarlett_2i2_USB-00.pro-output-0"
stream.dont-remix = true
node.dont-reconnect = false
node.passive = true
}
}
}
]

View file

@ -0,0 +1,17 @@
context.objects = [
{ factory = adapter
args = {
factory.name = support.null-audio-sink
node.name = "Null Sink"
media.class = Audio/Sink
audio.position = [ FL FR ]
monitor.channel-volumes = true
monitor.passthrough = true
adapter.auto-port-config = {
mode = dsp
monitor = true
position = preserve
}
}
}
]