All checks were successful
/ check (push) Successful in 1m40s
Based on6b71b580de/bin/timer
and6b71b580de/bin/_timer
.
19 lines
294 B
Nix
19 lines
294 B
Nix
{ pkgs }:
|
|
|
|
pkgs.writeShellApplication {
|
|
name = "_timer";
|
|
|
|
runtimeInputs = with pkgs; [
|
|
coreutils
|
|
libnotify
|
|
];
|
|
|
|
text = ''
|
|
mins=$1
|
|
message=''${2:-Time out!}
|
|
|
|
sleep $((mins * 60))
|
|
|
|
notify-send -t 0 "''${message}" "Your timer of $mins min is over" -u normal
|
|
'';
|
|
}
|