Gen 325: fixed sound file paths

This commit is contained in:
pagedMov
2024-10-11 01:18:29 -04:00
parent 39f6951e08
commit c84a213dfe
6 changed files with 13 additions and 333 deletions

View File

@@ -5,7 +5,7 @@ echo "This will delete all unused paths in the nix store and delete any files in
echo "\033[1;4;38;2;230;69;83mThis process is irreversible.\033[0m Are you sure?"
select yn in "Yes" "No"; do
case $yn in
Yes ) echo "Sweeping system...";runbg aplay "$HOME/media/sound/sys/collectgarbage.wav";break;;
Yes ) echo "Sweeping system...";scheck && runbg aplay "$HOME/media/sound/sys/collectgarbage.wav";break;;
No ) echo "Canceling garbage collection."; return;;
esac
done
@@ -18,4 +18,4 @@ rm_freed=$(echo "scale=2; $rm_freed / 1000" | bc)
/run/current-system/sw/bin/rm -rfv ~/steamlib/.Trash-1000/files/*
total_freed=$(echo "$nix_freed + $rm_freed" | bc)
echo "System cleaning complete, freed $total_freed MiB in total"
runbg aplay "$HOME/media/sound/sys/rm.wav"
scheck && runbg aplay "$HOME/media/sound/sys/rm.wav"

View File

@@ -1,6 +1,6 @@
#!/run/current-system/sw/bin/bash
scheck && (aplay ~/sound/sys/nixswitch-start.wav > /dev/null 2>&1 &)
scheck && runbg aplay ~/media/sound/sys/nixswitch-start.wav
builtin cd "$HOME/sysflakes" || exit
nix flake update
@@ -8,7 +8,7 @@ gen=$(readlink /nix/var/nix/profiles/system | sed 's/.*system-\([0-9]*\)-link/\1
gen=$((gen + 1))
git diff --quiet
if mycmd; then
if [ $? -eq 0 ]; then
echo "Nothing to commit"
return
fi

View File

@@ -1,13 +1,13 @@
#!/run/current-system/sw/bin/bash
scheck && (aplay ~/sound/sys/nixswitch-start.wav > /dev/null 2>&1 &)
scheck && runbg aplay ~/media/sound/sys/nixswitch-start.wav
builtin cd "$HOME/sysflakes" || exit
nix flake update
sudo nixos-rebuild switch --flake "$HOME/sysflakes#glasshouse"
if mycmd; then
s_check && (aplay ~/sound/sys/update.wav > /dev/null 2>&1 &)
if [ $? -eq 0 ]; then
scheck && runbg aplay ~/media/sound/sys/update.wav
else
s_check && (aplay ~/sound/sys/error.wav > /dev/null 2>&1 &)
scheck && runbg aplay ~/media/sound/sys/error.wav
fi
builtin cd "$OLDPWD" || exit