Compare commits

..

4 Commits

Author SHA1 Message Date
dca1234abe Install claude and opencode via bootstrap; drop nvm in favor of fnm 2026-08-16 10:26:40 +02:00
d58f02171a Add agent instructions for yadm dotfiles repo 2026-08-16 09:55:41 +02:00
0ff35915ed Fix NuForce uDAC USB disconnects
Cheap Savitech chip firmware stalls on rapid SET_INTERFACE / sample-rate
renegotiation, eventually dropping off the USB bus and requiring a
physical replug. Two fixes, both scoped to this exact device only:

- snd_usb_audio quirk_flags (262a:10aa): fixed_rate + ctl_msg_delay +
  iface_delay, applied via /etc/modprobe.d during bootstrap.
- WirePlumber: disable idle-suspend for the device's ALSA node so
  PipeWire doesn't repeatedly reopen the stream during normal use.
2026-08-16 09:49:14 +02:00
6476c98e8f Fix syntax error in apply-screen-layout.sh breaking display config
Missing space before ]] on the "vos" branch caused a bash parse
error, which made the whole script fail silently on every host
(including arch-bepis) before it could dispatch to the per-host
layout script. Also dropped the $(...) wrapping around each script
call, which captured swaymsg's JSON stdout and tried to execute it
as a command.
2026-08-16 08:02:00 +02:00
5 changed files with 63 additions and 19 deletions

10
.bashrc
View File

@@ -133,11 +133,6 @@ export RIPGREP_CONFIG_PATH="$HOME/.ripgreprc"
export PASSBOOK_GPG_PATH="/usr/bin/gpg" export PASSBOOK_GPG_PATH="/usr/bin/gpg"
export PASSBOOK_ROOT_DIRECTORY="/home/wholteza/.password-store" export PASSBOOK_ROOT_DIRECTORY="/home/wholteza/.password-store"
### NVM setup
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
### Ngrok aliases ### Ngrok aliases
alias ngdo='ngrok http --domain=devops-extension.ngrok.dev 3000' alias ngdo='ngrok http --domain=devops-extension.ngrok.dev 3000'
@@ -200,16 +195,11 @@ if [[ -d /home/wholteza/.config/swayprop ]]; then
export PATH="/home/wholteza/.config/swayprop:$PATH" export PATH="/home/wholteza/.config/swayprop:$PATH"
fi fi
if [ -e /usr/share/nvm/init-nvm.sh ]; then
source /usr/share/nvm/init-nvm.sh
fi
export ompPath="$HOME/.config/oh-my-posh/theme.omp.json" export ompPath="$HOME/.config/oh-my-posh/theme.omp.json"
### Start oh my posh ### Start oh my posh
eval "$(oh-my-posh init bash --config $ompPath)" eval "$(oh-my-posh init bash --config $ompPath)"
eval "$(fnm env --use-on-cd --shell bash)"
if [ -d "$HOME/.cargo/env" ]; then if [ -d "$HOME/.cargo/env" ]; then
. "$HOME/.cargo/env" . "$HOME/.cargo/env"
fi fi

View File

@@ -2,16 +2,16 @@
hostname=$(cat ~/hostname) hostname=$(cat ~/hostname)
if [[ $hostname == "bepis" ]]; then if [[ $hostname == "bepis" ]]; then
$(~/.config/screenlayout/desktop.sh) ~/.config/screenlayout/desktop.sh
elif [[ $hostname == "arch-bepis" ]]; then elif [[ $hostname == "arch-bepis" ]]; then
$(~/.config/screenlayout/arch-bepis-desktop-sway.sh) ~/.config/screenlayout/arch-bepis-desktop-sway.sh
elif [[ $hostname == "printer" ]]; then elif [[ $hostname == "printer" ]]; then
$(~/.config/screenlayout/printer.sh) ~/.config/screenlayout/printer.sh
elif [[ $hostname == "surface" ]]; then elif [[ $hostname == "surface" ]]; then
$(~/.config/screenlayout/surface.sh) ~/.config/screenlayout/surface.sh
elif [[ $hostname == "bepis-laptop" ]]; then elif [[ $hostname == "bepis-laptop" ]]; then
$(~/.config/screenlayout/laptop.sh) ~/.config/screenlayout/laptop.sh
elif [[ $hostname == "vos" ]]; then elif [[ $hostname == "vos" ]]; then
$(~/.config/screenlayout/vos.sh) ~/.config/screenlayout/vos.sh
fi fi

