timeout/timeout.sh

13 lines
222 B
Bash
Raw Normal View History

2022-11-09 06:41:47 +00:00
dpkg -s libnotify-bin &> /dev/null
if [ $? -ne 0 ]
then
echo "libnotify-bin is not installed. Please install it first"
exit
fi
timeout=$1
message="$2"
while true; do
sleep ${timeout}m
notify-send "$message"
done