Page 4 of 4 FirstFirst ... 234
Results 31 to 38 of 38

Thread: Fullscreen Digital Alarm Clock

  1. #31
    Join Date
    Nov 2007
    Beans
    2

    Re: Fullscreen Digital Alarm Clock

    Oops, I missed that one ! Well, it crashed when I maximized the window, but it looks rather promising. Thanks Mandla !

    Vincent

  2. #32
    Join Date
    Mar 2009
    Beans
    0

    Digital Alarm Clock

    My colleague is a techie and loves gadgets but he is always late for work as the shift timing does not suit him. Is there an alarm clock that has interesting features that I can buy for him that would suit the different needs of people?

  3. #33
    Join Date
    Feb 2009
    Beans
    10
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Fullscreen Digital Alarm Clock

    I know a few alarm clock apps, but they aren't full screen. You should try making your own if you know a thing or two about java.

  4. #34
    Join Date
    Jul 2006
    Beans
    26
    Distro
    Xubuntu

    Re: Fullscreen Digital Alarm Clock

    Old post, but if anyone still looks for that kind of app I like
    http://gnome-look.org/content/show.p...?content=99412

    count up/down, scalable size, customizable text, neat interface:


    Install "screenlets" from package manager (eg synaptic) and add this timer to your active screenlets.

  5. #35
    Join Date
    Aug 2006
    Location
    Chicago, IL, USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Fullscreen Digital Alarm Clock

    I realized I never followed up with this thread. In the end, I ended up using dclock. I created a small script that kills any running instance of dclock,launches dclock, and then makes it fullscreen. I then bound the script to a keyboard shortcut to make it easier/faster to run.

    Code:
    #!/bin/sh
    
    killall dclock
    sleep 1s
    dclock -nobell -nomiltime -tails -noscroll -noblink -nofade -noalarm -seconds -bd "black" -bg "black" -fg "red" -led_off "black" &
    sleep 1s
    wmctrl -r dclock -b add,fullscreen,above
    Be sure to check out the Community Ubuntu Documentation and the Ubuntu Team Wiki.

  6. #36
    Join Date
    Feb 2010
    Location
    earth
    Beans
    256
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Fullscreen Digital Alarm Clock

    Quote Originally Posted by fuscia View Post
    i thought it might be something like that. i was hoping for something like that to time tabata exercises. i ended up using dumbell swings which take about a second anyway, being somewhat like a pendulum.
    You have a pendulum of one meter?

  7. #37
    Join Date
    May 2009
    Beans
    3
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Fullscreen Digital Alarm Clock

    I wanted to use this from my mail client's calendar as an alarm that will get my attention. I also wanted to display a message so I would know why the clock poped up. One problem with xclock is that it's strftime format does not handle the newline characther '%n', so I couldn't fit a message properly in the display. So I created two small Python scripts that add those features I wanted:

    1) Launch the digital clock with a custom message specified on the command line

    2) If the clock was already launched, running the script again will terminate the existing clock

    Launching script (~/bin/my_alarm):
    Code:
    #!/usr/bin/python
    # :mode=python: jEdit modeline
    
    import os
    import sys
    import subprocess
    import time
    
    if __name__ == "__main__":
    
        not_active = True
    
        # Check if the alarm gui is up
    
        p = subprocess.Popen(['ps','u'], stdout = subprocess.PIPE)
        stdout, stderr = p.communicate()
    
        lines = stdout.split("\n")
    
        for line in lines:
    
            if "my_alarm_gui.py" in line and "/usr/bin/python" in line:
    
                not_active = False
    
                tokens = line.split()
    
                pid = tokens[1]
    
                os.system("kill -TERM %s" % pid)
    
        if not_active:
    
            os.system("~/bin/my_alarm_gui.py %s &" % " ".join(sys.argv[1:]))
    
            time.sleep(0.5)
    
            os.system('wmctrl -r "My Alarm Gui" -b add,fullscreen,above')
    my_alarm script launches the digital clock implemented in Python and TK (~/bin/my_alarm_gui.py):
    Code:
    #!/usr/bin/python
    
    from Tkinter import *
    import sys
    import time
    
    def tick(title):
        global time1
        # get the current local time from the PC
        time2 = time.strftime(title + '%n%F %H:%M:%S')
        # if time string has changed, update it
        if time2 != time1:
            time1 = time2
            clock.config(text=time2)
            # calls itself every 200 milliseconds
            # to update the time display as needed
            # could use >200 ms, but display gets jerky
        clock.after(200, tick, title)
    
    if __name__ == "__main__":
    
        root = Tk()
        root.title("My Alarm Gui")
        time1 = ''
        clock = Label(root, font=('courier', 96, 'bold'), bg='black', fg="white")
        clock.pack(fill=BOTH, expand=1)
    
        title = " ".join(sys.argv[1:])
    
        tick(title)
        root.mainloop( )
    Example usage:

    $ my_alarm Some kind of message
    # The message is displayed and becomes full screen
    # Switch to another desktop screen, open a shell
    $ my_alarm
    # The fullscreen digital clock will disappear.
    Last edited by weegreenblobbie; August 20th, 2012 at 06:42 PM.

  8. #38
    Join Date
    Feb 2007
    Beans
    24,961
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Fullscreen Digital Alarm Clock


    From the Ubuntu Forums Code of Conduct.
    If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful.
    Thread closed.

Page 4 of 4 FirstFirst ... 234

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •