Auteur Sujet: Conky - display different time zones  (Lu 10171 fois)

0 Membres et 1 Invité sur ce sujet

Hors ligne Taco.22

  • Membre Senior
  • ****
  • Messages: 391
    • Scorpio_Openbox
Conky - display different time zones
« le: 16 janvier 2013 à 06:01:47 »
One of the things about being on an international forum (sounds impressive, doesn't it!) is wondering about what time it is for others as you converse.  I run conky with time and date and I started to wonder if multiple time zones could be shown.  I did a quick search and discovered that it is very easy to add the time from different places around the world.

First, open terminal and input "tzselect".  This will give you a list of options from around the world and format the time for easy text entry.  Then go to .conky and add/paste  the time entries in the appropriate place.  Mine is given below as an example -


 # set to yes if you want Conky to be forked in the background
    background yes
    use_xft yes
    xftfont arial:size=10
    xftalpha 0.5
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 300 5
    maximum_width 170
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders yes
   
    default_color white
    default_shade_color red
    default_outline_color grey
    alignment top_right
    gap_x 25
    gap_y 12
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale no


    TEXT
    ${alignc 16}${font arial:size=16}Openbox${font}
   
    Pingelly:${alignc}${font arial:size=12}${time %H:%M:%S}${font}
    Paris:    ${alignc}${font arial:size=12}${tztime Europe/Paris %H:%M:%S}${font}
    NY:        ${alignc}${font arial:size=12}${tztime America/New_York %H:%M:%S}${font}
    LA:        ${alignc}${font arial:size=12}${tztime America/Los_Angeles %H:%M:%S}${font}
   
    ${alignc -6}${font arial:size=10}${Time %A %d-%m-%y}   
    ${font arial:size=8}
    CPU $alignr ${cpu cpu0}%
    ${cpubar cpu0}


    MEM $alignc $mem / $memmax $alignr $memperc%
    $membar
   
    Network ${hr 2}
    ${alignc}  eth0 ${addr eth0}
    Inbound $alignr ${downspeed eth0} kb/s
    ${downspeedgraph eth0}
    Outbound $alignr ${upspeed eth0} kb/s
    ${upspeedgraph eth0}
   

Now for how it looks -



                                           
So I can see that melodie should be up and having breakfast unless she's been burning the midnight oil on her OB-alpha!!  Anyway, it was a bit of fun and puts places and times into some sort of perspective.  I'm going to fine-tune mine with some other details.


Have fun with it. 
   
What can go wrong !!!