Skip to content

A small digital clock which remains on top of other applications with a transparent background and no window decorations built with pyQt.

License

Notifications You must be signed in to change notification settings

WilfriedMercier/TopWatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TopWatch

Description

A small digital clock which remains on top of other applications with a transparent background (and no window decorations with some decoration managers) built with pyQt.

What is required to run it ?

The code is raw python except for pyQt5 which needs to be installed. You can get it with pip as follows

wilfried:~$ pip install PyQt5

What does it do ?

Show time. Here is a list of what it currently does:

  • Show and update time every second
  • Transparent background and no window decorations for Linux and Mac platforms
  • Can be moved by left clicking and dragging the window
  • Can be closed by right clicking on the window
  • Change the text color from the Settings/Text Color menu bar (Ctrl+C)
  • Resize the text using the UP and DOWN arrows
  • Change the text font from the Settings/Change font menu bar (Ctrl+F)
  • Save settings into a configuration file loaded as default at next startup
  • Reset settings from the menu
  • Setup a "hide and blink sequence" (more info below) with Ctrl+b

"Hide and blink" sequence

Instead of having the time always on screen, it is possible to hide the clock and have it blink a given amount of times at regular intervals. This can be useful if one wants to be reminded of the time say every 15 min without having constantly a clock on top of his windows, or to have a silent timer for instance.

Blink setup

Three parameters can be set up:

  • Period in format hour:min:sec. That is the amount of time the clock is hidden between two blinking sequences.
  • Duration in format ms. That is the duration of a single blink.
  • Blink number. That is the number of blinks in a blinking sequence.

This piece of code has been tested on an Ubuntu 20.04.1 LTS 64 bits machine with python 3.6. The code should work on MAC OS as well, but bugs may be encountered.

About

A small digital clock which remains on top of other applications with a transparent background and no window decorations built with pyQt.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages