You are not logged in.
@ unklar & clusterF
Hello my friend, I greet you warmly and wish you health for 2020.
"Why wander far off, located the good is so near", says a German proverb.
The Noto-Font's are contained in both helium and lithium. That is not the reason. However, they do not work with it either, as Sector11 has already determined.
Thanks for your hint to the script of damo.
I wanted to keep this in "one line".
Here in Arch, it looks like this:
@clusterF,
and the Conky
###pkill -xf "conky -c /home/unklar/Jan2012/oben_Jan12rc" &
###2016-10-13 unklar mit freundlicher Hilfe durch Sector11
### Begin Window Settings ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal #panel
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_colour black
#own_window_class Conky
#own_window_title OneLiner
# 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 200
minimum_size 1900 0 ## width, height
maximum_width 1900 ## width, usually a good idea to be '=' or '>' minimum width
gap_x 5 # left-right
gap_y 5 # up-down
alignment top_left
################################################### End Window Settings ###
### Font Settings #########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont monospace:size=8.5
#xftfont DejaVu Sans Mono:size=8.5
#xftfont monofur:size=10
# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 0
# Force UTF8? requires XFT ###
override_utf8_locale yes
draw_shades no
default_shade_color black
draw_outline no # amplifies text if yes
default_outline_color black
uppercase no
###################################################### End Font Settings ###
### Color Settings #########################################################
default_shade_color grey
default_outline_color black
default_color DCDCDC #220 220 220 Gainsboro
color0 8FBC8F #143 188 143 DarkSeaGreen
color1 778899 #119 136 153 LightSlateGray #
color2 FF8C00 #255 140 0 DarkOrange
color3 7FFF00 #127 255 0 Chartreuse
color4 FFA07A #255 160 122 LightSalmon
color5 FFDEAD #255 222 173 NavajoWhite #
color6 00BFFF # 0 191 255 DeepSkyBlue
color7 00FFFF # 0 255 255 Cyan
color8 FFFFFF # Withe #
color9 FFFF00 #255 255 0 Yellow
#color10 B22222 #178 34 34 FireBrick
##################################################### 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 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
############################################## End Miscellaneous Section ###
update_interval 1
TEXT
${goto 100}${color9}GPU:${color8} ${hwmon 2 temp 1}°\
${color7}${kernel}${color8} CPU: ${color7}${if_match ${cpu cpu0} < 10}00${cpu cpu0}${color8}\
${else}${color7}${if_match ${cpu cpu0} < 100}0${cpu cpu0}${color8}\
${else}${color9}${cpu cpu0}${color8}\
${endif}${endif}\
Mem: ${color7}${if_match ${memperc} < 10}00${memperc}${color8}\
${else}${color7}${if_match ${memperc} < 100}0${memperc}${color8}\
${else}${color9}${memperc}${color8}\
${endif}${endif}\
root: ${color7}${if_match ${fs_used_perc /} < 10}00${fs_used_perc /}${color8}\
${else}${color7}${if_match ${fs_used_perc /} < 100}0${fs_used_perc /}${color8}\
${else}${color9}${fs_used_perc /}${color8}\
${endif}${endif}\
Core0: ${color7}${hwmon 1 temp 2}°${color8}\
Core1: ${color7}${hwmon 1 temp 3}°${color8}\
Core2: ${color7}${hwmon 1 temp 4}°${color8}\
Core3: ${color7}${hwmon 1 temp 5}°${color8}\
sdb: ${color7}${execi 600 /usr/sbin/hddtemp -n /dev/sdb}°${color8}\
DL: ${downspeedgraph eth0 10,50 FFFF00 FF0000} ${downspeedf eth0} \
MB: ${color7}${hwmon 0 temp 2}°${color8}\
UP: ${upspeedgraph eth0 10,50 FF0000 FFFF00} ${upspeedf eth0}${color8} \
FAN: ${color7}${hwmon 0 fan 1}\
${color8}|${color7}${hwmon 0 fan 2}\
${color8}|${color7}${hwmon 0 fan 3}\
${color8}|${color7}${hwmon 0 fan 4}${color8}\
UID: ${color7}${exec id | cut -c5-8}${color8}\
${color8}${texeci 600 curl -s 'wttr.in/lichtenstein_sachsen?format=+%C+%t+%w+%P+%h'}\
${color8}${alignr 20}Boot: ${execi 86400 who -b | cut -c23-}
where I have the text output with the capital C (+%C) and ignore the moon phase with omitting the m (+%m).
Last edited by unklar (2020-01-15 16:22:25)
Offline
Sector11 wrote:@ unklar & clusterF
Hello my friend, I greet you warmly and wish you health for 2020.
hallo unklar
I watch I read I am here
All the best to you and yours my friend.
I popped that line into my test conky and no errors but no icons either:
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
this is what i get when put the weather command on the terminal unklar
Overcast +8°C ↗15 km/h 1023hPa 66%
in conky 1.10 if override_utf8_locale = false, i will get those boxes instead of the arrow celsius and + characters.
Not sure why you are having issues as you have the correct setting for override_utf8_locale.
Maybe you need to capitalize "monospace" in xftfont monospace:size=8.5 ??
Your original command in your first question was
curl -s 'wttr.in/lichtenstein_sachsen?format=+%c+%t+%w+%P+%h+%m'
but in your conkyrc you changed it to
curl -s 'wttr.in/lichtenstein_sachsen?format=+%C+%t+%w+%P+%h'
?? did you want the sun and the moon characters or not?
Last edited by clusterF (2020-01-16 02:11:34)
Offline
Hi Unklar if i use below commands in conky i get all the unicode characters display properly.
${font DejaVu Sans:size=10}${texeci 600 curl -s "wttr.in/lichtenstein_sachsen?format=+%c+%t+%w+%P+%h+%m"}
${font Noto Sans Mono UI:size=10}${texeci 600 curl -s "wttr.in/lichtenstein_sachsen?format=+%c+%t+%w+%P+%h+%m"}
Last edited by clusterF (2020-01-16 02:39:35)
Offline
Hi Unklar if i use below commands in conky i get all the unicode characters display properly.
${font DejaVu Sans:size=10}${texeci 600 curl -s "wttr.in/lichtenstein_sachsen?format=+%c+%t+%w+%P+%h+%m"}
${font Noto Sans Mono UI:size=10}${texeci 600 curl -s "wttr.in/lichtenstein_sachsen?format=+%c+%t+%w+%P+%h+%m"}
It works well too for me when I use:
${font FreeMono Standard:size=10}${texeci 600 curl -s "wttr.in/lichtenstein_sachsen?format=+%c+%t+%w+%P+%h+%m"}
naik --greetz
"Kaum macht [Mensch]* es richtig, funktioniert es sofort!"
BL-Kitchen Codeberg
Offline
@clusterF,
thanks for the tip with
override_utf8_locale yes
once off -and on again (false - true) has done the job.
But at the moment I only started with
DejaVu Sans
and not with (!)
DejaVu Sans Mono
Success. So, this is another mistake on my part.
Offline
^ must be something to do with how conky handles unicode characters, i have no issues piping them with xsetroot to say dwm bar or lemonbar.
Offline
Hello
Théo since a few days this script don't work.
The script found Artiste.txt but the miniaturefile is empty .
Have google changing anything .
here script
#!/bin/bash #créé par loutch #2018-12-27 modifier par TeoBigusGeekus et loutch pour radiotray-ng et conky 1.10 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep artist |sed 's/^.*" \: "//' |sed 's/",.*$//' > artiste_titre.txt qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep title |sed 's/^.*" \: "//' |sed 's/",.*$//' | cut -c1-11 >> artiste_titre.txt titre=$(cat artiste_titre.txt) lynx --source -useragent="Googlebot-Image/1.0" "www.google.fr/search?q=$titre\&tbm=isch" | perl -pe 's!.*?<img .*?src="([^"]*)".*!$1!' > lienMiniaturefile sed -i 's/^.* http\:/http\:/' lienMiniaturefile sed -i '/gstatic/!d' lienMiniaturefile lienMiniature=$(cat lienMiniaturefile) lynx -dump "$lienMiniature" > miniatureGoogleImage convert miniatureGoogleImage pochette.png
Tank's for helping
It gives me
Service 'com.github.radiotray_ng' does not exist.
as an error message.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Hello Théo
At me conky & radiotray are working
here konsole
loutch@loutch-Strix-GL704GM-GL704GM:~$ conky -c ~/.conky/radiotrayng/l12
conky: desktop window (c00003) is subwindow of root window (28a)
conky: window type - normal
conky: drawing to created window (0x6600002)
conky: drawing to double buffer
conky: forked to background, pid is 27304
loutch@loutch-Strix-GL704GM-GL704GM:~$
Attention : La chaîne User-Agent ne contient ni « Lynx » ni « L_y_n_x »!
convert-im6.q16: no decode delegate for this image format `' @ error/constitute.c/ReadImage/504.
convert-im6.q16: no images defined `pochette.png' @ error/convert.c/ConvertImageCommand/3258.
Attention : La chaîne User-Agent ne contient ni « Lynx » ni « L_y_n_x »!
convert-im6.q16: no decode delegate for this image format `' @ error/constitute.c/ReadImage/504.
convert-im6.q16: no images defined `pochette.png' @ error/convert.c/ConvertImageCommand/3258.
Attention : La chaîne User-Agent ne contient ni « Lynx » ni « L_y_n_x »!
convert-im6.q16: no decode delegate for this image format `' @ error/constitute.c/ReadImage/504.
........
here conky
i have the artist & title from song , & here the artist.txt same as conky
Alison Moyet
Is this lov
the script don't working for sherching the image . i think google search image have changed anything .
Last edited by loutch (2020-01-21 17:06:25)
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
So I was checking out some things and look what I found....
I think that oneliner dead centre below the others will become a "feature" sometime soon.
A very old conky that has 5 "talktime" bash scripts in ~/bin so they are in my path.
# pkill -xf "conky -c /media/5/Conky/S11_talktime_3.conky" &
### Begin Window Settings ##################################################
own_window yes
own_window_type normal
own_window_transparent no #yes
own_window_hints undecorated,below,skip_taskbar,skip_pager #,sticky
own_window_colour 000000
own_window_class Conky
own_window_title Talktime 3
### ARGB can be used for real transparency
own_window_argb_visual yes # Options: yes or no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
own_window_argb_value 0
minimum_size 1900 500 # w|h
maximum_width 1900
gap_x 0 # l|r
gap_y 5 # u|d
alignment tm
#################################################### End Window Settings ###
### Font Settings ##########################################################
use_xft yes
xftfont monofur:bold:size=12
# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1.0
# Force UTF8? requires XFT ###
override_utf8_locale yes
uppercase no
###################################################### End Font Settings ###
### Color Settings #########################################################
draw_shades yes
default_shade_color 000000 #FFDEAD
draw_outline no
default_outline_color 000000
default_color FFDEAD #255 222 173 NavajoWhite
color0 C0C0C0 # Silver
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 FFA07A #LightSalmon
##################################################### End Color Settings ###
### Borders Section ########################################################
draw_borders no #yes
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 3
border_outer_margin 0
# border width
border_width 2
# graph borders
draw_graph_borders yes #no
#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
# Subtract (file slystem) buffers from used memory?
no_buffers yes
# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable th0e image cache.
imlib_cache_size 0
# Use the Xdbe extension? (eliminates flicker)
# It is highly reco${color}mmended to use own window with this one
# so double buffer won't be so big.
double_buffer yes
############################################## End Miscellaneous Section ###
update_interval 1
TEXT
24 hour time: \
${execpi 15 talktime_24.sh} on \
${time %A} the \
${if_match ${time %d} == 01}${time %dst} ${else}\
${if_match ${time %d} == 21}${time %dst} ${else}\
${if_match ${time %d} == 31}${time %dst} ${else}\
${if_match ${time %d} == 02}${time %dnd} ${else}\
${if_match ${time %d} == 22}${time %dnd} ${else}\
${if_match ${time %d} == 03}${time %drd} ${else}\
${if_match ${time %d} == 23}${time %drd} ${else}${time %dth} \
${endif}${endif}${endif}${endif}${endif}${endif}${endif}\
${time day of %B %Y}\
${alignr}Flight Time: ${uptime_short}${font}
12 hour time: \
${execpi 15 talktime.sh} on \
${time %A} the \
${if_match ${time %d} == 01}${time %dst} ${else}\
${if_match ${time %d} == 21}${time %dst} ${else}\
${if_match ${time %d} == 31}${time %dst} ${else}\
${if_match ${time %d} == 02}${time %dnd} ${else}\
${if_match ${time %d} == 22}${time %dnd} ${else}\
${if_match ${time %d} == 03}${time %drd} ${else}\
${if_match ${time %d} == 23}${time %drd} ${else}${time %dth} \
${endif}${endif}${endif}${endif}${endif}${endif}${endif}\
${time day of %B %Y}\
${alignr}French: ${execpi 15 talktime_fr.sh}
UTC time: \
${execpi 15 talktime_24z.sh} on \
${time %A} the \
${if_match ${time %d} == 1}${time %dst} ${else}\
${if_match ${time %d} == 21}${time %dst} ${else}\
${if_match ${time %d} == 31}${time %dst} ${else}\
${if_match ${time %d} == 2}${time %dnd} ${else}\
${if_match ${time %d} == 22}${time %dnd} ${else}\
${if_match ${time %d} == 3}${time %drd} ${else}\
${if_match ${time %d} == 23}${time %drd} ${else}${time %dth} \
${endif}${endif}${endif}${endif}${endif}${endif}${endif}\
${time day of %B %Y}\
${alignr}Spanish: ${execpi 15 talktime_es.sh}
${alignc}${execpi 15 talktime_24.sh} § ${time %A} the \
${if_match ${time %d} == 01}${time %dst} ${else}\
${if_match ${time %d} == 21}${time %dst} ${else}\
${if_match ${time %d} == 31}${time %dst} ${else}\
${if_match ${time %d} == 02}${time %dnd} ${else}\
${if_match ${time %d} == 22}${time %dnd} ${else}\
${if_match ${time %d} == 03}${time %drd} ${else}\
${if_match ${time %d} == 23}${time %drd} ${else}${time %dth} \
${endif}${endif}${endif}${endif}${endif}${endif}${endif}\
${time day of %B %Y} § ${execpi 15 talktime_es.sh}
3 scripts or tweak your own ....
talktime.sh
#!/bin/sh
# DC's english time 07/07/09
# Tweaked by Sector11
#
# find current time
t_hr=$(date +%-I)
#echo $t_hr
t_min=$(date +%-M)
#echo $t_min
#t_hr=9 #tester
#t_min=17 #tester
# is it time to one ( the only wierd case)
if [ $t_hr -eq 12 ] && [ $t_min -gt 32 ] ;then
# what minute is it
case $t_min in
33|34|35|36|37)
echo twenty-five to one ;;
38|39|40|41|42)
echo twenty to one ;;
43|44|45|46|47)
echo quarter to one ;;
48|49|50|51|52)
echo ten to one ;;
53|54|55|56|57|58|59)
echo five to one ;;
58|59)
echo nearly one "o'clock"
esac
exit
fi
#echo $t_hr
#add one hour for the "to" hour
if [ $t_min -gt 32 ] ; then
t_hr=$(($t_hr + 1)) # override t_hr
fi
#echo $t_hr
# find out what hour it is and change into text
case $t_hr in
0)
t_hr_text=midnight ;;
1)
t_hr_text=one ;;
2)
t_hr_text=two ;;
3)
t_hr_text=three ;;
4)
t_hr_text=four ;;
5)
t_hr_text=five ;;
6)
t_hr_text=six ;;
7)
t_hr_text=seven ;;
8)
t_hr_text=eight ;;
9)
t_hr_text=nine ;;
10)
t_hr_text=ten ;;
11)
t_hr_text=eleven ;;
12)
t_hr_text=twelve ;;
esac
# what minute is it
case $t_min in
0|1|2)
echo $t_hr_text "o'clock";;
3|4|5|6|7)
echo five past $t_hr_text ;;
8|9|10|11|12)
echo ten past $t_hr_text ;;
13|14|15|16|17)
echo quarter past $t_hr_text ;;
18|19|20|21|22)
echo twenty past $t_hr_text ;;
23|24|25|26|27)
echo twenty-five past $t_hr_text ;;
28|29|30|31|32)
echo half past $t_hr_text ;;
33|34|35|36|37)
echo twenty-five to $t_hr_text ;;
38|39|40|41|42)
echo twenty to $t_hr_text ;;
43|44|45|46|47)
echo quarter to $t_hr_text ;;
48|49|50|51|52)
echo ten to $t_hr_text ;;
53|54|55|56|57)
echo five to $t_hr_text ;;
58|59)
echo nearly $t_hr_text "o'clock";;
esac
talktime_es.sh
#!/bin/sh
# DC's english time 07/07/09
# Tweaked by Sector11
# find current time
t_hr=$(date +%-I)
#echo $t_hr
t_min=$(date +%-M)
#echo $t_min
#t_hr=9 #tester
#t_min=17 #tester
# is it time to ONE ( the only wierd case)
if [ $t_hr -eq 12 ] && [ $t_min -gt 32 ] ;then
# what minute is it
case $t_min in
33|34|35|36|37)
echo Uno menos veinticinco ;;
38|39|40|41|42)
echo Uno menos veinte ;;
43|44|45|46|47)
echo Uno menos cuarto ;;
48|49|50|51|52)
echo Uno menos diez ;;
53|54|55|56|57|58|59)
echo Uno menos cinco ;;
58|59)
echo Casi uno
esac
exit
fi
#echo $t_hr
#add one hour for the "to" hour
if [ $t_min -gt 32 ] ; then
t_hr=$(($t_hr + 1)) # override t_hr
fi
#echo $t_hr
# find out what hour it is and change into text
case $t_hr in
0)
t_hr_text=medianoche ;;
1)
t_hr_text=una ;;
2)
t_hr_text=dos ;;
3)
t_hr_text=tres ;;
4)
t_hr_text=cuatro ;;
5)
t_hr_text=cinco ;;
6)
t_hr_text=seiz ;;
7)
t_hr_text=siete ;;
8)
t_hr_text=ocho ;;
9)
t_hr_text=nueve ;;
10)
t_hr_text=diez ;;
11)
t_hr_text=once ;;
12)
t_hr_text=doce ;;
esac
# what minute is it
case $t_min in
0|1|2)
echo $t_hr_text ;;
3|4|5|6|7)
echo $t_hr_text y cinco ;;
8|9|10|11|12)
echo $t_hr_text y diez ;;
13|14|15|16|17)
echo $t_hr_text y cuarto ;;
18|19|20|21|22)
echo $t_hr_text y veinte ;;
23|24|25|26|27)
echo $t_hr_text y veinticinco;;
28|29|30|31|32)
echo $t_hr_text y media ;;
33|34|35|36|37)
echo $t_hr_text menos veinticinco ;;
38|39|40|41|42)
echo $t_hr_text menos veinte ;;
43|44|45|46|47)
echo $t_hr_text menos cuarto ;;
48|49|50|51|52)
echo $t_hr_text menos diez ;;
53|54|55|56|57)
echo $t_hr_text menos cinco ;;
58|59)
echo casi $t_hr_text ;;
esac
and talktime_24.sh
#!/bin/sh
# DC's english time 07/07/09
# Tweaked by Sector11
#
# find current time
t_hr=$(date +%-H)
#echo $t_hr
t_min=$(date +%-M)
#echo $t_min
#t_hr=9 #tester
#t_min=17 #tester
# is it time to ONE ( the only wierd case)
#if [ $t_hr -eq 12 ] && [ $t_min -gt 32 ] ;then
# # what minute is it
# case $t_min in
# 33|34|35|36|37)
# echo une moins vingt-cinq ;;
# 38|39|40|41|42)
# echo une moins vingt ;;
# 43|44|45|46|47)
# echo une moins cuarto ;;
# 48|49|50|51|52)
# echo twelve fifty ;;
# 53|54|55|56|57)
# echo twelve fifty-five ;;
# 58|59)
# echo twelve hundred
# esac
#exit
#fi
#echo $t_hr
#add one hour for the "to" hour
#if [ $t_min -gt 32 ] ; then
#t_hr=$(($t_hr + 1)) # override t_hr
#fi
#echo $t_hr
# find out what hour it is and change into text
case $t_hr in
0)
t_hr_text=zero ;;
1)
t_hr_text=zero-one ;;
2)
t_hr_text=zero-two ;;
3)
t_hr_text=zero-three ;;
4)
t_hr_text=zero-four ;;
5)
t_hr_text=zero-five ;;
6)
t_hr_text=zero-six ;;
7)
t_hr_text=zero-seven ;;
8)
t_hr_text=zero-eight ;;
9)
t_hr_text=zero-nine ;;
10)
t_hr_text=ten ;;
11)
t_hr_text=eleven ;;
12)
t_hr_text=twelve ;;
13)
t_hr_text=thirteen ;;
14)
t_hr_text=fourteen ;;
15)
t_hr_text=fifteen ;;
16)
t_hr_text=sixteen ;;
17)
t_hr_text=seventeen ;;
18)
t_hr_text=eighteen ;;
19)
t_hr_text=nineteen ;;
20)
t_hr_text=twenty ;;
21)
t_hr_text=twenty-one ;;
22)
t_hr_text=twenty-two ;;
23)
t_hr_text=twenty-three ;;
esac
# what minute is it
case $t_min in
0|1|2)
echo $t_hr_text-hundred ;;
3|4|5|6|7)
echo $t_hr_text-zero-five ;;
8|9|10|11|12)
echo $t_hr_text-ten ;;
13|14|15|16|17)
echo $t_hr_text-fifteen ;;
18|19|20|21|22)
echo $t_hr_text-twenty ;;
23|24|25|26|27)
echo $t_hr_text-twenty-five ;;
28|29|30|31|32)
echo $t_hr_text-thirty ;;
33|34|35|36|37)
echo $t_hr_text-thirty-five ;;
38|39|40|41|42)
echo $t_hr_text-forty ;;
43|44|45|46|47)
echo $t_hr_text-forty-five ;;
48|49|50|51|52)
echo $t_hr_text-fifty ;;
53|54|55|56|57)
echo $t_hr_text-fifty-five ;;
58|59)
echo $t_hr_text-hundred ;;
esac
Enjoy.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
You have treasures in your hard-drive folders, Thank-you my friend I'll check that
Offline
Yea, there is a guy here that calls himself PackRat, but I am the conky packrat.
I'll bet I have more conkys than a hay stack has straws of hay
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
brontosaurusrex asked for links to this conky:
The conky (version 1.9)
S11_MM_YearClock.conky
# pkill -xf "conky -c /media/5/Conky/S11_MM_YearClock.conky" &
own_window yes
own_window_type normal
own_window_transparent yes
own_window_colour yellow
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_class Conky
own_window_title YearClock.lua
double_buffer yes
minimum_size 600 600
maximum_width 600
gap_x 0 ## ← →
gap_y 0 ## ↑ ↓
alignment mm
use_xft yes
xftfont Monofur:size=14
xftalpha 1.0
override_utf8_locale yes
uppercase no
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
default_color DCDCDC #Gainsboro
color0 98FB98 #PaleGreen
color1 778899 #LightSlateGray
color2 FFD700 #Gold
color3 B0E0E6 #PowderBlue
color4 F4A460 #SandyBrown
color5 DEB887 #BurlyWood
color6 00BFFF #DeepSkyBlue
color7 5F9EA0 #CadetBlue
color8 FFA500 #Orange
color9 FF4500 #OrangeRed
draw_borders no
stippled_borders 0
border_inner_margin 5
border_outer_margin 0
border_width 0
draw_graph_borders yes
background yes
use_spacer none
text_buffer_size 256
no_buffers yes
short_units yes
pad_percents 2
imlib_cache_size 0
### yearclock.lua ### by mrpeachy ###########################################
lua_load /media/5/Conky/LUA/yearclock.lua
lua_draw_hook_pre draw_clock
#lua_draw_hook_post draw_clock
#
### clock_easysid_conkyrc.lua ##############################################
lua_load /media/5/Conky/LUA/clock_easysid-n-yearclock.lua
lua_draw_hook_post es_clock
####################################################### End LUA Settings ###
update_interval 1
TEXT
/media/5/Conky/LUA/yearclock.lua
The colourful circles in the centre
--yearclock by mrpeachy
require 'cairo'
function conky_draw_clock()
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)
-- not using CPU do not need the following two lines nor the second last 'end'
-- local updates=tonumber(conky_parse('${updates}'))
-- if updates > 5 then
--year clock
year=os.date("%Y") -- ask mrpeachy -- Why %G and not %Y?
t1 = os.time( { year=year,month=03,day=01,hour=00,min=0,sec=0} );
t2 = os.time( { year=year,month=02,day=01,hour=00,min=0,sec=0} );
feb=(os.difftime(t1,t2))/(24*60*60)
yeardays=31+feb+31+30+31+30+31+31+30+31+30+31
monthdays = { 31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
yearsec=yeardays*24*60*60
rad=60
across=300
down=300
yrlw=1 -- yr (months) circle - lw = line width
circrad=rad
circx=across
circy=down
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.00,0.00,0.00,1) -- circle colour: Black
cairo_set_line_width(cr, yrlw)
cairo_stroke (cr)
--hours
hrs=os.date("%H")
--minutes
min=os.date("%M")
--seconds
sec=os.date("%S")
--day of month
day=os.date("%e")
--month-1
month=os.date("%m")
--position in the year indicator
mdays=0
for i=1,(month-1) do
mdays=mdays+monthdays[i]
end
yrsecs=(mdays*24*60*60)+(day*24*60*60)+(hrs*60*60)+(min*60)+(sec)
cairo_translate (cr, across, down)
outer1=rad
text_arc=((2*math.pi/(yearsec))*yrsecs)
yrx=0+outer1*(math.sin(text_arc))
yry=0-outer1*(math.cos(text_arc))
circrad=6 --6
circx=yrx
circy=yry
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.00,0.00,0.00,1) -- dot color Black
cairo_fill (cr)
cairo_translate (cr, -across, -down)
--day of the month indicator
rad=50
across=yrx+across
down=yry+down
mnlw=1
circrad=rad
circx=across
circy=down
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.47,0.53,0.60,1) -- circle colour: LightSlateGray
cairo_set_line_width(cr, mnlw)
cairo_stroke (cr)
mndays=(monthdays[tonumber(month)])*24*60*60
mnday=(day*24*60*60)+(hrs*60*60)+(min*60)+(sec)
cairo_translate (cr, across, down)
outer1=rad
text_arc=((2*math.pi/(mndays))*mnday)
mnx=0+outer1*(math.sin(text_arc))
mny=0-outer1*(math.cos(text_arc))
circrad=6 --5
circx=mnx
circy=mny
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.47,0.53,0.60,1) -- dot colour: LightSlateGray
cairo_fill (cr)
cairo_translate (cr, -across, -down)
--hours of the day
rad=40
across=mnx+across
down=mny+down
dylw=1
circrad=rad
circx=across
circy=down
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.86,0.86,0.86,1) -- circle colour: Gainsboro
cairo_set_line_width(cr, dylw)
cairo_stroke (cr)
hours=24*60*60
hour=(hrs*60*60)+(min*60)+(sec)
cairo_translate (cr, across, down)
outer1=rad
text_arc=((2*math.pi/(hours))*hour)
dyx=0+outer1*(math.sin(text_arc))
dyy=0-outer1*(math.cos(text_arc))
circrad=6 --4
circx=dyx
circy=dyy
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.86,0.86,0.86,1) -- dot colour: Gainsboro
cairo_fill (cr)
cairo_translate (cr, -across, -down)
--minutes of hour indicator
rad=30
across=dyx+across
down=dyy+down
hrlw=1
circrad=rad
circx=across
circy=down
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.00,0.75,1.00,1) -- circle colour: DeepSkyBlue
cairo_set_line_width(cr, hrlw)
cairo_stroke (cr)
minutes=60*60
minute=(min*60)+(sec)
cairo_translate (cr, across, down)
outer1=rad
text_arc=((2*math.pi/(minutes))*minute)
hrx=0+outer1*(math.sin(text_arc))
hry=0-outer1*(math.cos(text_arc))
circrad=6 --3
circx=hrx
circy=hry
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.00,0.75,1.00,1) -- circle colour: DeepSkyBlue
cairo_fill (cr)
cairo_translate (cr, -across, -down)
--seconds of minute indicator
rad=20
across=hrx+across
down=hry+down
seclw=1
circrad=rad
circx=across
circy=down
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,1.00,0.27,0.00,1) -- circle colour: OrangeRed
cairo_set_line_width(cr, seclw)
cairo_stroke (cr)
seconds=60
second=(sec)
cairo_translate (cr, across, down)
outer1=rad
text_arc=((2*math.pi/(seconds))*second)
scx=0+outer1*(math.sin(text_arc))
scy=0-outer1*(math.cos(text_arc))
circrad=6 --2
circx=scx
circy=scy
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,1.00,0.27,0.00,1) -- circle colour: OrangeRed
cairo_fill (cr)
cairo_translate (cr, -across, -down)
-- end
end
/media/5/Conky/LUA/clock_easysid-n-yearclock.lua
--[[ Clock for conky
written by easysid
Thu 09 May 2013 19:20:16 IST
--]]
require 'cairo'
function conky_es_clock()
clock_table ={
{
-- Draw the seconds
-- x = l|r y = u|d
arg = "time %S",
xc = 300, --200,
yc = 320, --150,
r = 290, --radius
font_face = "New X Digital tfb Hollow",
top_font_size = 20, -- font size for display
min_font_size = 4, -- min font for trail
max_font_size = 12, -- max font fot trail
max_alpha = .6, -- max alpha for trail
trail = 60, -- size of trail
main_color = {0xFFDEAD,1}, --color of numbers
trail_color = {0xC1C1C1,1} --color of trail.
},
{
-- Draw the Minutes
arg = "time %M",
xc = 300, --200,
yc = 320, --150,
r = 220, --radius
font_face = "New X Digital tfb Hollow",
top_font_size = 20, -- font size for display
min_font_size = 4, -- min font for trail
max_font_size = 12, -- max font fot trail
max_alpha = .6, -- max alpha for trail
trail = 60, -- size of trail
main_color = {0xFFDEAD,1}, --color of numbers
trail_color = {0xC1C1C1,1} --color of trail
},
{
-- Draw the Hours
arg = "time %H",
xc = 300, --200,
yc = 320, --150,
r = 150, --radius
font_face = "New X Digital tfb Hollow",
top_font_size = 30, -- font size for display
min_font_size = 4, -- min font for trail
max_font_size = 20, -- max font fot trail
max_alpha = .6, -- max alpha for trail
trail = 60, -- size of trail
main_color = {0xFFDEAD,1}, --color of numbers
trail_color = {0xC1C1C1,1} --color of trail
},
}
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)
local updates=tonumber(conky_parse('${updates}'))
if updates>3 then
for i in ipairs(clock_table) do
draw_clock(cr, clock_table[i])
end
end
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end -- end main function
function draw_clock(cr, t)
cairo_select_font_face (cr, t.font_face,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_BOLD)
local value = tonumber(conky_parse(string.format("${%s}",t.arg)))
local first = value - t.trail
--[[ if t.arg == 'time %H' then -- special case for the hour digit
cairo_set_source_rgba (cr, rgba_to_r_g_b_a(t.main_color))
cairo_set_font_size (cr, t.top_font_size)
cairo_move_to(cr, t.xc - t.top_font_size/3, t.yc+t.top_font_size/4) -- minor adjustment. Tweak here for your setting
cairo_show_text(cr, value)
else --]]
for i = first, value do
local theta = i*2*math.pi/60 -math.pi/2 -- calculate the angle
local alpha = t.max_alpha*(i-first)/(value-first) -- map alpha value to [0, max_alpha]
local font_size = (t.max_font_size-t.min_font_size)*(i-first)/(value-first) + t.min_font_size -- map font size similar to alpha
t.trail_color[2] = alpha
cairo_set_source_rgba (cr, rgba_to_r_g_b_a(t.trail_color))
cairo_set_font_size (cr, font_size)
if i == value then -- if we have the main value
cairo_set_source_rgba (cr, rgba_to_r_g_b_a(t.main_color)) -- switch color
cairo_set_font_size (cr, t.top_font_size) -- switch font
end -- end if
local k = i
if k < 0 then k = 60 + i end -- adjust seconds
cairo_move_to(cr, t.xc + t.r*math.cos(theta), t.yc + t.r*math.sin(theta))
cairo_show_text(cr, k)
end -- end for
--[[ end --end if ------------- the if for special case for hours --]]
end -- end draw_clock
function rgba_to_r_g_b_a(tcolor)
local color,alpha=tcolor[1],tcolor[2]
return ((color / 0x10000) % 0x100) / 255.,
((color / 0x100) % 0x100) / 255., (color % 0x100) / 255., alpha
end --end rgba
EDIT: Adding:
/media/5/Conky/SSC/ssc-MM_YearClock.sh
#!/bin/bash
## Original idea by: GrouchyGaijin
## This idea by: Stinkeye - Jan 2013
## With another tweak by: arclance
## Final tweak by: Sector11
## click to start, click to stop
##if pgrep -f "conky -q -c /media/5/Conky/S11_Dates.conky"
##then
## pkill -xf "conky -q -c /media/5/Conky/S11_Dates.conky"
##else
## gnome-terminal -e "conky -q -c /media/5/Conky/S11_Dates.conky"
##fi
## not running in a terminal
## remove: gnome-terminal -e
## Tweaked
#if pgrep -f "conky -q -c $1"
#then
# pkill -xf "conky -q -c $1"
#else
# conky -q -c "$1"
#fi
if pgrep -f "conky -q -c /media/5/Conky/S11_MM_YearClock.conky"
then
pkill -xf "conky -q -c /media/5/Conky/S11_MM_YearClock.conky"
else
# wmctrl -s 2 && conky -q -c "/media/5/Conky/S11_MM_YearClock.conky"
conky -q -c "/media/5/Conky/S11_MM_YearClock.conky"
fi
Last edited by Sector11 (2020-01-29 23:23:23)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Offline
A hello to @Sector11 with the question:
do you know a trick to move the graphics of the font "Poky" in their placement also up or down?
This is the font:
...
${goto 65}Schriftart "Poky"
${goto 65}${font Poky:size=20}P${font}${goto 120}P = CPU
${goto 65}${font Poky:size=20}r${font}${goto 120}r = Information
${goto 65}${font Poky:size=20}T${font}${goto 120}T = BAT
${goto 65}${font Poky:size=20}a${font}${goto 120}a = SYS
${goto 65}${font Poky:size=20}w${font}${goto 120}w = NET
${goto 65}${font Poky:size=20}i${font}${goto 120}i = dl (?)
${goto 65}${font Poky:size=20}e${font}${goto 120}e =
${goto 65}${font Poky:size=20}y${font}${goto 120}y = HDD
...
Similar to images does not work here.
Background of my question is this Conky
https://www.deviantart.com/jetsex4/art/ … -530179917
My solution for the arrangement of the font graphics voffset (from original)
TEXT
# îñíîâíàÿ èíôîðìàöèÿ, âûâîäèìàÿ íà ýêðàí, íàõîäèòñÿ â ôàéëå Theme-component2.
${voffset 40}${goto 275}${color}P
${voffset -25}${goto 110}${color}y
${voffset -10} ${goto 30}${color}a
#${image /home/jetsex/.conky/009.jpg -p 535,36 -s 351,193}
Offline
Yea the problem with ${voffset} is you end up with a conky window bugger that what you see.
With conky v1.9 it was not as much a problem as it was with v1.8 or (I'm guessing here) v1.10+
With conky v1.8 is was a visual problem Goto/offset/voffset
With conky v1.10+ I would think it would be a problem as you cannot click on your conky to get at the menu. ie: the conky becomes "dead space" - unless something changed.
Now I have to go out for an hour or so and install poky because I think there is a way to do this that is not on CPS.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Thanks for your answer
Poky is contained here in helium, as well as in lithium.
You do not need to install it.
Offline
Thanks for your answer
![]()
Poky is contained here in helium, as well as in lithium.
You do not need to install it.
Hmmmmm not here ... must get:
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
I have this Poky font and I don't remember installing it separately.
My big Font's directory does not have a Poky archive either.
I look there first. Would it have to be part of another archive ?
With conky v1.10+ I would think it would be a problem as you cannot click on your conky to get at the menu. ie: the conky becomes "dead space" - unless something changed.
I don't know when this was changed, but you can run the right-click menu on both Conky windows in the meantime.
Edit: Would that help you?
https://workupload.com/file/e92HeDaU
Last edited by unklar (2020-02-03 15:26:28)
Offline
@ unklar
OHHHH That's nice - clickable conkys ... does the new conky have the "pre_exec" command?
I have already found the font and installed it and run some tests.
I think you are going to have to use ${voffset} and it's not as simple as just using one value either
Using this "Poky" font will turn a conky into a "tweak it til your get it just right" conky
First I took your lines and got rid of the second goto and added an arrow ( ← ) and added voffsets to get things centred as best I could - one at a time - changing where needed.
Then this line:
${font Poky:size=90}PwTe${font}
to make those 4 big enough to measure. And moved the rulers, using arrow keys, together ...
Notice how the 50% lines do not match up.
So lots of work ....
Now if you are going to use them in a "list" like shown above notice how they "bunch up close" if the "Poky" character is a large one. This will space thing out nicely
I have always found changing font sizes better than "voffset" - just a personal choice since "voffset" is required anyway
... My default font is
xftfont Fira Mono:bold:size=10
- took the bold out and changed the size of the font just for spacing purposes. Works well.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline