dotfiles/scripts/timer-launcher

22 lines
368 B
Plaintext
Raw Permalink Normal View History

2022-02-06 19:45:28 +01:00
#!/bin/bash
hours=$(echo -e "0\n1\n2\n3\n4\n5\n6" | rofi -dmenu -theme appsmenu)
if [ -z $hours ]; then
exit 0
fi
minutes=$(echo -e "0\n5\n10\n15\n30\n45" | rofi -dmenu -theme appsmenu)
if [ -z $minutes ]; then
exit 0
fi
seconds=$(echo -e "0\n10\n15\n30\n45" | rofi -dmenu -theme appsmenu)
if [ -z $seconds ]; then
exit 0
fi
timer $hours $minutes $seconds &