You are not logged in.

#1251 2020-01-16 13:19:34

unklar
Member
Registered: 2015-10-31
Posts: 1,095

Re: Show us your conky

@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.   wink

chubin_DejaVu.png

Offline

#1252 2020-01-16 13:31:49

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: Show us your conky

^ 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

#1253 2020-01-21 12:06:42

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,229

Re: Show us your conky

loutch wrote:

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

#1254 2020-01-21 17:05:44

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

Re: Show us your conky

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

1579629187.png

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 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Online

#1255 2020-01-27 18:07:42

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,053

Re: Show us your conky

So I was checking out some things and look what I found....
2020-01-27-144537-S11.jpg
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.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.

Offline

#1256 2020-01-28 15:01:45

ragamatrix
Member
Registered: 2015-10-04
Posts: 423

Re: Show us your conky

You have treasures in your hard-drive folders, Thank-you my friend I'll check that wink

Offline

#1257 2020-01-28 23:24:57

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,053

Re: Show us your conky

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  big_smile


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.

Offline

#1258 2020-01-29 23:12:47

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,053

Re: Show us your conky

brontosaurusrex asked for links to this conky:
2020-01-29-200349-S11.jpg

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)


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.

Offline

#1259 2020-01-30 09:18:28

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,020
Website

Re: Show us your conky

Thanks.

Online

#1260 2020-02-03 09:40:08

unklar
Member
Registered: 2015-10-31
Posts: 1,095

Re: Show us your conky

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: 2020-02-01-20-07-17_scrot.th.png

...
${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 2020-02-02-15-37-58_scrot.png
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}

wink

Offline

#1261 2020-02-03 12:53:25

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,053

Re: Show us your conky

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.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.

Offline

#1262 2020-02-03 13:40:39

unklar
Member
Registered: 2015-10-31
Posts: 1,095

Re: Show us your conky

Thanks for your answer  smile

Poky is contained here in helium, as well as in lithium.
You do not need to install it.

Offline

#1263 2020-02-03 14:21:48

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,053

Re: Show us your conky

unklar wrote:

Thanks for your answer  smile

Poky is contained here in helium, as well as in lithium.
You do not need to install it.

Hmmmmm not here ... must get:
2020-02-03-111631-S11.jpg


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.

Offline

#1264 2020-02-03 14:47:53

unklar
Member
Registered: 2015-10-31
Posts: 1,095

Re: Show us your conky

I have this Poky font and I don't remember installing it separately.   smile
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 ?

Sector11 wrote:

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.
rechtsKlick.th.png

Edit: Would that help you?
https://workupload.com/file/e92HeDaU

Last edited by unklar (2020-02-03 15:26:28)

Offline

#1265 2020-02-03 16:44:23

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,053

Re: Show us your conky

@ 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.
2020-02-03-125543-S11.jpg

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 ...
2020-02-03-125923-S11.jpg
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
2020-02-03-133634-S11.jpg
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.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.

Offline

#1266 2020-02-03 18:44:45

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,053

Re: Show us your conky

Just for fun ....
2020-02-03-154143-S11.jpg

${goto 65}Schriftart "Poky"
${font Poky:size=15}
 1 2 3 4 5
 6 7 8 9 0

 a b c d e f
 g h i j k l
 m n o p q r
 s t u v w x
 y z

 A B C D E F
 G H I J K L
 M N O P Q R
 S T U V W X
 Y Z${font}

The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.

Offline

#1267 2020-02-03 19:09:39

unklar
Member
Registered: 2015-10-31
Posts: 1,095

Re: Show us your conky

Sector11 wrote:

OHHHH That's nice - clickable conkys ... does the new conky have the "pre_exec" command?

Of course he doesn't have the order!   devil


Thank you, my friend, for your logical and understandable
explanation. Convincing - and, stored. 
I like "monofur", I got it from you  wink

Sector11 wrote:

Just for fun ....

Super fun (and, instructive for the conky fans)   big_smile


PS: A wonderful snow landscape. Is it lying with you? But after Adam Riese you should have summer.

It hasn't even snowed here this winter. The children are sad.
I ask myself, what else should this become !

Offline

#1268 2020-02-03 20:26:41

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,053

Re: Show us your conky

