dots


dots / config / .local / bin
xxwhirlpool  ·  2026-03-18

mini_timer

 1#!/usr/bin/env bash
 2
 3notif() {
 4	notify-send "$time timer done!"
 5	paplay ~/dotfiles/misc/sounds/chime
 6	spd-say -t female3 -r +25 "timer done!"
 7}
 8
 9if [[ ! "$1" =~ "m" ]]; then
10	echo "add a time or a time unit (m for minutes)"
11else
12	time="$1"
13	echo -e "$time: 🌈✩₊˚.⋆⋆⁺₊✧🦋"  | lolcat -p 0.2
14	timer "$time" && notif || exit 1
15fi