14

Because of communicating with people elsewhere, remote work & watch parties, I have my Conky show the time in a few key time zones. And they automatically update when those time zones that have a DST change (mine doesn't). So far, so good.

But I'd like a little more warning about start / end of DST. Like maybe:

  • an indicator warning me in advance before a time zone changes (like it did in Europe today). Maybe shown during the 7 days before the change.
  • an indicator for a timezone that has just changed. Maybe shown during the 7 days after the change.

I know I could (and will) set up warnings in my personal calendar, but ideally I'd also like Conky to show me somehow. Maybe change text colour? An asterisk or other symbol? Something else?

Is that possible?

Also, it's been so long since I set it up, I've forgotten what little Conky skills I ever had, so please be patient with me ๐Ÿ˜

  • Linux Mint 22.3 Xfce
  • Conky Manager 2.73

Here's my config:

spoiler

conky.config = {  
--==============================================================================  

--  
--  
-- 
--  
--  
--  
--  
--  
--  

--==============================================================================  

-- Size and Position settings --  
  alignment = 'top_right',  
  gap_x = 20,  
  gap_y = 0,  
  maximum_width = 1280,  
  minimum_height = 300,  
  minimum_width = 680,  
  
-- Text settings --  
  use_xft = true,  
  override_utf8_locale = true,  
  font = 'Roboto:light:size=9',  
  
-- Color Settings --  
  default_color = 'white',  
  default_outline_color = 'white',  
  default_shade_color = 'white',  
  color1 = '#404040',  
  color2 = '#e1e3e1',  
  
-- Window Settings --  
  background = false,  
  border_width = 1,  
  draw_borders = false,  
  draw_graph_borders = false,  
  draw_outline = false,  
  draw_shades = false,  
  own_window = true,  
  -- own_window_colour = '#FFFFFF',  
  own_window_class = 'Conky',  
  own_window_argb_visual = true,  
  own_window_type = 'Conky',  
  own_window_transparent = true,  
  own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',  
  stippled_borders = 0,  

-- โ€” Graphics settings โ€” #  
	draw_shades = false,  
	draw_outline = false,  
	draw_borders = false,  
	draw_graph_borders = false,  
    default_outline_color = black,  

  
-- Others --  
  cpu_avg_samples = 2,  
  net_avg_samples = 2,  
  double_buffer = true,  
  out_to_console = false,  
  out_to_stderr = false,  
  extra_newline = false,  
  update_interval = 1,  
  uppercase = false,  
  use_spacer = 'none',  
  show_graph_scale = false,  
  show_graph_range = false  
}  

conky.text = [[  
${alignr}${voffset 10}${color2}${font Squada One:size=40}${time %A}  
${alignr}${voffset 0}${color2}${font Squada One:size=40}${time %e %B %Y}  
${alignr}${voffset 5}${color2}${font Squada One:size=125}${time %H:%M}${font}  
${alignr}${voffset 30}${color2}${font Squada One:size=30}${color2}Beijing (${tztime Asia/Shanghai %Z) %H:%M}  
${alignr}${voffset 5}${color2}${font Squada One:size=30}${color2}London (${tztime Europe/London %Z) %H:%M}  
${alignr}${voffset 5}${color2}${font Squada One:size=30}${color2}New York (${tztime America/New_York %Z) %H:%M}  
${alignr}${voffset 5}${color2}${font Squada One:size=30}${color2}San Francisco (${tztime America/Vancouver %Z) %H:%M}  
${alignr}${voffset 25}${color2}${font Squada One:size=30}CPU used: ${cpu cpu0}%  
${alignr}${voffset 5}${color2}${font Squada One:size=30}RAM used: ${memperc}%  
${alignr}${voffset 5}${color2}${font Squada One:size=30}Swap used: ${swapperc}%  
${alignr}${voffset 5}${color2}${font Squada One:size=30}Storage used: ${fs_used_perc /}%  

]]  

you are viewing a single comment's thread
view the rest of the comments
[-] A_norny_mousse@piefed.social 2 points 2 days ago* (last edited 2 days ago)

TIL that conky has a $tztime variable.

Even so I can confidently say that conky alone cannot do this.

However, you can insert the output from scripts, so something like Switching daylight savings on/off: ${execi 100 /path/to/script} will work.

For the script, I believe zdump is your friend. Start with something like

$ zdump -i Europe/London|grep ^$(date +%Y)-  
2026-03-29      02      +01     BST     1  
2026-10-25      01      +00     GMT  

These lines mark "time intervals". More info: man zdump

Your system should keep the tzdata package up-to-date so there's usually no reason to check it externally.

[-] klu9@piefed.social 2 points 1 day ago

Thanks, I'll try working on that after sleep, brain no work right now. :)

this post was submitted on 25 Oct 2026
14 points (100.0% liked)

linux4noobs

4534 readers
1 users here now

linux4noobs


Noob Friendly, Expert Enabling

Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.


Seeking Support?

Community Rules

founded 3 years ago
MODERATORS