unklar wrote:
Sector11 wrote:

OHHHH That's nice - clickable conkys ... does the new conky have the "pre_exec" command?

Of course he doesn't have the order!   devil

GRRRR Oh well maybe some day.  big_smile

Thank you, my friend, for your logical and understandable
explanation. Convincing - and, stored. 
I like "monofur", I got it from you  wink

Sector11 wrote:

Just for fun ....

Super fun (and, instructive for the conky fans)   big_smile

You're welcome and you're welcome

PS: A wonderful snow landscape. Is it lying with you? But after Adam Riese you should have summer.

It hasn't even snowed here this winter. The children are sad.
I ask myself, what else should this become !

No no snow .. it is summer at the moment 31° but the heat Index is 34° so my wife put this wallpaper on so we can "think cold"  big_smile


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.

Offline

#1269 2020-02-04 08:26:34

unklar
Member
Registered: 2015-10-31
Posts: 1,095

Re: Show us your conky

Sector11 wrote:

No no snow .. it is summer at the moment 31° but the heat Index is 34° so my wife put this wallpaper on so we can "think cold"  big_smile

In the truest sense of the word, a cool idea.
I love smart women.   smile

Offline

#1270 2020-02-04 14:20:23

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: Show us your conky

Is there any way to get conky to show current desktop you are working. Im using a panel conky in cwm window manager and had the idea maybe i could show the current desktop im working in plus maybe have the ability to show when switched to another desktop similar to tint2 or maybe dwm statusbar? Im thinking maybe a script via xdotool or xprop might be in order.

edit:

can do

wmctrl -d | grep "*" | awk '{print $1}'

which gives me the number of the desktop im working in that being numero uno "1". How to implement that in my conky though?

