diff options
author | Joe Rayhawk <jrayhawk@fairlystable.org> | 2024-12-16 16:42:57 -0800 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@fairlystable.org> | 2024-12-16 16:42:57 -0800 |
commit | eadbd6ade8b9efdb7909c4fa2ed2baad4dee35c1 (patch) | |
tree | 347c93d47c28947c74e9924db21d4266338d825b | |
parent | 6803f03d8cb9f9a1afc731ebf2b3f3d3f5647e87 (diff) | |
download | jrayhawk-dotfiles-eadbd6ade8b9efdb7909c4fa2ed2baad4dee35c1.tar.gz jrayhawk-dotfiles-eadbd6ade8b9efdb7909c4fa2ed2baad4dee35c1.zip |
add asoundrc configs
-rw-r--r-- | .bash_profile | 5 | ||||
-rw-r--r-- | .config/alsa/asoundrc | 104 | ||||
-rw-r--r-- | .config/alsa/asoundrc-richardiv | 12 | ||||
-rw-r--r-- | .gitignore | 1 |
4 files changed, 121 insertions, 1 deletions
diff --git a/.bash_profile b/.bash_profile index 7ab934c..1739afe 100644 --- a/.bash_profile +++ b/.bash_profile @@ -17,9 +17,12 @@ export SSH_ASKPASS_REQUIRE=force export TERM=xterm-256color export WLR_DRM_NO_MODIFIERS=1 # set to 1 to always allocate planes without modifiers, this can fix certain modeset failures because of bandwidth restrictions. +export HOSTNAME="$(hostname -s)" +#systemctl --user set-environment HOSTNAME="$HOSTNAME" + alias startx='startx -- vt7 & sleep 2; logout' alias startsway='(sleep 1; exec systemd-cat --identifier=sway sway) & logout' -alias starthypr='(sleep 1; exec systemd-cat --identifier=hyprland hyprland --config ~/.config/hypr/$( hostname -s )/hyprland.conf) & logout' +alias starthypr='(sleep 1; exec systemd-cat --identifier=hyprland hyprland --config ~/.config/hypr/"$HOSTNAME"/hyprland.conf) & logout' alias discord='firejail discord' alias firefox='firejail firefox' alias zoom='firejail zoom' diff --git a/.config/alsa/asoundrc b/.config/alsa/asoundrc new file mode 100644 index 0000000..cf9ab5b --- /dev/null +++ b/.config/alsa/asoundrc @@ -0,0 +1,104 @@ +@hooks [{ + func load; files [{ + @func concat; strings [ + { @func getenv; vars [ XDG_CONFIG_HOME ]; default "~/.config"; } + "/alsa/asoundrc-" + { @func getenv; vars [ HOSTNAME ]; default "default"; } + ] + }] + errors true; +}] + +pcm.unified { + type asym; + capture.pcm "PrimaryCapture"; + playback.pcm "PrimaryPlayback"; + #playback.pcm "plug:both"; +} + +pcm.both { + type plug + slave.pcm { + type route; + slave.pcm { + type multi; + slaves { + a.pcm "PrimaryPlayback" + #b.pcm "null" + b.pcm "plug:dmix:Loopback" + #b.pcm "plug:aloop" + #c.pcm "null" + a.channels 2 + b.channels 2 + #c.channels 2 + } + bindings { + 0 { slave a; channel 0 } + 1 { slave a; channel 1 } + 2 { slave b; channel 0 } + 3 { slave b; channel 1 } + #4 { slave c; channel 0 } + #5 { slave c; channel 1 } + } + } + ttable { + 0 { + 0 1; + 2 1; + #4 1; + } + 1 { + 1 1; + 3 1; + #5 1; + } + } + } +} + +pcm.aloop { + type asym; + capture.pcm { +# i don't know why i can't just plug:dsnoop:Loopback,1 here + type plug; + slave.pcm "dsnoop:Loopback,1"; + } + playback.pcm "plug:dmix:Loopback"; +} + +pcm.dsnoopaloop { + type dsnoop + ipc_key 98 + slave { + pcm "hw:Loopback,1,0"; + rate 48000; + period_size 1024; + } +} + +pcm.dmixaloop { + type dmix + ipc_key 99 + slave { + pcm "hw:Loopback,0,0"; + rate 48000; + period_size 1024; + } +} + +pcm.btcar { + profile a2dp + #type bluetooth # old 1.0 + type bluealsa # new 1.1 + device 00:00:00:66:6F:73 # killed by voltage regulator +} + +pcm.bthome { + profile a2dp + #type bluetooth # old 1.0 + type bluealsa # new 1.1 + device C8:84:47:03:B4:54 +} + +defaults.bluealsa.profile a2dp +#defaults.bluealsa.delay 10000 diff --git a/.config/alsa/asoundrc-richardiv b/.config/alsa/asoundrc-richardiv new file mode 100644 index 0000000..d012f5c --- /dev/null +++ b/.config/alsa/asoundrc-richardiv @@ -0,0 +1,12 @@ +pcm.!default unified +ctl.!default hw:PCH + +pcm.PrimaryPlayback { + type copy + slave.pcm "plug:dmix:PCH" +} + +pcm.PrimaryCapture { + type copy + slave.pcm "plug:dsnoop:PCH" +} @@ -2,6 +2,7 @@ !.gitignore .config/* !.config +!.config/alsa !.config/fuzzel !.config/hypr !.config/sway |