You are not logged in.

#1661 2022-04-21 14:14:05

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

No problem my friend, it almost makes me want to go distro hopping again.

Slowly ... as time permits, between bank, doctor, pharmacy, grocery store, vet, Sox not me and whatever else life is throwing at me I am working on a new "World Date Time" conky.

The 'simple' weather that the Chinese had at first got complicated and does not display all on one page like it use to.

A static image, no day night or cloud cover.

A work in progress, simple, the placing of the info is the hard part.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1662 2022-04-21 15:40:25

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

Re: Show us your conky

^I remember.
My last attempts took place on 2017-09-09 when 'Irma' hit the promised land. Everything was still working then.
https://workupload.com/file/RpzkTH7YGg6

What if you just ignore clouds and earth shadows?  http://static.die.net/earth/mercator/1600.jpg   big_smile


PS:

..it almost makes me want to go distro hopping again.

Everywhere is just 'dead trousers', at our age we don't miss anything anymore.   mad

Last edited by unklar (2022-04-21 15:49:03)

Offline

#1663 2022-04-22 00:31:31

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

unklar wrote:

^I remember.
My last attempts took place on 2017-09-09 when 'Irma' hit the promised land. Everything was still working then.
https://workupload.com/file/RpzkTH7YGg6

What if you just ignore clouds and earth shadows?  http://static.die.net/earth/mercator/1600.jpg   big_smile

WOW, 5 years old ....  Took a long time to do that.  Shadows and clouds kept getting in the way.

That link is showing the night shadow and clouds.

Do you still have that original conky?  Mine is messed up, not sure what happened.  Even the script stopped getting the image on the hour.

sad

PS:

..it almost makes me want to go distro hopping again.

Everywhere is just 'dead trousers', at our age we don't miss anything anymore.   mad

Yea I know what you mean.  Been there, done that, and glad we had that time.

If we could just go back in time to the old grub without systemd.
Simple fun creative times.

Discovered a new theme I like though: Dark-Olympic


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1664 2022-04-22 01:04:23

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,612

Re: Show us your conky

tinkering with images:

2022-04-21-08-55-41.png    link-conky-001_image

conky.text = [[
${image /home/doug/conky/archlabs3.png -p 0,0 -s 200x210}
${voffset 200}CPU:${goto 60}${if_match ${cpu}<=50}${color7}${else}${if_match ${cpu}<=70}${color8}${else}${if_match ${cpu}>70}${color9}${endif}${endif}${endif}${cpu cpu0}%${color}\
${alignr 8}${execpi 5 /home/doug/bin/cpu-temp.pl | cut -c1-8}
${voffset 6}BAT:${goto 60}${execpi 120 acpi -b | awk '/Battery 0/ {print $3}' | cut -c1-4}${alignr 8}${if_match ${battery_percent BAT0}<=15}${color9}${blink ${battery_percent BAT0}%}${color}${else}${if_match ${battery_percent BAT0}<=33}${color8}${battery_percent BAT0}%${else}${if_match ${battery_percent BAT0}>33}${color7}${battery_percent BAT0}%${endif}${endif}${endif}${color}
${voffset 6}NET:${alignr 8}${wireless_link_qual_perc wlp1s0}%
]];

Last edited by PackRat (2022-04-22 01:05:29)


You must unlearn what you have learned.
    -- yoda

Offline

#1665 2022-04-22 09:44:02

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

Re: Show us your conky

Sector11 wrote:

Do you still have that original conky?

I have your original here (though my paths are still in there)   wink

# pkill -xf "conky -c /media/5/Conky/S11_WTD.conky" &
# Idea stolen from: ragamatrix and Habitual
# weather script by TeoBigusGeekus
# tweaked 2017-09-02 - Sector11
# --------------------------------
# Daylight map.
# Written by John Jones / Habitual)
# 09/10/2010 07:37:21 AM
# Conky 1.8.0
# Remote image(s) is/are updated twice an hour on http://static.die.net and there are only 4 available.
# http://static.die.net/earth/mercator/640.jpg is 640x355
# http://static.die.net/earth/mercator/800.jpg is 800x444
# http://static.die.net/earth/mercator/1024.jpg is 1024x568
# http://static.die.net/earth/mercator/1280 .jpg 1280px × 710px (scaled to 1148px × 637px)

# Use ~/bin/daylight.sh to retrieve the remote image of your choice/size.

# Completely (re)written by John Jones on 09/01/2010
# from other people's code, but it's MY layout, so there.
# ---------------------------------
###  Begin Window Settings  ##################################################

own_window yes
double_buffer yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,skip_taskbar,skip_pager,below
own_window_class Conky
#own_window_title World Time Date & Forecast - CCCC: S11, ragamatrix, Habitual & Teo
own_window_colour gray
# own_window_argb_visual yes
# own_window_argb_value 0 #255

minimum_size 1600 887	### w|h
maximum_width 1600	### w

gap_x 0	# l|r
gap_y 0	# u|d

alignment mm

###  ##############################################  End Window Settings  ###
###  Font Settings  #########################################################

use_xft yes
xftfont monofur:bold:size=11  #12
xftalpha 1
override_utf8_locale yes

######################################################  End Font Settings  ###
###  Color Settings  #########################################################

draw_shades yes
default_shade_color 000000

draw_outline no
default_outline_color 000000

default_color FFDEAD #255 222 173	NavajoWhite
color0 8FBC8F #143 188 143	DarkSeaGreen
color1 778899 #119 136 153	LightSlateGray
color2 D8BFD8 #216 191 216	Thistle
color3 9ACD32 #154 205  50	YellowGreen
color4 FFA07A #255 160 122	LightSalmon
color5 FFDEAD #255 222 173	NavajoWhite
color6 00BFFF #  0 191 255	DeepSkyBlue
color7 5F9EA0 # 95 158 160	CadetBlue
color8 BDB76B #189 183 107	DarkKhaki
color9 FFD700 #255 215   0  Gold

#####################################################  End Color Settings  ###
###  Borders Section  ########################################################

draw_borders no
stippled_borders 0
border_inner_margin 0
border_outer_margin 0
border_width 0
draw_graph_borders no
#default_graph_size 15 40

#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################

background yes
use_spacer none
no_buffers yes
imlib_cache_size 0

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
 lua_load ~/LUA/draw-bg.lua
 lua_draw_hook_pre draw_bg 0 5 6 1601 888 0x000000 0.2

update_interval 1


TEXT
${execi 86400 bash /media/DATEN/francescoPC/Conky/Sector11/Map/S11world/daylight.sh}\
${execi 86400 bash /media/DATEN/francescoPC/Conky/Sector11/Map/S11world/majorcities}\
${image /media/DATEN/francescoPC/Conky/images/world_1600.jpg}
${alignc}${font monofur:bold:size=14}${tztime %a %d %b %Y} «--${color1}|${color6}--» ${tztime NZ %a %d %b %Y}${color}${font}









