diff --git a/home-manager/home.nix b/home-manager/home.nix index 205a482..41a6640 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -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,