13 lines
365 B
Plaintext
13 lines
365 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
set -euf -o pipefail
|
||
|
|
||
|
TITLE="Tomatimer!"
|
||
|
ICON1="$HOME/img/.icn/tomate1.png"
|
||
|
ICON2="$HOME/img/.icn/tomate2.png"
|
||
|
BEEP="paplay ~/snd/.notification.ogg"
|
||
|
TIMER=1800
|
||
|
|
||
|
notify-send "$TITLE" --icon="$ICON2" "Te aviso en $((TIMER/60)) minutos :)"
|
||
|
|
||
|
eval "(sleep $TIMER && notify-send '$TITLE' --icon=$ICON1 'Hora del recreo. Sali de la compu' && $BEEP &)"
|