${goto 925} ${if_match ${tztime Europe/Moscow %d} == ${tztime NZ %d}}${color6}Moskva ${tztime Europe/Moscow %R}${color}${else}Moskva ${tztime Europe/Moscow %R}${endif}
${goto 925}${color6}${execpi 1800 sed -n '218p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '219p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '220p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color}
${goto 760} ${if_match ${tztime Europe/London %d} == ${tztime NZ %d}}${color6}London ${tztime Europe/London %R}${color}${else}London ${tztime Europe/London %R}${endif}
${goto 760}${color6}${execpi 1800 sed -n '206p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '207p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '208p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color}\
${goto 95}${voffset 5}${if_match ${tztime Canada/Pacific %d} == ${tztime NZ %d}}${color6}Vancouver ${tztime Canada/Pacific %R} ${color}${else}Vancouver ${tztime Canada/Pacific %R} ${endif}${voffset -5}\
${goto 322}${if_match ${tztime America/Winnipeg %d} == ${tztime NZ %d}}${color6} Winnipeg ${tztime America/Winnipeg %R}${color}${else} Winnipeg ${tztime America/Winnipeg %R}${endif}
${goto 85}${voffset 5}${color6}${execpi 1800 sed -n '355p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '356p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '357p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color}${voffset -5}\
${goto 322}${color6}${execpi 1800 sed -n '363p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '364p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '365p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color}
${goto 440}${if_match ${tztime America/New_York %d} == ${tztime NZ %d}}${color6} New York ${tztime America/New_York %R}${color}${else} New York ${tztime America/New_York %R}${endif}\
${goto 816} ${if_match ${tztime Europe/Rome %d} == ${tztime NZ %d}}${color6}Rome ${tztime Europe/Rome %R}${color}${else}Rome ${tztime Europe/Rome %R}${endif}
${goto 440}${color6}${execpi 1800 sed -n '323p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '324p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '325p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color}\
${goto 638}${voffset -3}${if_match ${tztime Europe/Madrid %d} == ${tztime NZ %d}}${color6}Madrid ${tztime Europe/Madrid %R}${color}${else}Madrid ${tztime Europe/Madrid %R}${endif} ${voffset 3}\
${goto 816}${color6}${execpi 1800 sed -n '234p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '235p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '236p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color}\
${voffset -4}${goto 1162}${if_match ${tztime Asia/Shanghai %d} == ${tztime NZ %d}}${color6}Beijing ${tztime Asia/Shanghai %R}${color}${else}Beijing ${tztime Asia/Shanghai %R}${endif} ${voffset 4}
${goto 628}${voffset -3}${color6}${execpi 1800 sed -n '210p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '211p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '212p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${voffset 3}\
${voffset -4}${goto 1162}${color6}${execpi 1800 sed -n '15p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '16p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '17p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color}${voffset 4}\
${goto 1380} ${if_match ${tztime Asia/Tokyo %d} == ${tztime NZ %d}}${color6}Tokyo ${tztime Asia/Tokyo %R}${color}${else}Tokyo ${tztime Asia/Tokyo %R}${endif}
${goto 1380}${color6}${execpi 1800 sed -n '99p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '100p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '101p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color}
${voffset -4}${goto 895} ${if_match ${tztime Africa/Cairo %d} == ${tztime NZ %d}}${color6}Cairo ${tztime Africa/Cairo %R}${color}${else}Cairo ${tztime Africa/Cairo %R}${endif}${voffset 4}\
${goto 1100} ${if_match ${tztime GMT-5:30 %d} == ${tztime NZ %d}}${color6}New Delhi ${tztime GMT-5:30 %R}${color}${else}New Delhi ${tztime GMT-5:30 %R}${endif}
${goto 400}${if_match ${tztime US/Eastern %d} == ${tztime NZ %d}}${color6} Miami ${tztime US/Eastern %R}${color}${else} Miami ${tztime US/Eastern %R}${endif}\
${voffset -4}${goto 895}${color6}${execpi 1800 sed -n '116p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '117p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '118p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${voffset 4}${color}\
${goto 1100}${color6}${execpi 1800 sed -n '71p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '72p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '73p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color}
${goto 400}${color6}${execpi 1800 sed -n '311p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '312p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '313p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color}
${goto 213}${voffset -7}${if_match ${tztime America/Mexico_City %d} == ${tztime NZ %d}}${color6}Mexico ${tztime America/Mexico_City %R} ${color}${else}Mexico ${tztime America/Mexico_City %R} ${endif}${voffset 7}${color}
${goto 213}${voffset -7}${color6}${execpi 1800 sed -n '307p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '308p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '309p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${voffset 7}${color}









${goto 1320}${if_match ${tztime Australia/Brisbane %d} == ${tztime NZ %d}}${color6}Brisbane ${tztime Australia/Brisbane %R}${color}${else}Brisbane ${tztime Australia/Brisbane %R}${endif} 
${goto 1320}${color6}${execpi 1800 sed -n '133p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '134p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '135p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color}
${goto 335}${voffset -3}${if_match ${tztime Chile/Continental %d} == ${tztime NZ %d}}${color6}Santiago ${tztime Chile/Continental %R}${color}${else}Santiago ${tztime Chile/Continental %R}${endif} ${voffset 3}\
${goto 500} ${if_match ${tztime America/Buenos_Aires %d} == ${tztime NZ %d}}${color6}Buenos Aires ${tztime America/Buenos_Aires %R}${color}${else}Buenos Aires ${tztime America/Buenos_Aires %R}${endif}\
${goto 845}${if_match ${tztime Africa/Johannesburg %d} == ${tztime NZ %d}}${color6} Cape Town ${tztime Africa/Johannesburg %R}${color}${else} Cape Town ${tztime Africa/Johannesburg %R}${endif}
${goto 320}${voffset -3}${color6}${execpi 1800 sed -n '388p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '389p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '390p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${voffset 3}${color}\
${goto 500}${color6}${execpi 1800 sed -n '372p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '373p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '374p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color}\
${goto 845}${color6}${execpi 1800 sed -n '120p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '121p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '122p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}\
${goto 1272}${if_match ${tztime Australia/Melbourne %d} == ${tztime NZ %d}}${color6}Melbourne ${tztime Australia/Melbourne %R}${color}${else}Melbourne ${tztime Australia/Melbourne %R}${endif} \
${goto 1415}${voffset -5}${color6}Auckland ${tztime Pacific/Auckland %R} ${color}${voffset 5}
${goto 1272}${color6}${execpi 1800 sed -n '145p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '146p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '147p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color}\
${goto 1415}${voffset -5}${color6}${execpi 1800 sed -n '129p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '130p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '131p' /media/DATEN/francescoPC/Conky/Scripte/WTD/MC_data}${color}${voffset 5}

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

@PackRat,

excellent!
Reminds me of this:   big_smile
NLmQ1UMt.png

Offline

#1666 2022-04-22 10:52:01

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,612

Re: Show us your conky

Thanks

I need to make some time (no pun intended) and put an analog clock on top of that ArchLab logo.


You must unlearn what you have learned.
    -- yoda

Offline

#1667 2022-04-22 13:22:06

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

Re: Show us your conky

PackRat wrote:

Thanks

I need to make some time (no pun intended) and put an analog clock on top of that ArchLab logo.

I am curious. It would have to be something simple. Maybe 
YqsBccMt.jpg

Offline

#1668 2022-04-22 13:32:33

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,612

Re: Show us your conky

Exactly. And drop that ArchLabs logo behind it.

You have the code for that clock (save me a bunch of searching). I would want to modify the clock so the hands are the same width and the hour hand a bit shorter. Like an actual wall clock.


You must unlearn what you have learned.
    -- yoda

Offline

#1669 2022-04-22 14:45:56

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

Re: Show us your conky

^I had taken your entire background image right away, and the clock just needed to be put into "position".
Curious is, the clock is probably from you, at least I had it at the time from a thread of yours on chrunch.   big_smile

VtJVkTQt.png

conky
the code is 1.9 (can you manage?)

# http://crunchbang.org/forums/viewtopic.php?pid=281625#p281625
# To use #! in a conky use: ${exec echo '#!'}
# killall conky && conky -c ~/Conky/S11_24_white.conky &

background yes
update_interval 1


###  Begin Window Settings  ##################################################
own_window yes
own_window_type normal
own_window_transparent yes
#own_window_colour 1E90FF
own_window_hints undecorated,below,skip_taskbar,skip_pager  #sticky,
#own_window_colour yellow
own_window_class 24HRClock
own_window_title 24HRClock

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type override
#========================================
own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#own_window_argb_value 180
#=========================================

minimum_size 128 128     ## width, height
maximum_width 128       ## width, usually a good idea to equal minimum width

alignment tl #tm
gap_x 68 # left-right
gap_y 75 # up-down

###################################################  End Window Settings  ###
###  Font Settings  #########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Anonymous Pro:size=8
#xftfont WenQuanYi Macro Hei Mono:bold:size=8
#xftfont WenQuanYi Zen Hei Mono:bold:size=8

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 0
# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes
default_shade_color black

draw_outline no # amplifies text if yes
default_outline_color black

#default_color DCDCDC #Gainsboro
default_color 121212
color0 9ACD32 #YellowGreen
color1 778899 #LightSlateGrey
color2 FF8C00 #Darkorange
color3 7FFF00 #Chartreuse
color4 FFA07A #LightSalmon
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 00FFFF #Cyan 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 0
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no #yes
default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################

# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 512

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

default_bar_size 120 20 # reverse to commandline and no comma:  ${cpubar 20,102}

cpu_avg_samples 1
net_avg_samples 1

imlib_cache_size 0

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or blinks.
##
# lua_load ~/Conky/LUA/draw-bg.lua
#TEXT
# ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.6}
#
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## OR Both above TEXT (No composite manager required - no blinking!)
#
# lua_load ~/Conky/LUA/draw-bg.lua
# lua_draw_hook_pre draw_bg 125 0 0 0 0 0x000000 0.4
#

############## 12-24 Hour Clock #######################
lua_load ~/.conky/unbekannte/luaclock2412.lua
lua_draw_hook_pre main

#lua_load ~/.conky/unbekannte/transbg.lua
#lua_draw_hook_post draw_bg 32 0 0 0 0 0x140C0B 0.16
#######################################################  End LUA Settings  ###

# The all important - How often conky refreshes.
# If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!


TEXT 

luaclock2412.lua

--[[drawing a clock in conkyrc
by mrpeachy - 12 March 2010
Edited by Sector11 for personal use - 12 Mar 2012

lua_load /path/clock.lua
lua_draw_hook_pre main
TEXT
]]

require 'cairo'

function conky_main()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
--##############################################################################
--   SETTINGS AREA
--##############################################################################
-- image
-- how do I add images.
-- local cpu=conky_parse("${cpu}")
-- local red-1=conky_parse("${image ~/Conky/images/red_1.png -p 0,0 -s 35x35}")


--12 OR 24
-- local clock_type=24
local clock_type=12

--CLOCK SETTINGS
local clock_radius=64
local clock_centerx=64
local clock_centery=64

-- SET MARKS
--how many marks around edge
local number_marks=12 --24
--set mark length
local m_length=5
--set mark line width
local m_width=1
--set mark line cap type
local m_cap=CAIRO_LINE_CAP_ROUND
--set mark color and alpha,red blue green alpha
local mr,mg,mb,ma=1,1,1,1  --opaque white

--SET BORDER OPTIONS
local clock_border_width=0 --2
--set color and alpha for clock border
local cbr,cbg,cbb,cba=1,1,1,1  --full opaque white
--gap from clock border to hour marks
local b_to_m=5

--SECONDS HAND SETUP
--set length of seconds hand
local sh_length=12
--set hand width
local sh_width=1
--set hand line cap
local sh_cap=CAIRO_LINE_CAP_ROUND
--set seconds hand color
local shr,shg,shb,sha=0,1,1,0  --fully opaque cyan

--MINUTE HAND SETUP
--set length of minutes hand
local mh_length=56
--set hand width
local mh_width=1
--set hand line cap
local mh_cap=CAIRO_LINE_CAP_ROUND
--set minute hand color
local mhr,mhg,mhb,mha=1,1,1,1  --fully opaque white

--HOUR HAND SETUP
--set length of hour hand
local hh_length=40
--set hand width
local hh_width=2
--set hand line cap
local hh_cap=CAIRO_LINE_CAP_ROUND
--set hour hand color
local hhr,hhg,hhb,hha=1,1,1,1  --fully opaque white
--##############################################################################
--   END SETTINGS AREA
--##############################################################################

--DRAWING CODE
--draw border
cairo_set_source_rgba (cr,cbr,cbg,cbb,cba)
cairo_set_line_width (cr,clock_border_width)
cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*math.pi)
cairo_stroke (cr)

--DRAW MARKS
--stuff that can be moved outside of the loop, needs only be set once
--calculate end and start radius for marks
m_end_rad=clock_radius-b_to_m
m_start_rad=m_end_rad-m_length
--set line cap type
cairo_set_line_cap  (cr, m_cap)
--set line width
cairo_set_line_width (cr,m_width)
--set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
--start for loop
for i=1,number_marks do
--drawing code using the value of i to calculate degrees
--calculate start point for 12 oclock mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--set start point for line
cairo_move_to (cr,clock_centerx+x,clock_centery+y)
--calculate end point for 12 oclock mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--set path for line
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--draw the line
cairo_stroke (cr)
end--of for loop

--TIME CALCULATIONS ###########################
if clock_type==12 then
hours=tonumber(os.date("%I")) --12 hour clock
--convert hours to seconds
h_to_s=hours*60*60
elseif clock_type==24 then
hours=tonumber(os.date("%H")) --24 hour clock
--convert hours to seconds
h_to_s=hours*60*60
end

minutes=tonumber(os.date("%M"))
--convert minutes to seconds
m_to_s=minutes*60
--get current seconds
seconds=tonumber(os.date("%S"))

--DRAW HOUR HAND ############################
--convert hours, minutes & seconds to seconds
hsecs=h_to_s+m_to_s+seconds
--calculate number of degrees for each hand per second
hsec_degs=hsecs*(360/(60*60*clock_type)) -- USING AN EQUATION INSTEAD OF TYPING THE CALCULATION IN BECAUSE THE RESULT OF 360/43200 HAS DECIMAL PLACES
--set radius we will use to calculate hand points
radius=hh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of minutes hand
point=(math.pi/180)*hsec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,hh_width)
cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
cairo_set_line_cap  (cr, hh_cap)
cairo_stroke (cr)

--DRAW MINUTES HAND ############################
--convert minutes & seconds to seconds
msecs=m_to_s+seconds
--calculate degrees for the hand each second
msec_degs=msecs*0.1
--set radius we will use to calculate hand points
radius=mh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of minutes hand
point=(math.pi/180)*msec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,mh_width)
cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
cairo_set_line_cap  (cr, mh_cap)
cairo_stroke (cr)

--DRAW SECOND HAND #############################
--calculate degrees for each second the hand moves
sec_degs=seconds*6
--set radius we will use to calculate hand points
radius=sh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of second hand
point=(math.pi/180)*sec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,sh_width)
cairo_set_source_rgba (cr,shr,shg,shb,sha)
cairo_set_line_cap  (cr, sh_cap)
cairo_stroke (cr)

--##############################################################################
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function 

transbg.lua

--[[Background originally by londonali1010 (2009)
    ability to set any size for background mrpeachy 2011
    ability to set variables for bg in conkyrc dk75

the change is that if you set width and/or height to 0
then it assumes the width and/or height of the conky window

so:

Above and After TEXT  (requires a composite manager or it blinks!)

 lua_load ~/wea_conky/draw_bg.lua
 TEXT
 ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}

OR Both above TEXT (no composite manager required - no blinking!)

 lua_load ~/wea_conky/draw_bg.lua
 lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.5
 TEXT

Note
${lua conky_draw_bg 20 0 0 0 0 0x000000 0.4}
  See below:        1  2 3 4 5 6        7

${lua conky_draw_bg corner_radius x_position y_position width height color alpha}

covers the whole window and will change if you change the minimum_size setting

1 = 20             corner_radius
2 = 0             x_position
3 = 0             y_position
3 = 0             width
5 = 0             height
6 = 0x000000      color
7 = 0.4           alpha

]]

require 'cairo'
local    cs, cr = nil
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function conky_draw_bg(r,x,y,w,h,color,alpha)
if conky_window == nil then return end
if cs == nil then cairo_surface_destroy(cs) end
if cr == nil then cairo_destroy(cr) end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
w=w
h=h
if w=="0" then w=tonumber(conky_window.width) end
if h=="0" then h=tonumber(conky_window.height) end
cairo_set_source_rgba (cr,rgb_to_r_g_b(color,alpha))
--top left mid circle
local xtl=x+r
local ytl=y+r
--top right mid circle
local xtr=(x+r)+((w)-(2*r))
local ytr=y+r
--bottom right mid circle
local xbr=(x+r)+((w)-(2*r))
local ybr=(y+r)+((h)-(2*r))
--bottom right mid circle
local xbl=(x+r)
local ybl=(y+r)+((h)-(2*r))
-----------------------------
cairo_move_to (cr,xtl,ytl-r)
cairo_line_to (cr,xtr,ytr-r)
cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
cairo_line_to (cr,xbr+r,ybr)
cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
cairo_line_to (cr,xbl,ybl+r)
cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
cairo_line_to (cr,xtl-r,ytl)
cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
cairo_close_path(cr)
cairo_fill (cr)
------------------------------------------------------------
cairo_surface_destroy(cs)
cairo_destroy(cr)
return ""
end 

Offline

#1670 2022-04-22 15:23:22

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,612

Re: Show us your conky

Nice.

Small conky world isn't it. I got away from conky when I started using tiling window managers. My various clocks, weather, etc ... are mostly tucked away on backup DVD. I probably got that clock from S11.

Every now and then I come across a script or config that goes back to the Ubuntu mega conky thread.

Thanks for the code. I can convert from 1.9.

i3 with conky as status bar, conkyrc with JSON syntax:

2022-04-22-1650642646.png

link to full image

conkyrc

conky.config = {
	out_to_console = true,
	out_to_x = false,
	background = false,
	cpu_avg_samples = 2,
	net_avg_samples = 2,
	no_buffers = true,
	out_to_stderr = false,
	update_interval = 3.0,
	uppercase = false,
	use_spacer = 'none',

};

-- # JSON for i3bar #
-- # { "full_text" : "Up:  ${uptime_short}  " , "color" : "\#CDCDCD" }, #
-- # { "full_text" : "${loadavg}  " , "color" : "\#CDCDCD" }, #
-- # { "full_text" : "${execpi 3 /home/doug/bin/cpu-temp.pl | cut -c1-7}  ", "color" : "\#CDCDCD" },

conky.text = [[

[

	{ "full_text" : "CPU:  ${cpu}%  " , "color" :
		${if_match ${cpu}>=50}"\#FF2828"${else}${if_match ${cpu}>=25}"\#D9D921"${else}"\#CDCDCD"${endif}${endif} },

	{ "full_text" : "${exec cpu_temp.pl}  ", "color" : "\#CDCDCD" },

	{ "full_text" : "MEM:  ${memperc}%  " , "color" :
		${if_match ${memperc}>=40}"\#FF2828"${else}${if_match ${memperc}>=25}"\#D9D921"${else}"\#CDCDCD"${endif}${endif} },

	{ "full_text" : "BAT0:  ${battery_percent BAT0}%  ", "color" :
	    ${if_match ${battery_percent BAT0}<=15}"\#FF2828"${else}${if_match ${battery_percent BAT0}<=25}"\#D9D921"${else}"\#CDCDCD"${endif}${endif} },

	{ "full_text" : "NET:  ${upspeed wlp1s0}    ${downspeed wlp1s0}  " , "color" : "\#CDCDCD" },

	{ "full_text" : "${time %a %e %b  %k:%M}  " , "color" : "\#CDCDCD" }

],

]];

i3conkybar.sh

################################################
# Pass colors to i3 status bar conky with JSON #
################################################
 
## Create a script in ~/bin and name it conky_i3bar.sh.  
 
#!/bin/sh
 
# Send the header so that i3bar knows we want to use JSON:
echo '{ "version": 1 }'
 
# Begin the endless array.
echo '['
 
# We send an empty first array of blocks to make the loop simpler:
echo '[],'
 
# Now send blocks with information forever:
exec conky -c "$HOME/.config/i3/conkyrc"

i3 bar section to start conky

status_command $HOME/.config/i3/i3conkybar.sh

Last edited by PackRat (2022-04-22 15:58:46)


You must unlearn what you have learned.
    -- yoda

Offline

#1671 2022-04-23 15:17:37

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

Yup, that is one of mine ... check that 3rd line:

# http://crunchbang.org/forums/viewtopic.php?pid=281625#p281625
# To use #! in a conky use: ${exec echo '#!'}
# killall conky && conky -c ~/Conky/S11_24_white.conky &

That "S11" is dead give away  and the fact that it is in ~/Conky tells it's age.
At some point in time near the end of #! days my conkys were moved to:

/media/5/Conky &
/media/5/conky &

The post (#4492) in that link (still active) is dated: 2013-01-03 04:03:55.
Just a tad over 9 years old

The version I have today has been tweaked to two separate conkys.

Thanks for giving back the original.  smile

NOTE:  The conky is mine - clock lua script by mrpeachy and background by a few:
- original: londonali1010 (2009),
- ability to set any size for background mrpeachy 2011
- ability to set variables for bg in conkyrc dk75

Conky: bringing us all together.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1672 2022-04-23 15:43:01

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

PackRat wrote:

Every now and then I come across a script or config that goes back to the Ubuntu mega conky thread.

That's where I got my start.  Dec 2007.  I have a few conkys in that thread just do not go there anymore.

OK I found it my first ever conky post: December 24th, 2007, been a heck of a ride!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1673 2022-04-23 17:52:08

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

Re: Show us your conky

Sector11 wrote:
PackRat wrote:

Every now and then I come across a script or config that goes back to the Ubuntu mega conky thread.

That's where I got my start.  Dec 2007.  I have a few conkys in that thread just do not go there anymore.

OK I found it my first ever conky post: December 24th, 2007, been a heck of a ride!

My friend, I bow! Please stay healthy!   O:)

Op0Do7Wt.png  yLLXZPTt.png

In my annals I still found these configurations. They still work, even if "some accessories" fail.
The blue one was my farewell to mageia5. Unfortunately, I miss the picture, which had impressed you so much at that time. 

With the second one, I had already removed Teo's weather data once, because the script 'majorcities' could no longer access the Chinese. However, your trick with the border at the bottom and on the right also no longer works.
So, only with the times:

# pkill -xf "conky -c /media/5/Conky/S11_WTD.conky" &
# Idea stolen from: ragamatrix and Habitual
# weather script by TeoBigusGeekus
# tweaked 2017-09-02 - Sector11
# --------------------------------
# Daylight map.
# Written by John Jones / Habitual)
# 09/10/2010 07:37:21 AM
# Conky 1.8.0
# Remote image(s) is/are updated twice an hour on http://static.die.net and there are only 4 available.
# http://static.die.net/earth/mercator/640.jpg is 640x355
# http://static.die.net/earth/mercator/800.jpg is 800x444
# http://static.die.net/earth/mercator/1024.jpg is 1024x568
# http://static.die.net/earth/mercator/1280 .jpg 1280px × 710px (scaled to 1148px × 637px)

# Use ~/bin/daylight.sh to retrieve the remote image of your choice/size.

# Completely (re)written by John Jones on 09/01/2010
# from other people's code, but it's MY layout, so there.
# ---------------------------------
###  Begin Window Settings  ##################################################

own_window yes
double_buffer yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,skip_taskbar,skip_pager,below
own_window_class Conky
#own_window_title World Time Date & Forecast - CCCC: S11, ragamatrix, Habitual & Teo
own_window_colour gray
# own_window_argb_visual yes
# own_window_argb_value 0 #255

minimum_size 1600 887	### w|h
maximum_width 1601	### w

gap_x 0	# l|r
gap_y 0	# u|d

alignment mm

###  ##############################################  End Window Settings  ###
###  Font Settings  #########################################################

use_xft yes
xftfont monofur:bold:size=11  #12
xftalpha 1
override_utf8_locale yes

######################################################  End Font Settings  ###
###  Color Settings  #########################################################

draw_shades yes
default_shade_color 000000

draw_outline no
default_outline_color 000000

default_color FFDEAD #255 222 173	NavajoWhite
color0 8FBC8F #143 188 143	DarkSeaGreen
color1 778899 #119 136 153	LightSlateGray
color2 D8BFD8 #216 191 216	Thistle
color3 9ACD32 #154 205  50	YellowGreen
color4 FFA07A #255 160 122	LightSalmon
color5 FFDEAD #255 222 173	NavajoWhite
color6 00BFFF #  0 191 255	DeepSkyBlue
color7 5F9EA0 # 95 158 160	CadetBlue
color8 BDB76B #189 183 107	DarkKhaki
color9 FFD700 #255 215   0  Gold

#####################################################  End Color Settings  ###
###  Borders Section  ########################################################

draw_borders no
stippled_borders 0
border_inner_margin 0
border_outer_margin 0
border_width 0
draw_graph_borders no
#default_graph_size 15 40

#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################

background yes
use_spacer none
no_buffers yes
imlib_cache_size 0

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
 lua_load ~/LUA/draw-bg.lua
 lua_draw_hook_pre draw_bg 0 5 6 1601 888 0x000000 0.2

update_interval 1


TEXT
#${execi 86400 bash /media/unklar/C61C-895C/francescoPC/Conky/Sector11/Map/S11world/daylight.sh}
#${execi 86400 bash /media/unklar/C61C-895C/francescoPC/Conky/Sector11/Map/S11world/majorcities}
${image /media/unklar/C61C-895C/francescoPC/Conky/images/1600.jpg}
${alignc}${font monofur:bold:size=14}${tztime %a %d %b %Y} «--${color1}|${color6}--» ${tztime NZ %a %d %b %Y}${color}${font}









${goto 925} ${if_match ${tztime Europe/Moscow %d} == ${tztime NZ %d}}${color6}Moskva ${tztime Europe/Moscow %R}${color}${else}Moskva ${tztime Europe/Moscow %R}${endif}
${goto 925}${color6}${execpi 1800 sed -n '218p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '219p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '220p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color}
${goto 760} ${if_match ${tztime Europe/London %d} == ${tztime NZ %d}}${color6}London ${tztime Europe/London %R}${color}${else}London ${tztime Europe/London %R}${endif}
${goto 760}${color6}${execpi 1800 sed -n '206p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '207p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '208p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color}\
${goto 95}${voffset 5}${if_match ${tztime Canada/Pacific %d} == ${tztime NZ %d}}${color6}Vancouver ${tztime Canada/Pacific %R} ${color}${else}Vancouver ${tztime Canada/Pacific %R} ${endif}${voffset -5}\
${goto 322}${if_match ${tztime America/Winnipeg %d} == ${tztime NZ %d}}${color6} Winnipeg ${tztime America/Winnipeg %R}${color}${else} Winnipeg ${tztime America/Winnipeg %R}${endif}
${goto 85}${voffset 5}${color6}${execpi 1800 sed -n '355p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '356p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '357p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color}${voffset -5}\
${goto 322}${color6}${execpi 1800 sed -n '363p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '364p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '365p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color}
${goto 440}${if_match ${tztime America/New_York %d} == ${tztime NZ %d}}${color6} New York ${tztime America/New_York %R}${color}${else} New York ${tztime America/New_York %R}${endif}\
${goto 816} ${if_match ${tztime Europe/Rome %d} == ${tztime NZ %d}}${color6}Rome ${tztime Europe/Rome %R}${color}${else}Rome ${tztime Europe/Rome %R}${endif}
${goto 440}${color6}${execpi 1800 sed -n '323p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '324p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '325p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color}\
${goto 638}${voffset -3}${if_match ${tztime Europe/Madrid %d} == ${tztime NZ %d}}${color6}Madrid ${tztime Europe/Madrid %R}${color}${else}Madrid ${tztime Europe/Madrid %R}${endif} ${voffset 3}\
${goto 816}${color6}${execpi 1800 sed -n '234p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '235p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '236p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color}\
${voffset -4}${goto 1162}${if_match ${tztime Asia/Shanghai %d} == ${tztime NZ %d}}${color6}Beijing ${tztime Asia/Shanghai %R}${color}${else}Beijing ${tztime Asia/Shanghai %R}${endif} ${voffset 4}
${goto 628}${voffset -3}${color6}${execpi 1800 sed -n '210p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '211p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '212p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${voffset 3}\
${voffset -4}${goto 1162}${color6}${execpi 1800 sed -n '15p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '16p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '17p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color}${voffset 4}\
${goto 1380} ${if_match ${tztime Asia/Tokyo %d} == ${tztime NZ %d}}${color6}Tokyo ${tztime Asia/Tokyo %R}${color}${else}Tokyo ${tztime Asia/Tokyo %R}${endif}
${goto 1380}${color6}${execpi 1800 sed -n '99p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '100p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '101p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color}
${voffset -4}${goto 895} ${if_match ${tztime Africa/Cairo %d} == ${tztime NZ %d}}${color6}Cairo ${tztime Africa/Cairo %R}${color}${else}Cairo ${tztime Africa/Cairo %R}${endif}${voffset 4}\
${goto 1100} ${if_match ${tztime GMT-5:30 %d} == ${tztime NZ %d}}${color6}New Delhi ${tztime GMT-5:30 %R}${color}${else}New Delhi ${tztime GMT-5:30 %R}${endif}
${goto 400}${if_match ${tztime US/Eastern %d} == ${tztime NZ %d}}${color6} Miami ${tztime US/Eastern %R}${color}${else} Miami ${tztime US/Eastern %R}${endif}\
${voffset -4}${goto 895}${color6}${execpi 1800 sed -n '116p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '117p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '118p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${voffset 4}${color}\
${goto 1100}${color6}${execpi 1800 sed -n '71p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '72p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '73p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color}
${goto 400}${color6}${execpi 1800 sed -n '311p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '312p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '313p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color}
${goto 213}${voffset -7}${if_match ${tztime America/Mexico_City %d} == ${tztime NZ %d}}${color6}Mexico ${tztime America/Mexico_City %R} ${color}${else}Mexico ${tztime America/Mexico_City %R} ${endif}${voffset 7}${color}
${goto 213}${voffset -7}${color6}${execpi 1800 sed -n '307p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '308p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '309p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${voffset 7}${color}









${goto 1320}${if_match ${tztime Australia/Brisbane %d} == ${tztime NZ %d}}${color6}Brisbane ${tztime Australia/Brisbane %R}${color}${else}Brisbane ${tztime Australia/Brisbane %R}${endif} 
${goto 1320}${color6}${execpi 1800 sed -n '133p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '134p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '135p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color}
${goto 335}${voffset -3}${if_match ${tztime Chile/Continental %d} == ${tztime NZ %d}}${color6}Santiago ${tztime Chile/Continental %R}${color}${else}Santiago ${tztime Chile/Continental %R}${endif} ${voffset 3}\
${goto 500} ${if_match ${tztime America/Buenos_Aires %d} == ${tztime NZ %d}}${color6}Buenos Aires ${tztime America/Buenos_Aires %R}${color}${else}Buenos Aires ${tztime America/Buenos_Aires %R}${endif}\
${goto 845}${if_match ${tztime Africa/Johannesburg %d} == ${tztime NZ %d}}${color6} Cape Town ${tztime Africa/Johannesburg %R}${color}${else} Cape Town ${tztime Africa/Johannesburg %R}${endif}
${goto 320}${voffset -3}${color6}${execpi 1800 sed -n '388p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '389p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '390p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${voffset 3}${color}\
${goto 500}${color6}${execpi 1800 sed -n '372p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '373p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '374p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color}\
${goto 845}${color6}${execpi 1800 sed -n '120p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '121p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '122p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}\
${goto 1272}${if_match ${tztime Australia/Melbourne %d} == ${tztime NZ %d}}${color6}Melbourne ${tztime Australia/Melbourne %R}${color}${else}Melbourne ${tztime Australia/Melbourne %R}${endif} \
${goto 1415}${voffset -5}${color6}Auckland ${tztime Pacific/Auckland %R} ${color}${voffset 5}
${goto 1272}${color6}${execpi 1800 sed -n '145p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '146p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '147p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color}\
${goto 1415}${voffset -5}${color6}${execpi 1800 sed -n '129p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data} ${color4}${execpi 1800 sed -n '130p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color9} ${execpi 1800 sed -n '131p' /media/unklar/C61C-895C/francescoPC/Conky/Scripte/WTD/MC_data}${color}${voffset 5}

Edit:
He, the found image   big_smile

xOd9eGtt.png

Last edited by unklar (2022-04-24 12:45:47)

Offline

#1674 2022-04-24 14:54:16

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

unklar wrote:
Sector11 wrote:
PackRat wrote:

Every now and then I come across a script or config that goes back to the Ubuntu mega conky thread.

That's where I got my start.  Dec 2007.  I have a few conkys in that thread just do not go there anymore.

OK I found it my first ever conky post: December 24th, 2007, been a heck of a ride!

My friend, I bow! Please stay healthy!   O:)

I'll bow with you. smile

daylight.sh and majorcities no longer work because the websites have changed something.

We0 can still go to "http://static.die.net/earth/mercator/1600.jpg" and save the image to /media/5/Conky/images/world_1600.jpg ... BUT neither of the wget commands work:

 24 Apr 22 @ 11:49:11 /media/5/Conky/images
   $ wget -U Mozilla/5.0 http://static.die.net/earth/mercator/640.jpg
--2022-04-24 11:49:21--  http://static.die.net/earth/mercator/640.jpg
Resolving static.die.net (static.die.net)... 2606:4700:20::681a:5e, 2606:4700:20::ac43:45bb, 2606:4700:20::681a:15e, ...
Connecting to static.die.net (static.die.net)|2606:4700:20::681a:5e|:80... connected.
HTTP request sent, awaiting response... 503 Service Temporarily Unavailable
2022-04-24 11:49:21 ERROR 503: Service Temporarily Unavailable.

 
 24 Apr 22 @ 11:49:21 /media/5/Conky/images
   $ wget -U Mozilla/5.0 --quiet -r -O /media/5/Conky/images/world_1600.jpg http://static.die.net/earth/mercator/1600.jpg
 
 24 Apr 22 @ 11:49:52 /media/5/Conky/images
   $ 

The second one leaves a "1600.png" file - but it's really an empty text tile.

SO SAD!

Edit:
He, the found image   big_smile

https://i.imgur.com/xOd9eGtt.png

Thanks to you I found my original conky as well and I still have the nice blue image:
/media/5/Conky/images/glowing_worldmap_blue.jpg

Might just revive that one as It a beautiful map and 'clean'.  Besides like blue.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1675 2022-04-24 15:03:37

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

unklar wrote:

In my annals I still found these configurations. They still work, even if "some accessories" fail.
The blue one was my farewell to mageia5. Unfortunately, I miss the picture, which had impressed you so much at that time.

Do you still have the conky that uses the "glowing_worldmap_blue.jpg" image?

I must have tweaked to use the other image.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1676 2022-04-24 15:51:24

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

Re: Show us your conky

Sector11 wrote:

Do you still have the conky that uses the "glowing_worldmap_blue.jpg" image?

Do I have   smile

# killall conky && conky -c /media/5/Conky/ragamatrix_Map/Map_Time.conky &
# From and idea started by ragamatrix
# http://crunchbang.org/forums/viewtopic.php?pid=331813#p331813

###  Begin Window Settings  ##################################################
own_window yes
own_window_type normal #override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager  #,sticky
#own_window_colour 000000
own_window_class Conky
own_window_title S11

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 0

minimum_size 650 500  #620 420     ## width, height
maximum_width 650      ## width

gap_x -75 # left-right
gap_y 0 # up-down

alignment middle_middle
###################################################  End Window Settings  ###
###  Font Settings  #########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Monofur:bold:size=10

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes #no # amplifies text if yes
default_shade_color 000000

draw_outline no # amplifies text if yes
default_outline_color 000000

#default_color DCDCDC #220 220 220	Gainsboro
#default_color C0C0C0 #192 192 192 Silver
default_color B0E0E6 #176 224 230 PowderBlue
color0 8FBC8F #143 188 143	DarkSeaGreen
color1 778899 #119 136 153	LightSlateGray
color2 D8BFD8 #216 191 216	Thistle
color3 9ACD32 #154 205  50	YellowGreen
color4 FFA07A #255 160 122	LightSalmon
color5 FFDEAD #255 222 173	NavajoWhite
color6 00BFFF #  0 191 255	DeepSkyBlue
color7 5F9EA0 # 95 158 160	CadetBlue
color8 BDB76B #189 183 107	DarkKhaki
color9 CD5C5C #205  92  92	IndianRed
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 4
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no #yes
#default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background no

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
#text_buffer_size 256

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

#   Maximum size of user text buffer, i.e. layout below TEXT line in config file
#  (default is 16384 bytes)
# max_user_text 16384

# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
# temperature_unit Fahrenheit

##############################################  End Miscellaneous Section  ###

update_interval 1
TEXT
${image /media/unklar/C61C-895C/francescoPC/Conky/Sector11/Map/glowing_worldmap_blue.jpg -p -11,0 -s 620x420}\
      ${tztime America/Anchorage %a %d %b %Y}${goto 298}${color1}Seconds${color}${goto 500}${color6}${tztime NZ %a %d %b %Y}${color}
      ${alignc}${color1}${time :%S}${color}

${voffset 10}${goto 300}${if_match ${tztime Arctic/Longyearbyen %d} == ${tztime NZ %d}}${color6}Longyearbyen${color}${else}Longyearbyen${endif}${voffset -10}
${voffset 10}${goto 185}${if_match ${tztime Canada/Eastern %d} == ${tztime NZ %d}}${color6}° Alert ${tztime Canada/Eastern %R}${color}${else}° Alert ${tztime Canada/Eastern %R}${endif}${voffset 3}   ${if_match ${tztime Arctic/Longyearbyen %d} == ${tztime NZ %d}}${color6}° ${tztime Arctic/Longyearbyen %R}${color}${else}° ${tztime Arctic/Longyearbyen %R}${endif}${voffset -3}

${goto 240}  ${if_match ${tztime Atlantic/Reykjavik %d} == ${tztime NZ %d}}${color6} ${tztime Atlantic/Reykjavik %R}${color}${else} ${tztime Atlantic/Reykjavik %R}${endif}
${goto 240}${if_match ${tztime Atlantic/Reykjavik %d} == ${tztime NZ %d}}${color6}° Reykjavik${color}${else}° Reykjavik${endif}
${voffset -3}${goto 45}${if_match ${tztime America/Anchorage %d} == ${tztime NZ %d}}${color6} Anchorage${color}${else} Anchorage${endif}${voffset 3}
${voffset -3}${goto 45}° ${if_match ${tztime America/Anchorage %d} == ${tztime NZ %d}}${color6}${tztime America/Anchorage %R}${color}${else}${tztime America/Anchorage %R}${endif}${voffset 3}${goto 270}${if_match ${tztime UTC %d} == ${tztime NZ %d}}${color6}° London ${tztime UTC %R}${color}${else}° London ${tztime UTC %R}${endif}
${goto 275}${if_match ${tztime Europe/Paris %d} == ${tztime NZ %d}}${color6}° Paris ${tztime Europe/Paris %R}${color}${else}° Paris ${tztime Europe/Paris %R}${endif}
${voffset -7}${goto 095}${if_match ${tztime Canada/Pacific %d} == ${tztime NZ %d}}${color6}° Vancouver${color}${else}° Vancouver${endif}${goto 200}${if_match ${tztime Canada/Newfoundland %d} == ${tztime NZ %d}}${color6}° St. John's${color}${else}° St. John's${endif}${voffset -5}
${voffset 2}${goto 095} ${if_match ${tztime Canada/Pacific %d} == ${tztime NZ %d}}${color6}${tztime Canada/Pacific %R}${color}${else}${tztime Canada/Pacific %R}${endif}${voffset -2}${voffset 5}${goto 200} ${if_match ${tztime Canada/Newfoundland %d} == ${tztime NZ %d}}${color6}${tztime Canada/Newfoundland %R}${color}${else}${tztime Canada/Newfoundland %R}${endif}${voffset -5}${voffset 4}${goto 492}${if_match ${tztime Asia/Tokyo %d} == ${tztime NZ %d}}${color6}° Tokyo ${tztime Asia/Tokyo %R}${color}${else}° Tokyo ${tztime Asia/Tokyo %R}${endif}${voffset -4}

${voffset -2}${goto 158}${if_match ${tztime US/Eastern %d} == ${tztime NZ %d}}${color6}° Miami ${tztime US/Eastern %R}${color}${else}° Miami ${tztime US/Eastern %R}${endif}\
${voffset 3}${goto 325}${if_match ${tztime GMT-5:30 %d} == ${tztime NZ %d}}${color6}New Delhi °${color}${else}New Delhi °${endif}${voffset -3}\
${goto 448}${if_match ${tztime Hongkong %d} == ${tztime NZ %d}}${color6}° Hong Kong ${tztime Hongkong %R}${color}${else}° Hong Kong ${tztime Hongkong %R}${endif}
${voffset 4}${goto 140}${if_match ${tztime America/Mexico_City %d} == ${tztime NZ %d}}${color6}° Mexico ${tztime America/Mexico_City %R}${color}${else}° Mexico ${tztime America/Mexico_City %R}${endif}${voffset -4}\
${voffset 3}${goto 355}${if_match ${tztime GMT-5:30 %d} == ${tztime NZ %d}}${color6}${tztime GMT-5:30 %R}${color}${else}${tztime GMT-5:30 %R}${endif}${voffset -3}
${goto 434}${if_match ${tztime Asia/Singapore %d} == ${tztime NZ %d}}${color6}° Singapore ${tztime Asia/Singapore %R}${color}${else}° Singapore ${tztime Asia/Singapore %R}${endif}


${voffset -3}${goto 500}${if_match ${tztime Australia/Darwin %d} == ${tztime NZ %d}}${color6}° Darwin${color}${else}° Darwin${endif}${voffset 3}
${voffset 4}${goto 305}${if_match ${tztime Africa/Johannesburg %d} == ${tztime NZ %d}}${color6}° Cape Town ${tztime Africa/Johannesburg %R}${color}${else}° Cape Town ${tztime Africa/Johannesburg %R}${endif}${voffset -4}${voffset -3}${goto 500}${if_match ${tztime Australia/Darwin %d} == ${tztime NZ %d}}${color6}${tztime Australia/Darwin %R}${color}${else}${tztime Australia/Darwin %R}${endif}${voffset 3}

${voffset -2}${goto 188}${if_match ${tztime America/Buenos_Aires %d} == ${tztime NZ %d}}${color6}° Buenos Aires ${tztime America/Buenos_Aires %R}${color}${else}° Buenos Aires ${tztime America/Buenos_Aires %R}${endif}${voffset 2}${voffset 5}${goto 560}${color6}°${color}
${goto 488}${color6}Christchurch${color}
${goto 538}${color6}${tztime NZ %R}${color}${voffset 2}${goto 171}${if_match ${tztime America/Argentina/Ushuaia %d} == ${tztime NZ %d}}${color6}° Ushuaia ${tztime America/Argentina/Ushuaia %R}${color}${else}° Ushuaia ${tztime America/Argentina/Ushuaia %R}${endif}${voffset 2} 

Offline

#1677 2022-04-24 22:20:46

il.harun
Member
Registered: 2020-06-04
Posts: 54

Re: Show us your conky

Sector11
update and upgrade xplanet_download.sh

#!/usr/bin/env bash

cd $HOME

###################################################################
##
## comments: change SOURCE and OUTPUT as required
##           +uncomment update/refresh routine for your desktop environment
## caveats:  don't refresh during video playback?
##           not tested with compiz et al

#does not work
#SOURCE="https://static.die.net/earth/mercator/1600.jpg"
#does not work
#SOURCE="https://static.die.net/earth/rectangular/1600.jpg"
#########################################
## see also: http://www.ruwenzori.net/earth/ for other resolutions and regions
##
##
#SOURCE="https://meteoinfo.ru/images/media/satel/latest_a_i.jpg"
#
#SOURCE="http://www.ruwenzori.net/earth/Earth_EMEA+Atlantic_1280x1024.jpg"
#SOURCE="http://www.ruwenzori.net/earth/Earth_Asia+Pacific_1280x1024.jpg"
#SOURCE="http://www.ruwenzori.net/earth/Earth_The_Americas_1280x1024.jpg"

#SOURCE="https://www.timeanddate.com/scripts/sunmap.php"

#SOURCE="http://images.opentopia.com/sunlight/world_sunlight_map_hemisphere.jpg"
#
SOURCE="http://images.opentopia.com/sunlight/world_sunlight_map_rectangular.jpg"


OUTPUT=$HOME/xplanet.jpg
APPEND=.old

## check for old image
if [ -e "$OUTPUT" ]; then
 mv $OUTPUT $OUTPUT$APPEND
fi

## get new image
#wget -q $SOURCE -O $OUTPUT
#wget -U Mozilla/5.0 -q $SOURCE -O $OUTPUT

#
	curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'Cache-Control: max-age=0' -o $OUTPUT  $SOURCE
#
notify-send " download wallpaper " "$(date +"%T")"
sleep 1

## check for new image and then remove old image
if [ -e "$OUTPUT" ]; then
 if [ -e "$OUTPUT$APPEND" ]; then
  rm -f $OUTPUT$APPEND
sleep 0.2
 fi
## new image not found, use old image
else
 if [ -e "$OUTPUT$APPEND" ]; then
  mv $OUTPUT$APPEND $OUTPUT
sleep 0.2
 fi
fi
sleep 0.2


#notify-send " $OUTPUT " "$(date +"%T")"
#notify-send " 'file://${OUTPUT}' " "$(date +"%T")"

## uncomment refresh routine for your desktop environment (or use external application)

## only for GNOME 2!
#gconftool -t str -s /desktop/gnome/background/picture_filename "$OUTPUT"
## same effect, but uses gconftool-2:
##gconftool-2 --type String --set /desktop/gnome/background/picture_filename "$OUTPUT"

## only for GNOME 3!
###    ###
#gsettings set org.gnome.desktop.background picture-uri "$OUTPUT"
####  work Ubuntu 20.04  ####
##
gsettings set org.gnome.desktop.background picture-uri "file://"$OUTPUT""
###gsettings set org.gnome.desktop.background picture-uri \'file://${OUTPUT}\'

#
gsettings set org.gnome.desktop.background picture-options "stretched"
sleep 0.2
#
gsettings set org.gnome.desktop.background picture-options "zoom"

####  work XUbuntu 20.04  ####
#xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitorHDMI-2/workspace0/last-image -s "$OUTPUT"

## only for Xfce!
#xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitorHDMI2/workspace0/last-image -s "$OUTPUT"

## only for LXDE! (pcmanfm as desktop background manager; Lubuntu et al.)
#pcmanfm -w $OUTPUT

## Openbox, Fluxbox and other standalone window managers; external program required (feh)
#feh --bg-scale $OUTPUT

exit 0

In Accuweather_conky_script/conkyconfig/script/
scripts to change desktop wallpaper
see google disk
Testing Gnome: Manjaro, Ubuntu 2004, Xubuntu 2004

Offline

#1678 2022-04-25 14:39:52

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

unklar wrote:
Sector11 wrote:

Do you still have the conky that uses the "glowing_worldmap_blue.jpg" image?

Do I have   smile

I obviously asked the wrong question.  I should have asked, "Would you please post the conky that uses the "glowing_worldmap_blue.jpg". 
lol   lol   lol

Sorry for the delay - Real Life took over.
Time to tweak now.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1679 2022-04-25 14:42:34

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

il.harun wrote:

Sector11
update and upgrade xplanet_download.sh

{snip}

In Accuweather_conky_script/conkyconfig/script/
scripts to change desktop wallpaper
see google disk
Testing Gnome: Manjaro, Ubuntu 2004, Xubuntu 2004

NICE!  Must test
Thank you!

EDIT:

Works as advertised.
using the Openbox (feh) option  smile
Thank You.

Last edited by Sector11 (2022-04-25 15:05:32)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1680 2022-04-30 13:04:02

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Hello

I found this it's a conkyrc.lua here

https://www.reddit.com/r/unixporn/comme … t_library/

I didn't know that whe can make a conky with the script in .

I added a few things of my own

Capture-d-cran-2022-04-30-14-57-03.png

the conkyrc.lua

--- Conky config script

-- Conky does not add our config directory to lua's PATH, so we do it manually
local script_dir = debug.getinfo(1, 'S').source:match("^@(.*/)") or "./"
package.path = script_dir .. "../?.lua;" .. package.path

local widget = require('src/widget')
local polycore = require('src/polycore')

-- Draw debug information
DEBUG = false


local conkyrc = conky or {}
conkyrc.config = {
    lua_load = script_dir .. "columns.lua",
    lua_startup_hook = "conky_setup",
    lua_draw_hook_post = "conky_update",

    update_interval = 1,

    -- awesome wm --
    own_window = true,
    own_window_class = 'conky',
    own_window_type = 'normal',
    own_window_hints = 'undecorated,skip_taskbar,skip_pager',

    double_buffer = true,

    alignment = 'top_middle',
    gap_x = 0,
    gap_y = 0,
    minimum_width = 800,
    maximum_width = 800,
    minimum_height = 180,

    draw_shades = false,
    draw_outline = false,
    draw_borders = false,
    border_width = 0,
    border_inner_margin = 0,
    border_outer_margin = 0,

    top_cpu_separate = true,
    top_name_width = 10,
    no_buffers = true,  -- include buffers in easyfree memory?
    cpu_avg_samples = 2,
    net_avg_samples = 1,

    -- font --
    use_xft = true,  -- Use Xft (anti-aliased font and stuff)
    font = 'Ubuntu:pixelsize=9',
    override_utf8_locale = true,
    xftalpha = 0,  -- Alpha of Xft font. Must be a value at or between 1 and 0.

    -- colors --
    own_window_colour = '000000',
    own_window_argb_visual = true,
    own_window_argb_value = 0,
    default_color = 'fafafa',
    color0 = '488',    -- titles
    color1 = 'b9b9b7', -- secondary text color


    -- drives: name dir --
    template5 = [[
${if_mounted \2}
${goto 652}${font Ubuntu:pixelsize=11:bold}${color0}· \1 ·#
${voffset 20}#
${goto 652}${color1}${font Ubuntu:pixelsize=10}${fs_used \2}  /  ${fs_size \2}#
${alignr 20}${fs_used_perc \2}%$font$color#
$endif]],
}

-----------------
----- START -----
-----------------

conkyrc.text = [[
${voffset 10}#
${alignc 312}${font TeXGyreChorus:pixelsize=20:bold}#
${color fff}P${color dff}o${color bee}l${color 9ee}y#
${color 7ee}c${color 5ee}o${color 4ee}r${color 3ee}e#
$color$font
#${alignc 320}${font Courier new:pixelsize=20}${color cff}Polycore${color}$font
${font Ubuntu:pixelsize=11:bold}${color0}#
${voffset -14}${alignc  247}[ mem ]
${voffset -14}${alignc  160}[ cpu ]
${voffset -14}${alignc    0}[ gpu ]
${voffset -14}${alignc -160}[ net ]
${voffset -14}${alignc -310}[ dis ]
$color$font${voffset 124}#
${alignc 245}${memperc}% 
${goto 137}${mem}
### top ###
${color1}${voffset -117}
${goto 180}${top name 1}${alignr 490}${top cpu 1} %
${goto 180}${top name 2}${alignr 490}${top cpu 2} %
${goto 180}${top name 3}${alignr 490}${top cpu 3} %
${goto 180}${top name 4}${alignr 490}${top cpu 4} %
${goto 180}${top name 5}${alignr 490}${top cpu 5} %
${voffset -98}#
${goto 350}${color1}Température $color ${nvidia temp}  °C
### net ###
${goto 495}${color1}Down$color${alignr 180}${downspeed wlo1}
${goto 495}${color1}Total$color${alignr 180}${totaldown wlo1}
${voffset 38}#
${goto 495}${color1}Up$color${alignr 180}${upspeed wlo1}
${goto 495}${color1}Total$color${alignr 180}${totalup wlo1}
${voffset -92}#
#
### drives ###
${template5 root /}#
${voffset 5}#
${template5 loutch /home}#
${voffset 5}#
${template5 Data /mnt/9d01359b-9705-43f9-be12-4d6d7f28b12b}#
]]


--- Called once on startup to initialize widgets.
-- @treturn widget.Renderer
function polycore.setup()

    local secondary_text_color = {.72, .72, .71, 1}  -- ~b9b9b7

    local root = widget.Frame(widget.Columns{
        widget.Group{
            widget.Filler{},
            widget.Cpu{cores=6, inner_radius=28, gap=5, outer_radius=57},
            widget.Filler{},
        },
        widget.Filler{width=10},
        widget.MemoryGrid{columns=5},
        widget.Filler{width=20},
        widget.Group{
            widget.CpuFrequencies{cores=6, min_freq=0.75, max_freq=4.3},
            widget.Filler{},
        },
        widget.Filler{width=30},
        widget.Group{
            widget.Filler{height=5},
            widget.Gpu(),
            widget.Filler{height=5},
            widget.GpuTop{lines=5, color=secondary_text_color},
        },
        widget.Filler{width=30},
        widget.Group{
            widget.Filler{height=26},
            widget.Network{interface="wlo1", downspeed=5 * 1024, upspeed=1024},
        },
        widget.Filler{width=30},
        widget.Group{
            widget.Drive("/"),
            widget.Filler{height=-9},
            widget.Drive("/home"),
            widget.Filler{height=-9},
            widget.Drive("/mnt/9d01359b-9705-43f9-be12-4d6d7f28b12b"),
        },
    }, {
        border_color={0.8, 1, 1, 0.05},
        border_width = 1,
        padding = {40, 20, 20, 10},
    })
    return widget.Renderer{root=root,
                           width=conkyrc.config.minimum_width,
                           height=conkyrc.config.minimum_height}
end

@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

Board footer

Powered by FluxBB