LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2021, 07:44 AM   #1
fancycarp
LQ Newbie
 
Registered: Jun 2021
Location: Asia
Distribution: ????
Posts: 7

Rep: Reputation: Disabled
A screen clock.


How can I get a constant display of the time and date on the screen?

I have no task-bar. But I've got cairo-dock.
 
Old 06-16-2021, 08:27 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,511

Rep: Reputation: 2656Reputation: 2656Reputation: 2656Reputation: 2656Reputation: 2656Reputation: 2656Reputation: 2656Reputation: 2656Reputation: 2656Reputation: 2656Reputation: 2656
https://packages.debian.org/stable/c...-clock-plug-in
 
1 members found this post helpful.
Old 06-16-2021, 01:39 PM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,103
Blog Entries: 6

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
You can have a clock at the top of the terminal.

Basic example:
Code:
#! /usr/bin/env bash

tput clear

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

clock &
clock_pid=$!
echo "clock pid is "$clock_pid""
Or make yourself a little graphical digital clock.
Code:
#!/usr/bin/python

from tkinter import * 
from time import strftime
  
root = Tk()
root.title('Clock')

def time():
    string = strftime('%H:%M:%S %p')
    lbl.config(text = string)
    lbl.after(1000, time)
  
lbl = Label(root, font = ('arial', 50, 'bold'),
            background = 'black',
            foreground = 'white')

lbl.pack(anchor = 'center')
time()
  
mainloop()
Edit: Correct fontname

Last edited by teckk; 06-16-2021 at 02:06 PM.
 
Old 06-16-2021, 06:51 PM   #4
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Fedora, Centos, Manjaro
Posts: 317

Rep: Reputation: 70
You can also try conky.
 
Old 06-16-2021, 07:53 PM   #5
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,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
GKrellM includes date and time.

Also. the venerable application xclock can be configured to show date and time. I use xclock
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
System clock correct, hardware clock wrong karlovac Linux - General 5 01-16-2009 07:19 PM
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 09:58 PM
system clock,hardware clock varunbihani Linux - Newbie 2 07-23-2005 09:04 AM
Dot Clock / Pixel Clock Freaksta Linux - Hardware 1 05-05-2004 08:21 PM
system clock vs. CMOS clock dtamajka Linux - General 7 12-11-2003 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:50 PM.

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