diff --git a/glasshouse-desktop/home/scripts/scripts/garbage-collect.sh b/glasshouse-desktop/home/scripts/scripts/garbage-collect.sh index c189162..54877e6 100755 --- a/glasshouse-desktop/home/scripts/scripts/garbage-collect.sh +++ b/glasshouse-desktop/home/scripts/scripts/garbage-collect.sh @@ -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" diff --git a/glasshouse-desktop/home/scripts/scripts/nixcommit.sh b/glasshouse-desktop/home/scripts/scripts/nixcommit.sh index 7cc4ed6..43a03a4 100755 --- a/glasshouse-desktop/home/scripts/scripts/nixcommit.sh +++ b/glasshouse-desktop/home/scripts/scripts/nixcommit.sh @@ -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 diff --git a/glasshouse-desktop/home/scripts/scripts/nixswitch.sh b/glasshouse-desktop/home/scripts/scripts/nixswitch.sh index 990c984..7bdbc62 100755 --- a/glasshouse-desktop/home/scripts/scripts/nixswitch.sh +++ b/glasshouse-desktop/home/scripts/scripts/nixswitch.sh @@ -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 diff --git a/glasshouse-desktop/home/zsh/zshell.nix b/glasshouse-desktop/home/zsh/zshell.nix index bbd1cc4..5c1e6ae 100644 --- a/glasshouse-desktop/home/zsh/zshell.nix +++ b/glasshouse-desktop/home/zsh/zshell.nix @@ -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