You are not logged in.
Pages: 1
Hi,
I'm looking for a good timer app. Ideally it should have some sort of notification system which calls a system alert after a certain amount of time.
Is there any X app (without many gnome deps ideally) which does this?
Thanks.
Offline
ktimer ?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
How about either a crontab entry, that for example calls xmessage or plays music.
0 9 * * * /usr/bin/mpc play
Or, for example to give myself an alarm when the breakfast eggs are cooked
sleep 7m && mpc play
These solutions are not really graphical though, so maybe you're interested more in those then.
Ogion
Last edited by Ogion (2010-07-27 15:26:12)
(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant
Offline
ktimer ?
Thanks for the reply, I would prefer not to use any KDE libs either, as lightweight as possible would be good.
How about either a crontab entry, that for example calls xmessage or plays music.
Code:0 9 * * * /usr/bin/mpc play
Or, for example to give myself an alarm when the breakfast eggs are cooked
Code:sleep 7m && mpc play
These solutions are not really graphical though, so maybe you're interested more in those then.
Ogion
I looked at doing crontasks before but I thought it would be too much work. I think that would work nicely. Would be nice to have some sort of running timer to see how much time is left though. Thanks.
Offline
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
workrave
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
from my bashrc
# set an ad-hoc GUI timer
timer() {
local N=$1; shift
(sleep $N && zenity --info --title="Time's Up" --text="${*:-BING}") &
echo "timer set for $N"
}
$ timer 30s
$ timer 35m get the laundry
works great.
//github/
Offline
Gnome has an app called Time Tracker
Offline
This is exactly what I wanted, cheers. Cool website btw.
Thanks to everyone for their replies, some interesting solutions I didn't think of.
I also like brisbin33's timer function. Very simple and elegant.
Thanks again,
df3n5.
Offline
Just a rather basic solution I use since years:
#!/bin/bash
#
# Issue an alarm using at and xmessage
# Usage:
# AL [@] delay [message timeout]]
# where @ denotes absolute time
# If not absolute time:
# delay is in minutes
# timeout is in seconds
#
# Defaults to 15 minutes delay: "ALARM"
# Message defaults to "ALARM"
PREFIX="now + "
SUFFIX=" minutes"
DELAY=15
MSG='ALARM'
TO=60
if [ "$1" == "-h" ] || [ "$1" == "--help" ]
then
echo "AL - Issue an alarm"
echo " AL [delay (in minutes) [message [timeout (in seconds)]]]"
echo " or"
echo " AL @ time [message [timeout (in seconds)]]"
echo " defaults: delay=15 message=\"ALARM\" timeout=60"
exit
fi
if [ "$1" == "@" ]
then
PREFIX=""
SUFFIX=""
shift
fi
if [ "$1"x != "x" ]
then
DELAY=$1
if [ "$2"x != "x" ]
then
MSG="$2"
if [ "$3"x != "x" ]
then
TO=$3
fi
fi
fi
# Xdialog Version
echo "BELL;DISPLAY=:0 Xdialog --timeout $TO --msgbox "\"$MSG\"" 0 0" | at $PREFIX$DELAY$SUFFIX
# xmessage version
# echo "BELL;DISPLAY=:0 xmessage -button OK -default OK -timeout $TO ""$MSG""" | at $PREFIX$DELAY$SUFFIX
if [ "$PREFIX"x != "x" ]
then
echo "Alarm \""$MSG"\" in $PREFIX$DELAY$SUFFIX using timeout $TO seconds"
else
echo "Alarm \""$MSG"\" at $DELAY using timeout $TO seconds"
fi
Uses the at and xdialog or packages from extra (or xdialog-gtk2 from the aur in my case). Works also well with xmessage from the xorg-apps package and should be adaptable to zenity and similar.
Last edited by bernarcher (2010-07-28 08:52:58)
To know or not to know ...
... the questions remain forever.
Offline
Offline
Since the cron approach was already mentioned, I want to point out atd. Basically, it's a daemon like cron, but you enter into the command line
at now + 5 min
hit enter, and then on the next line tell it what to execute at that particular time. It has more options than the offset as well.
I've used flite, and dzen with it myself.
Though, I'm glad that you found what you were looking for.
Doh! And after submitting see that at is mentioned in a script. Nice idea btw.
Last edited by Knute (2010-07-31 22:16:45)
Knute
Offline
If you use xfce, check out xfce4-time-out-plugin and xfce4-timer-plugin.
Offline
workrave it's perfect
I suggest: make a 5 mins pause every 30 mins work
+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome
Offline
Pages: 1