Re: MX Fluxbox Screenshots
Posted: Wed Mar 02, 2022 2:23 pm
Very handsome indeed!
Support for MX and antiX Linux distros
http://www.forum.mxlinux.org/
I just upgraded conky to 1.12.2 and tried the ${legacymem} variable in my code but all that shows up on screen is the code ' ${legacymem} '. How did you get it to work?ceeslans wrote: Wed Mar 02, 2022 2:06 pm Conky is in its newest version (1.12.2-1 --> thanks @Stevo ), showing 'old-style' memory level set by the added ${legacymem} variable.
I didn't do anything more than upgrading the 'conky-all' package. The 'legacymem' variable is hardcoded in conky v1.12.2 --> check the manpage for it. Please verify that you applied correct spelling and punctuation characters: { }siamhie wrote: Wed Mar 02, 2022 9:42 pmI just upgraded conky to 1.12.2 and tried the ${legacymem} variable in my code but all that shows up on screen is the code ' ${legacymem} '. How did you get it to work?ceeslans wrote: Wed Mar 02, 2022 2:06 pm Conky is in its newest version (1.12.2-1 --> thanks @Stevo ), showing 'old-style' memory level set by the added ${legacymem} variable.
Code: Select all
------------------------
---- conky_datetime ----
-- @ceeslans may 2020 --
------------------------
conky.config = {
update_interval = 1,
total_run_times = 0,
double_buffer = true,
no_buffers = true,
text_buffer_size = 1024,
imlib_cache_size = 0,
cpu_avg_samples = 2,
short_units = true,
use_spacer = 'none',
background = true,
own_window = true,
own_window_type = 'desktop',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
--own_window_transparent = true,
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_class = 'Conky',
own_window_title = 'ConkyDatetime',
draw_shades = false,
draw_outline = false,
draw_borders = false,
border_inner_margin = 10,
border_width = 0,
draw_graph_borders = false,
use_xft = true,
font = 'DejaVu Mono:size=9:bold',
xftalpha = 0.9,
override_utf8_locale = true,
minimum_width = 150,
gap_x = 25,
gap_y = 55,
alignment = 'top_right',
default_color = 'd8dee9', --clear
color1 = 'bbbbbb', --very light grey
color2 = 'ebcb8b', --yellow
color3 = 'a3be8c', --green
color4 = 'd08770', --orange
color5 = 'bf616a', --red
color6 = '6B94BC', --blue
default_shade_color = 'black',
default_outline_color = 'white'
}
conky.text = [[
${color1}${voffset -15}${font DejaVu Mono:size=80:bold}${alignc}${time %H}${font}
${color2}${voffset 2}${alignc}${time %A} ${color3}${time %d %b}${font}
${color6}${voffset -16}${font DejaVu Mono:size=80:bold}${alignc}${time %M}${color}${font}
${color3}${voffset 3}${font}${alignc}mem ${color1}${legacymem} ${color4}cpu ${color1}${cpu cpu0} %
${voffset -80}
]]
The secret is in the choice of font. Only a few fonts apparently have a moonphase symbol that can be displayed in conky. I know it sounds weird, but found this by trial and error. Even the great Noto font falls short here. For me, fonts like Droid Sans, DejaVu Sans, DejaVu Mono ultimately display it corrrectly.AVLinux wrote: Wed Mar 02, 2022 10:50 pm Every time I think you can't do a better one and then you do! I'd love to see your code for the conky... I've been working on the weather one from this thread but I'm a bit stuck on how to do the moon phases with wttr.in... Any chance you could share it or at least the moon snippet?
Code: Select all
--[[
Minimalist Conky Designed for World Weather Widget
Release date 12 January 2022
Tested on Linux Mint 20.3
Modified @ceeslans 23 feb 2022
see below for letter code outputs
c Weather condition,
C Weather condition textual name,
x Weather condition, plain-text symbol,
h Humidity,
t Temperature (Actual),
f Temperature (Feels Like),
w Wind,
l Location,
m Moon phase,
M Moon day,
p Precipitation (mm/3 hours),
P Pressure (hPa),
D Dawn*,
S Sunrise*,
z Zenith*,
s Sunset*,
d Dusk*,
T Current time*,
Z Local timezone.
(*times are shown in the local timezone)
]]
conky.config = {
update_interval = 1,
cpu_avg_samples = 2,
net_avg_samples = 2,
double_buffer = true,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
use_spacer = 'none',
background = true,
own_window = true,
own_window_type = 'desktop',
own_window_transparent = false,
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',
own_window_class = 'Conky',
own_window_title = 'Conky_wttr_geo',
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
default_outline_color = 'white',
default_shade_color = 'white',
extra_newline = false,
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
border_inner_margin = 5,
border_outer_margin = 5,
use_xft = true,
font = 'DejaVu Mono:size=9',
xftalpha = 0.7,
override_utf8_locale = true,
uppercase = false,
minimum_width = 280,
maximum_width = 280,
--minimum_height = 250,
gap_x = 60,
gap_y = 60,
alignment = 'top_left',
default_color = 'dddddd', --'eedd70',
color1 = '96B9B7', --'48bcff',
color2 = 'eeeeee',
--## location by name or geo-detect
template0 = 'Rotterdam',
--template0 = '',
--lua_load = '~/.conky/LUA/draw_bg.lua',
--lua_draw_hook_pre = 'draw_bg',
}
conky.text = [[
${voffset -15}\
## show location
${alignc}${color1}Weather * ${execi 900 curl -s 'wttr.in/${template0}?format=%l'} *${font}
${voffset 5}\
## current condition
${alignc}${color1}Currently${font}
${voffset 0}${alignc}${color}${execi 900 curl -s 'wttr.in/${template0}?format=%C'|fold -s45}
${voffset 10}\
## actual temp / feels like
${goto 10}${color1}Temperature ${alignr 145}${color}${execi 900 curl -s 'wttr.in/${template0}?format=%t'}
${voffset -15}${goto 160}${color1}RealFeel ${alignr}${color}${execi 900 curl -s 'wttr.in/${template0}?format=%f'}
## humidity / wind
${color1}${goto 10}Humidity ${alignr 145}${color}${execi 900 curl -s 'wttr.in/${template0}?format=%h'}
${voffset -15}${goto 160}${color1}Wind ${alignr}${color}${execi 900 curl -s 'wttr.in/${template0}?format=%w'}
## precipitation / pressure
${color1}${goto 10}Precipitation ${alignr 145}${color}${execi 900 curl -s 'wttr.in/${template0}?format=%p'}
${voffset -15}${goto 160}${color1}Pressure ${alignr}${color}${execi 900 curl -s 'wttr.in/${template0}?format=%P'}
## sunrise / dawn
${color1}${goto 10}Sunrise ${alignr 145}${color}${execi 900 curl -s 'wttr.in/${template0}?format=%S'|cut -c1-5}
${voffset -15}${goto 160}${color1}Dawn ${alignr}${color}${execi 900 curl -s 'wttr.in/${template0}?format=%D'|cut -c1-5}
## sunset / dusk
${color1}${goto 10}Sunset ${alignr 145}${color}${execi 900 curl -s 'wttr.in/${template0}?format=%s'|cut -c1-5}
${voffset -15}${goto 160}${color1}Dusk ${alignr}${color}${execi 900 curl -s 'wttr.in/${template0}?format=%d'|cut -c1-5}
## moon phase / moon day
${voffset 10}\
${color1}${alignr 140}Moon phase ${color2}${font DejaVu Sans:size=15}${voffset -4}${execi 900 curl -s 'wttr.in/${template0}?format=%m'}${font}
${voffset -18}${goto 160}${color1}Moon day ${color}${execi 900 curl -s 'wttr.in/${template0}?format=%M'}
${voffset -22}
]]
Another beautiful desktop, ceeslans.ceeslans wrote: Wed Mar 02, 2022 2:06 pm March 2022 screeny of a fairly uncluttered fluxbox desktop.
Am using the rather monotone grey-toned 'crunchbang' theme (for gtk2/3, tint2 and fluxbox-style), which suits most backgrounds.
Conky is in its newest version (1.12.2-1 --> thanks @Stevo ), showing 'old-style' memory level set by the added ${legacymem} variable.
And joining the crowd with a wttr.in weather report...![]()
....
Haha, that was to be my next question, very prescient!asqwerth wrote: Thu Mar 03, 2022 7:39 am @AVLinux I will add that not every font displays the wind direction arrows, though more do than that show the moon phase. Only realised this in my recent period of wttr.in conky tests. ceeslans was very helpful to me as well.
Noticed the same. But il.harun meanwhile already published an updated accuweather script on the bunsenlabs forum, which tackles the issues.asqwerth wrote: Thu Mar 03, 2022 7:51 am ... Accuweather script's output went wonky again yesterday ...
I was editing some systemd services and noticed upon reboot that the variable is indeed working and matches what free displays. This is so nice to have conky show a respectable value now.ceeslans wrote: Thu Mar 03, 2022 1:52 amI didn't do anything more than upgrading the 'conky-all' package. The 'legacymem' variable is hardcoded in conky v1.12.2 --> check the manpage for it.siamhie wrote: Wed Mar 02, 2022 9:42 pmI just upgraded conky to 1.12.2 and tried the ${legacymem} variable in my code but all that shows up on screen is the code ' ${legacymem} '. How did you get it to work?ceeslans wrote: Wed Mar 02, 2022 2:06 pm Conky is in its newest version (1.12.2-1 --> thanks @Stevo ), showing 'old-style' memory level set by the added ${legacymem} variable.