renamed 'media' folder to 'assets' because it sounds cooler

This commit is contained in:
pagedmov
2024-10-21 22:03:39 -04:00
parent fe006e1004
commit 4711456fb1
45 changed files with 165 additions and 46 deletions

View File

@@ -14,6 +14,7 @@ pkgs.writeShellScriptBin "chscheme" ''
printf "\033[48;2;%d;%d;%dm %-20s %s \033[0m\n" $r $g $b $key $clean_value; \
fi; \
done' | xargs -I {} sed -i '/base16scheme \=/s/\".*\"/\"{}\"/' "$HOME"/.sysflake/flake.nix && \
[[ $? -ne 0 ]] && echo "Aborting color scheme change." && exit 0
echo "Successfully changed system color scheme. Rebuild now?" && \
select choice in "Yes" "No"; do
case $choice in

View File

@@ -10,7 +10,7 @@ pkgs.writeShellScriptBin "garbage-collect" ''
echo -e "\033[1;4;38;2;243;139;168mThis process is irreversible.\033[0m Are you sure?"
select yn in "Yes" "No"; do
case $yn in
Yes ) echo "Sweeping system...";scheck && runbg aplay "$HOME/media/sound/sys/collectgarbage.wav";break;;
Yes ) echo "Sweeping system...";scheck && runbg aplay "$HOME/assets/sound/sys/collectgarbage.wav";break;;
No ) echo "Canceling garbage collection."; return;;
esac
done
@@ -28,5 +28,5 @@ pkgs.writeShellScriptBin "garbage-collect" ''
fi
total_freed=$(echo "$nix_freed + $rm_freed" | bc)
echo -e "System cleaning complete, freed \033[1;4;38;2;166;227;161m$total_freed MiB\033[0m in total"
scheck && runbg aplay "$HOME/media/sound/sys/rm.wav"
scheck && runbg aplay "$HOME/assets/sound/sys/rm.wav"
''

View File

@@ -6,13 +6,13 @@
pkgs.writeShellScriptBin "rebuild" ''
#!/run/current-system/sw/bin/bash
scheck && runbg aplay ${self}/media/sound/nixswitch-start.wav
scheck && runbg aplay ${self}/assets/sound/nixswitch-start.wav
set -e
nh os switch -H ${host} $HOME/.sysflake
sudo nixos-rebuild switch --flake "$HOME/.sysflake#${host}"
if [ $? -eq 0 ]; then
scheck && runbg aplay ${self}/media/sound/update.wav
scheck && runbg aplay ${self}/assets/sound/update.wav
else
scheck && runbg aplay ${self}/media/sound/error.wav
scheck && runbg aplay ${self}/assets/sound/error.wav
fi
''