ci: format

This commit is contained in:
Barrett Ruth 2026-03-05 13:42:50 -05:00
parent e9d5587430
commit b4645fbf29
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
4 changed files with 25 additions and 3 deletions

14
scripts/ci.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
set -eu
nix fmt
git diff --exit-code -- '*.nix'
nix develop --command deadnix --fail --no-lambda-pattern-names -- **/*.nix
nix develop --command statix check
nix develop --command stylua --check config/nvim
git ls-files '*.lua' | xargs nix develop --command selene --display-style quiet --config config/nvim/selene.toml
nix develop --command shfmt -i 2 -d scripts/ config/claude/hooks/guard.sh
nix develop --command prettier --check .

View file

@ -120,8 +120,14 @@ audio)
--mesg="$header" --mesg-mode=expand \
--font="monospace:size=12" --width="$fw")
rc=$?
[ "$rc" = 11 ] && { wpctl set-volume "$node" 5%+ --limit 1.0; continue; }
[ "$rc" = 12 ] && { wpctl set-volume "$node" 5%-; continue; }
[ "$rc" = 11 ] && {
wpctl set-volume "$node" 5%+ --limit 1.0
continue
}
[ "$rc" = 12 ] && {
wpctl set-volume "$node" 5%-
continue
}
[ -z "$choice" ] && exit 0
wpctl set-default "$choice"
break