Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.78 KB

Readme-world-clock.md

File metadata and controls

67 lines (44 loc) · 1.78 KB

World Clock

These config files enable a sidebar displaying world times on simple svg clock dials on screen on the right by default. That can be changed by editing the -GtkWidget-direction: property in the the #CSS section of the config to left.

Screen shots

Assorted clock dials Uniform clock dials

Usage

Put these configs in your ~/.config/sfwbar directory. You can start the sidebar calling the .config file of your choice.

Run with:

sfwbar -f world-clock.config

You can also put the configs in a subdir, for example clocks/. This keeps your main confdir tidy.

sfwbar -f clocks/world-clock.config

Changing things

Clock styles and timezone are set in each separate widget. At the top the time zone is set. For example:

Time("%H", "EST5EDT,M3.2.0,M11.1.0") # New York

The easiest way to find the required timezone is to query the timezone file, like so:

$> CITY=New_York
$> find /usr/share/zoneinfo/ -type f -name "$CITY" |xargs tail -n1
$> EST5EDT,M3.2.0,M11.1.0

That's probably easier than changing the time on your microwave oven!

But what is even easier is to consult the new table that has all the timezones listed for you, generated by a simple script.

You can change the clock faces in the svg component of the config to any circular image you like so long as the angle variables (clock hands) in the svg = definition are preserved. These are the engine of each clock and every different timezone needs a unique variable.

You can even use a png image stuffed into the svg = definition making sure again to preserve the clock hand code. See the analog-Japan.widget for an example.

Bugs

File any bugs to Issues