Giter VIP home page Giter VIP logo

gnome-timezones-extension's Introduction

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.
  • Clear clocks: It will deactivate all current active clocks. In case you can't remove a clock, you can use this button to clear all clocks.

Contributing

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

Installation

$ 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 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

gnome-timezones-extension's People

Contributors

ankitch avatar dependabot[bot] avatar masquerade-circus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gnome-timezones-extension's Issues

Clicking creates yet another item

Any click creates another unwanted timezone until my task bar is full. The docs do not describe where the config is to manually edit. Thanks for creating the extension.

Enable reordering clocks [Request]

I would like this to show me Los Angeles, Phoenix, Denver, Chicago, and New York. In that order. However it seems to be in alphabetical order. So perhaps just keep the times in the order the user provided? So if I select the aforementioned cities in that order, they should show up in that order?

I would also like it, as it was mentioned in #10 , to simply have UTC offsets as well.

I can't remove timezones in gnome 3.34.2

I'm using ubuntu 19.10 and gnome 3.34.2 and I can add new timezones, but the if i try to remove them, it adds a random new one, and when I have more than four timezones, I'm able to remove the ones on top, it's kind of weird bug.
So, from the screenshot, there are 5 options in my list of active clocks, the one on top, when I put the cursor on top of it, the background is grey as you can see, but if I move the cursor to the option below, the background of that option is not grayed, so if I click the first one, it gets removed, but if I click the second one to remove it, instead of removing it, it adds another random clock to the active clocks. My guess is the acts like the active clock are transparent and clicks some list hidden behind or something strange.
Screenshot from 2020-04-23 12-13-34

Sparse time zones, difficult to setup (suggestion)

Example: if you want to add San Francisco - USA, you are out of luck.

I guess that having all the biggest cities in the world with the current UI would be super messy if not impossible, but what about having at least all the time zones (just by UTC offset, or the list will be longer)?

Then if you can pick the time zone you want, it would be nice to have the possibility to edit it with your own city-label, so the extension could cover all the places in the world with just the time offsets and an editable field.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.