mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat: timer script
This commit is contained in:
@@ -322,6 +322,18 @@ in rec {
|
||||
|
||||
devanagari = pkgs.callPackage ../devanagari {};
|
||||
|
||||
timer = pkgs.writers.writeDashBin "timer" ''
|
||||
[ $# -eq 2 ] || {
|
||||
echo "Usage: $0 TIME MESSAGE" 1>&2
|
||||
exit 1
|
||||
}
|
||||
time=$(echo "$1" | ${pkgs.bc}/bin/bc)
|
||||
echo "sleeping $time seconds, then saying: $2"
|
||||
${pkgs.coreutils}/bin/sleep "$time" && {
|
||||
echo "$2" | ${pkgs.espeak}/bin/espeak -v german-mbrola-6
|
||||
}
|
||||
'';
|
||||
|
||||
manual-sort = pkgs.writers.writeHaskellBin "manual-sort" {} ''
|
||||
{-# LANGUAGE LambdaCase #-}
|
||||
import Data.Char (toLower)
|
||||
|
||||
Reference in New Issue
Block a user