2024-12-29 19:38 : id 47
This commit is contained in:
parent
cafd7ec3de
commit
6bae7f13d2
@ -156,6 +156,21 @@ in
|
||||
'';
|
||||
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" = {
|
||||
text = ''
|
||||
if [ "$1" = "--help" ]; then
|
||||
@ -700,6 +715,8 @@ in
|
||||
#custom-writer,
|
||||
#custom-luanti,
|
||||
#custom-nixpkgs,
|
||||
#custom-email,
|
||||
#custom-irc,
|
||||
#disk,
|
||||
#memory,
|
||||
#cpu,
|
||||
|
Loading…
x
Reference in New Issue
Block a user