Gen 320: fixed sound effects for common utilities

This commit is contained in:
pagedMov
2024-10-11 01:00:26 -04:00
parent d9ea0376f0
commit 39f6951e08
4 changed files with 7 additions and 5 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...";break;;
Yes ) echo "Sweeping system...";runbg aplay "$HOME/media/sound/sys/collectgarbage.wav";break;;
No ) echo "Canceling garbage collection."; return;;
esac
done
@@ -18,3 +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"

View File

@@ -1,6 +1,6 @@
#!/run/current-system/sw/bin/bash
s_check && (aplay ~/sound/sys/nixswitch-start.wav > /dev/null 2>&1 &)
scheck && (aplay ~/sound/sys/nixswitch-start.wav > /dev/null 2>&1 &)
builtin cd "$HOME/sysflakes" || exit
nix flake update

View File

@@ -1,6 +1,6 @@
#!/run/current-system/sw/bin/bash
s_check && (aplay ~/sound/sys/nixswitch-start.wav > /dev/null 2>&1 &)
scheck && (aplay ~/sound/sys/nixswitch-start.wav > /dev/null 2>&1 &)
builtin cd "$HOME/sysflakes" || exit
nix flake update

View File

@@ -62,9 +62,10 @@
};
initExtra = ''
unalias ls
ls() {
eza -1 --group-directories-first --icons "$@"
s_check && runbg aplay ~/sound/sys/ls.wav
scheck && runbg aplay ~/sound/sys/ls.wav
}
cd() {
@@ -72,7 +73,7 @@
eza -1 --group-directories-first --icons "$@"
builtin cd "$@" || exit
export SOUNDS_ENABLED=1
s_check && (aplay ~/sound/sys/cd.wav > /dev/null 2>&1 &)
scheck && (aplay ~/sound/sys/cd.wav > /dev/null 2>&1 &)
}
if [ ! -e $HOME/.zsh_history ]; then
touch $HOME/.zsh_history