View File

@@ -0,0 +1,23 @@
# The NuForce uDAC (Savitech chip) has flaky firmware: when PipeWire
# idles and then resumes its ALSA node, the device often fails the
# resulting SET_INTERFACE / sample-rate renegotiation with a USB stall
# (spa.alsa: set_hw_params: Broken pipe). Enough of these in a row make
# the device drop off the USB bus and require a physical replug.
#
# Keeping the node's hardware stream open (no idle-suspend) avoids the
# repeated renegotiation and stops the crashes.
monitor.alsa.rules = [
{
matches = [
{
node.name = "~alsa_output.usb-Nuforce_Inc\\._NuForce_USB_Audio-.*"
}
]
actions = {
update-props = {
session.suspend-timeout-seconds = 0
}
}
}
]

7
.config/yadm/CLAUDE.md Normal file
View File

@@ -0,0 +1,7 @@
# Agent Instructions
- Be clear and concise.
- Never include AI attributions (e.g. "Co-Authored-By", "Generated with Claude") in commit messages.
- This is a yadm-managed dotfiles repo rooted at `$HOME`. Always use `yadm` (not plain `git`) for version control: `yadm status`, `yadm add`, `yadm commit`, `yadm push`, etc.
- Any change made here must be reproducible on other systems via `yadm bootstrap` — keep the bootstrap scripts (`bootstrap##*`) up to date when adding dependencies, packages, or setup steps a fresh system would need.
- Keep `readme.md` updated when relevant, and keep it short and to the point.

View File

@@ -10,7 +10,6 @@ sudo pacman -Su --noconfirm
sudo pacman -S --needed --noconfirm \ sudo pacman -S --needed --noconfirm \
fd \ fd \
tmux \ tmux \
nvm \
telegram-desktop \ telegram-desktop \
signal-desktop \ signal-desktop \
alacritty \ alacritty \
@@ -27,7 +26,8 @@ sudo pacman -S --needed --noconfirm \
pcmanfm \ pcmanfm \
wl-clipboard \ wl-clipboard \
openssh \ openssh \
mosh mosh \
opencode
bob install nightly bob install nightly
bob use nightly bob use nightly
@@ -68,6 +68,22 @@ EOF
sudo systemctl reload sshd sudo systemctl reload sshd
# --- NuForce uDAC USB audio quirks --------------------------------------
# This DAC's firmware (262a:10aa) stalls on rapid SET_INTERFACE / sample
# rate renegotiation, which without these quirks eventually drops the
# device off the USB bus and requires a physical replug. Scoped to this
# exact VID:PID so it's a no-op on any machine without the device
# attached. Takes effect next time snd_usb_audio (re)probes the device
# (reboot, module reload, or replug) -- not applied retroactively here.
sudo install -d -m 755 /etc/modprobe.d
sudo tee /etc/modprobe.d/nuforce-udac-quirks.conf > /dev/null <<'EOF'
# fixed_rate (bit 21): device only offers one sample rate; stop the
# driver re-sending SET_CUR for it ("cannot set freq 48000 to ep 0x3").
# ctl_msg_delay (bit 8): 20ms pause around each USB control message.
# iface_delay (bit 11): 50ms pause around each SET_INTERFACE call.
options snd_usb_audio quirk_flags=262a:10aa:0x200900
EOF
if [ ! -d "$HOME/repos/yay" ]; then if [ ! -d "$HOME/repos/yay" ]; then
mkdir -p "$HOME/repos" mkdir -p "$HOME/repos"
cd "$HOME/repos" cd "$HOME/repos"
@@ -82,9 +98,17 @@ yay -S --needed --noconfirm \
oh-my-posh \ oh-my-posh \
wezterm wezterm
# --- migrate off nvm to fnm ---------------------------------------------
if pacman -Qi nvm &>/dev/null; then
sudo pacman -R --noconfirm nvm
fi
rm -rf "$HOME/.nvm"
export PATH=/home/$USER/.fnm:$PATH export PATH=/home/$USER/.fnm:$PATH
eval "$(fnm env --use-on-cd --version-file-strategy=recursive)" eval "$(fnm env --use-on-cd --version-file-strategy=recursive)"
fnm install 24 fnm install 24
fnm use 24 fnm use 24
npm install -g @anthropic-ai/claude-code