2024-12-29 19:38 : id 47

This commit is contained in:
deadvey 2024-12-29 19:38:18 +00:00
parent cafd7ec3de
commit 6bae7f13d2

View File

@ -156,6 +156,21 @@ in
''; '';
executable = true; executable = true;
}; };
"scripts/fuzzy-time.sh" = {
text = ''
minute=$(date +"%M")
minute=$(echo "($minute + 2.5) / 5 * 5" | bc)
if [ $minute > 30 ]; then
minute=$(((60-minute)))
echo "$minute to $((($(date +"%I") + 1)))"
elif [ $minute <= 30]; then
echo "$minute past $(date +"%I")"
else
echo "Error, invalid time."
fi
'';
executable = true;
};
"scripts/time.sh" = { "scripts/time.sh" = {
text = '' text = ''
if [ "$1" = "--help" ]; then if [ "$1" = "--help" ]; then
@ -700,6 +715,8 @@ in
#custom-writer, #custom-writer,
#custom-luanti, #custom-luanti,
#custom-nixpkgs, #custom-nixpkgs,
#custom-email,
#custom-irc,
#disk, #disk,
#memory, #memory,
#cpu, #cpu,