conky.config = {
out_to_x = true,
own_window = true,
own_window_colour = '4a4e4d',
own_window_type = 'override',
own_window_transparent = false,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
double_buffer = true,
own_window_argb_value = 200,
minimum_width = 1366, minimum_height = 0,--# width, height
maximum_width = 1366,--# width, usually a good idea to be '=' or '>' minimum width
gap_x = 0,-- left-right
gap_y = 3,-- up-down
alignment = 'tl',
use_xft = true,
font = 'Terminus:style=Bold:size=12',
xftalpha = 1,
override_utf8_locale = true,
draw_shades = false,
draw_outline = false,-- amplifies text if yes
default_outline_color = 'black',
uppercase = false,
default_shade_color = 'grey',
default_outline_color = 'black',
default_color = '#DCDCDC',
color0 = '#8FBC8F',
color1 = '#778899',
color2 = '#FF8C00',
color3 = '#7FFF00',
color4 = '#FFA07A',
color5 = '#FFDEAD',
color6 = '#00BFFF',
color7 = '#0ed839',
color8 = '#e6e6ea',
color9 = '#FFFF00',-
draw_borders = false,
stippled_borders = 0,
border_inner_margin = 2,
border_outer_margin = 1,
border_width = 0,
draw_graph_borders = false,
default_graph_width = 15, default_graph_height = 40,
use_spacer = 'left',
text_buffer_size = 2048,
no_buffers = true,
short_units = true,
pad_percents =1,
update_interval = 1,
};
conky.text = [[
${color8} CPU:${color #3a8ded}${cpu cpu0}%${color8}   \
RAM:${color #3a8ded}${mem}/${memmax}${color8}   \
DISC:${color #3a8ded}${fs_used_perc /}%${color8}   \
D/L:${color #3a8ded}${totaldown wlp7s0b1}${color8}   \
U/L:${color #3a8ded}${totalup wlp7s0b1}${color8}   \
NET:${color #3a8ded}${gw_iface}${color8}   \
CPU°: \
0${color #3a8ded}${hwmon 1 temp 2}°${color8} \
1${color #3a8ded}${hwmon 1 temp 3}°${color8} \
2${color #3a8ded}${hwmon 1 temp 4}°${color8} \
3${color #3a8ded}${hwmon 1 temp 5}°${color8}  \
BATT:${color #3a8ded}${battery_percent BAT1}%${color8}   \
VOL:${color #3a8ded}${exec amixer get Master | awk 'NR==5{print $4}' | tr -d {[]}}${color8} \
${alignr}${color #3a8ded} ${time %R} \

]];

Last edited by clusterF (2020-02-04 14:47:51)

Offline

#1271 2020-02-04 14:54:24

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: Show us your conky

^ nevermind it wasnt as hard as i thought it would be. Added below line in conky text.

${exec wmctrl -d | grep "*" | awk '{print $1}'}  \

2020-02-05-00-55-53-scrot.png

Last edited by clusterF (2020-02-04 14:57:20)

Offline

#1272 2020-02-04 17:18:54

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,053

Re: Show us your conky

why? WHY? WHY?  WHY?

Do people insist on doing simple things in complicated ways?

I saw this over on the Debian Wiki just the other day:

Read The Fantastic Manuals
- then they talked about another program BUT In this case:

man conky

... and we get:

       desktop
              Number  of  the  desktop on which conky is running or the message "Not running in X" if this is
              the case.

       desktop_name
              Name of the desktop on which conky is running or the message "Not running in X" if this is  the
              case.

       desktop_number
              Number of desktops or the message "Not running in X" if this is the case.

Soooooo :

Desktop: ${desktop_name}
Is number ${desktop} of ${desktop_number} desktops.

2020-02-04-140646-S11.jpg
Obviously a cut and paste job to show my test conky on 4 different desktops in one screen.

No CPU expensive "exec" command required:

       exec command
              Executes a shell command and displays the output in conky. warning: this takes a lot more
              resources than other variables. I'd recommend coding wanted behaviour in C and posting a patch.

The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.

Offline

#1273 2020-02-04 17:30:31

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,053

Re: Show us your conky

clusterF wrote:
wmctrl -d | grep "*" | awk '{print $1}'

BE CAREFUL with "wmctrl" it starts counting at 0

So that command says "Desktop1" is: 0

 04 Feb 20 @ 14:25:13 ~
   $ wmctrl -d | grep "*" | awk '{print $1}'
0
 
 04 Feb 20 @ 14:25:15 ~
   $

and "Desktop2" is: 1

 04 Feb 20 @ 14:25:15 ~
   $ wmctrl -d | grep "*" | awk '{print $1}'
1
 
 04 Feb 20 @ 14:26:49 ~
   $ 

The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.

Offline

#1274 2020-02-04 22:27:36

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: Show us your conky

^ definitely should have RTFM, thanks Sector11. just ${desktop} works perfectly for what i want in the bar/panel conky. Cheers.

So if using exec in conky does it keep executing that command specified? I thought it was a once only deal everytime it is asked for?

Offline

#1275 2020-02-04 23:45:02

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,053

Re: Show us your conky

clusterF wrote:

^ definitely should have RTFM, thanks Sector11. just ${desktop} works perfectly for what i want in the bar/panel conky. Cheers.

Isn't it FANTASTIC what MANUALS can do for us  big_smile

Loved the way Debian described that.

So if using exec in conky does it keep executing that command specified? I thought it was a once only deal everytime it is asked for?

It executes it every update:

update_interval = 1,

The "execute" once only command disappeared with v1.10, one of the reasons I still use v1.9: pre_exec

pre_exec shell command
              Executes a shell command one time before conky displays anything and puts output as text.

and never runs again ....

I use it with a few conkys but the main one counts time from certain dates to today.

For example the day I stopped drinking:

 15/01/86: ${color1}${pre_exec conkyDateDiff 19860115}${goto 305}${color5}${pre_exec conkyDaysDiff 19860115}${color}

There are 56 instances of "pre_exec" in that one conky alone.

IF I set it to:

 15/01/86: ${color1}${execi 86400 conkyDateDiff 19860115}${goto 305}${color5}${execi 86400 conkyDaysDiff 19860115}${color}

Sure it only updates once a day BUT conky checks it every second to see if it is time to update - "I think".

EDIT:

 04 Feb 20 @ 20:46:36 ~
   $ conkyDateDiff 19860115
34 yrs 20 days
 
 04 Feb 20 @ 20:46:39 ~
   $ conkyDaysDiff 19860115
12438
 
 04 Feb 20 @ 20:47:01 ~
   $ 

Last edited by Sector11 (2020-02-04 23:49:19)


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.

Offline

Board footer

Powered by FluxBB