Skip to content

alenbasic/gnome-timezones-extension

 
 

Repository files navigation

Gnome Timezones Extension

Show multiple clocks in the panel.

For those who need more than one additional clock, this extension makes very easy to add two, three or more clocks to the main panel area.

There is already an excellent MultiClock extension, but that extension only displays a second clock. What i need is to reference 3 different clocks, my local time, UTC time and Puerto Rico time. If you have the same need, this extension can help you.

Table of contents

How to use

  • Click on a clock to make it active.
  • Click on an active clock to deactivate it.
  • You can search/filter for a timezone using the input field.
  • Configure it as you wish.

Gnome Timezones extension

Configuration

  • 24 hours format: Toggle between 24 and 12 hours format. Defaults to 24.
  • Show city name: Controls if in the clock shows the city name before the time. Defaults to true.
  • Show timezone: Shows the timezone before the time and after the City name if it is shown. Defaults to false.

Contributing

  • Use prettify and eslint to lint your code.
  • Update the readme with an example if you add or change any functionality.

Instalation

$ cd ~/.local/share/gnome-shell/extensions/
$ git clone [email protected]:Masquerade-Circus/gnome-timezones-extension.git [email protected]

Yarn

This extension use yarn as its main ally. So use the yarn command to install dependencies and run the scripts.

Scripts

Use the next scripts to easy the developing time:

  • yarn dev:source: Use rollup to watch for changes and rebuild the extension.js file.
  • yarn watch-log: Keeps watching the journalctl gnome shell log.
  • yarn enable: To enable the extension.
  • yarn disable: To disable the extension.
  • yarn restart: To restart the gnome-shell. Call this every time you make a chante to your code.
  • yarn compile: To compile the settings schemas.
  • yarn build: This build the source, compiles the schemas and makes the distributable zip file.

Legal

Author: Masquerade Circus. License Apache-2.0

About

Show multiple clocks in the panel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%