Mint Serena 64 bit using the Mate desktop environment. Most of the following scripts will run on this machine, although some have only been tested with the Gnome desktop. Extra software requirements can be met by the Ubuntu and safe PPA repositories. Scripts may be re-written or added to from time to time, the date serves as the version number. Syntax highlighting on these pages is provided by GVim's "Convert to HTML" option.

Simple countdown timer

#!/bin/bash
# Filename: timer
# robz simple reminder script
# Create a launcher to run this from your panel.

SOUND=/home//Audio/2tone.wav
ICON=/usr/share/icons/hicolor/scalable/apps/gnome-panel-clock.svg
COUNT=$(zenity\
    --title ""\
    --window-icon $ICON\
    --text "Countdown timer"\
    --entry-text "eg. 10s or 5m or 2h"\
    --entry)

sleep $COUNT

notify-send -i $ICON "## COUNTDOWN TIMER ####" "#### TIMES UP ############"
/usr/bin/canberra-gtk-play --volume 6 -f $SOUND

exit


Powered by ScribeFire.

No comments: