LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2021, 05:26 PM   #1
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 20.04 lts
Posts: 598

Rep: Reputation: 43
I need a simple count down timer


I need a simple count down timer.....

I'm running Ubuntu 20.04 lts
 
Old 07-19-2021, 06:43 PM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Lots of those available. The one appropriate for you depends upon how you are using it. You can search for them and find a lot. We may be able to suggest one if we knew how you intended to use it.

For screen display simply look at the many clocks available.
 
Old 07-19-2021, 07:52 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Here is a review of several timers: https://linuxhint.com/countdown-timer-app-ubuntu/
 
Old 07-19-2021, 07:55 PM   #4
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 20.04 lts
Posts: 598

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by computersavvy View Post
Lots of those available. The one appropriate for you depends upon how you are using it. You can search for them and find a lot. We may be able to suggest one if we knew how you intended to use it.

For screen display simply look at the many clocks available.
Well, I want a short term timer. Like, if the news is coming on in 17 minutes, I want to set a timer to alert me in 16 minutes....
Maybe a timer that goes anywhere from a few minutes to less than 24 hours - with an alert sound at the end....

Regards,

Michael
 
Old 07-19-2021, 07:55 PM   #5
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 20.04 lts
Posts: 598

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by frankbell View Post
Here is a review of several timers: https://linuxhint.com/countdown-timer-app-ubuntu/
ok, I'll take a look.

Regards,

Michael
 
Old 07-20-2021, 03:49 AM   #6
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,308
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Another option is at plus whatever popup notification your system already has.

Code:
echo 'DISPLAY=:0.0 zenity --info --text "Coffee break"' | at 14:40
The time specification can be relative, too. Remember that the $DISPLAY variable needs to be set for any graphical activity.
 
Old 07-20-2021, 03:56 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,127

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
sleep -> zenity -> play a soundfile ?.
KISS
 
1 members found this post helpful.
Old 07-20-2021, 04:11 AM   #8
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
In bash
Code:
$ sleep 16m ; mpg123 wake_up.mp3
 
Old 07-20-2021, 11:22 AM   #9
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Quote:
I need a simple count down timer.....
Example:
Code:
#!/usr/bin/bash

tput clear

clock() {
    while sleep 1; do 
        tput sc
        tput cup 0 $(($(tput cols)/3))
        tput rev
        date
        tput rc
    done
}

read -p "Enter time in seconds: " tm
clock &
clock_pid=$!

while sleep 1; do
    tm=$(($tm - 1))
    if [ "$tm" -lt 1 ]; then
        kill "$clock_pid"
        echo -e ''$_{1..70}'\b─'
        echo -e ''$"TIME IS UP"{1..6}'\b '
        echo -e ''$_{1..70}'\b─'
        exit
    fi
done
 
Old 07-21-2021, 04:06 PM   #10
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 20.04 lts
Posts: 598

Original Poster
Rep: Reputation: 43
I really want a graphic user interface app - don't want to use the terminal each time....

Any recommendations please. Also, needs something with instructions on how to install in with Ubuntu. Of course I have the Ubuntu software center to install things, and I also have Synaptic Package Manager. Also, I can run a terminal command to install the app....

I installed an app called "GNOME clocks," however, once it gets to the end of its count down timer, it only does one quick short beep, and it doesn't repeat the alarm at all - rendering it pretty much useless you're sitting their glued to your computer when the timer reaches zero.... Also, it has an "alarms" feature, that pretty much doesn't work at all (as far as I can tell)...

Regards,

Michael

Last edited by Michael Piziak; 07-21-2021 at 04:27 PM.
 
Old 07-21-2021, 04:15 PM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Michael Piziak View Post
I really want a graphic user interface app - don't want to use the terminal each time....

Any recommendations please. Also, needs something with instructions on how to install in with Ubuntu. Of course I have the Ubuntu software center to install things, and I also have Synaptic Package Manager. Also, I can run a terminal command to install the app....
Post #3 has one, including the command to run to install it (if you don't have it already), called Gnome Clocks. GUI based, just as you're asking for.

There is "Tea Time", among many others that can be found, with a brief search for "Ubuntu GUI countdown timer". Read the "Question Guidelines" about doing research.
 
Old 07-21-2021, 04:37 PM   #12
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 20.04 lts
Posts: 598

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by TB0ne View Post
Post #3 has one, including the command to run to install it (if you don't have it already), called Gnome Clocks. GUI based, just as you're asking for.

There is "Tea Time", among many others that can be found, with a brief search for "Ubuntu GUI countdown timer". Read the "Question Guidelines" about doing research.
As mentioned in my post (about a half an hour ago), I wrote about the cons of "gnome clocks."

Funny you should mention "tea time," because I just installed it. The problem with it, however, is that when I click on it, to launch it, nothing happens - I dunno why. I have it "locked" to my dashboard - but again, when I click on it, it doesn't start the program - hmmmm??? p.s. the name of tea time on my computer is actually "KTeaTime."
 
Old 07-21-2021, 08:45 PM   #13
hish2021
Member
 
Registered: Jan 2021
Posts: 117

Rep: Reputation: Disabled
Quote:
Originally Posted by Michael Piziak View Post
Funny you should mention "tea time," because I just installed it. The problem with it, however, is that when I click on it, to launch it, nothing happens - I dunno why. I have it "locked" to my dashboard - but again, when I click on it, it doesn't start the program - hmmmm??? p.s. the name of tea time on my computer is actually "KTeaTime."
Did you right-click on the icon? And the package name is kteatime.
 
Old 07-22-2021, 07:59 AM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Michael Piziak View Post
As mentioned in my post (about a half an hour ago), I wrote about the cons of "gnome clocks."

Funny you should mention "tea time," because I just installed it. The problem with it, however, is that when I click on it, to launch it, nothing happens - I dunno why. I have it "locked" to my dashboard - but again, when I click on it, it doesn't start the program - hmmmm??? p.s. the name of tea time on my computer is actually "KTeaTime."
So Gnome Clocks works, but only beeps once...how about setting the alert file to be something longer?? Or using the alarm clock feature?? And the software isn't Kteatime...the "K" indicates it's for KDE. Are you using KDE? If not, the one for Gnome/Ubuntu is just "Tea Time":

https://snapcraft.io/teatime
https://snapcraft.io/install/teatime/ubuntu

You've been a member here for six years; you received suggestions and hints, but don't appear to have looked any further on your own.
 
Old 07-22-2021, 10:24 AM   #15
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 20.04 lts
Posts: 598

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by TB0ne View Post
So Gnome Clocks works, but only beeps once...how about setting the alert file to be something longer?? Or using the alarm clock feature?? And the software isn't Kteatime...the "K" indicates it's for KDE. Are you using KDE? If not, the one for Gnome/Ubuntu is just "Tea Time":

https://snapcraft.io/teatime
https://snapcraft.io/install/teatime/ubuntu

You've been a member here for six years; you received suggestions and hints, but don't appear to have looked any further on your own.
I can only find KTeaTime in Synaptic package manager. Would someone be so kind as give me the instructions on how to install TeaTime for my non-KDE Ubuntu box please.

Also, concerning Gnome Clocks, I don't see anywhere in the GUI where I can change the alert sound - ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
local timer&&global timer yellownew8707 Linux - Kernel 0 10-29-2012 01:44 AM
Need a way to count sub-directories and get a total count Mo-regard Linux - Newbie 1 08-14-2009 09:10 AM
How can I get LAPIC timer to run instead of the PIT timer? sixerjman Linux - Kernel 1 10-16-2007 09:59 PM
Multimedia timer (SMP friendly timer) bigqueso Linux - Kernel 0 03-15-2007 03:49 PM
Should posts in general count on your post count? Joey.Dale General 16 01-27-2004 01:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration