You are not logged in.

#1 2010-07-27 15:04:21

df3n5
Member
Registered: 2009-04-08
Posts: 25

Good Timer App?

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

#2 2010-07-27 15:19:44

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 16,270

Re: Good Timer App?

ktimer ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2010-07-27 15:25:34

Ogion
Member
From: Germany
Registered: 2007-12-11
Posts: 367

Re: Good Timer App?

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

#4 2010-07-27 15:48:16

df3n5
Member
Registered: 2009-04-08
Posts: 25

Re: Good Timer App?

ewaller wrote:

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

#5 2010-07-27 15:49:14

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,380
Website

Re: Good Timer App?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#6 2010-07-27 20:04:34

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,108

Re: Good Timer App?

workrave


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2010-07-27 20:13:24

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Good Timer App?

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.

Offline

#8 2010-07-28 03:33:01

OrangeRoot1000
Member
From: TN -- USA
Registered: 2008-08-07
Posts: 106
Website

Re: Good Timer App?

Gnome has an app called Time Tracker

Offline

#9 2010-07-28 08:31:32

df3n5
Member
Registered: 2009-04-08
Posts: 25

Re: Good Timer App?

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

#10 2010-07-28 08:51:31

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Good Timer App?

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

#11 2010-07-28 22:43:23

supulton
Member
Registered: 2008-12-31
Posts: 58

Re: Good Timer App?

utimer is also a very cool cli timer.

Offline

#12 2010-07-31 22:14:54

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: Good Timer App?

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.  smile

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

#13 2013-02-08 09:18:13

ms
Member
From: Bandung, Indonesia
Registered: 2010-07-28
Posts: 72
Website

Re: Good Timer App?

If you use xfce, check out xfce4-time-out-plugin and xfce4-timer-plugin.

Offline

#14 2013-03-09 13:10:11

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: Good Timer App?

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

Board footer

Powered by FluxBB