You are not logged in.

#1176 2019-08-06 15:02:10

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,557

Re: Show us your conky

MrEd wrote:

Conky-Sandwich of the Day pic #2, looks yummy lol

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

With my diet that would kill me.


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#1177 2019-08-07 13:59:13

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

Re: Show us your conky

updated my conky from a page ago, had incorrect syntax for conky 1.10.8

https://forums.bunsenlabs.org/viewtopic … 140#p89140


Everything not saved will be lost.

--Nintendo "Quit Screen" message

Offline

#1178 2019-08-07 18:03:31

unklar
Member
Registered: 2015-10-31
Posts: 937

Re: Show us your conky

Thanks, loutch and clusterF   cool

argb255.th.png

sidu_linie1.th.png

--Original @loutch https://forums.bunsenlabs.org/viewtopic.php?pid=88623#p88623
--modifiziert @unklar 2019-08-07
conky.config = {
	background              = false,--true,
	use_xft                 = true,
	font                    = 'Liberation Sans:size=9',
	xftalpha                = 1,
	update_interval         = 1.0,
	total_run_times         = 0,
	own_window              = true,
	own_window_transparent  = false,--true,
--own_window_color 000000
    own_window_argb_visual  = true,
    own_window_argb_value = 255,
	own_window_type         = 'normal',
	own_window_hints        = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer           = true,
	minimum_width           = 1350, minimum_height = 10,
    maximum_width           = 1350,
	text_buffer_size        = 2048,
	draw_shades             = false,
	draw_outline            = false,
	draw_borders            = false,
	draw_graph_borders      = true,
	alignment               = 'bottom_middle', 
	gap_x                   = 10,
	gap_y                   = 10,
	no_buffers              = true,
	uppercase               = false,
	cpu_avg_samples         = 2,
	override_utf8_locale    = true,
--imlib_cache_flush_interval  = 60,
    imlib_cache_size        = 0,--10000,
    default_bar_height      = 5,
    default_bar_width       = 20,
    default_graph_height    = 13,
    default_graph_width     = 185,
-- Taille des pointillés
	stippled_borders        = 5,
    max_user_text           = 131072,
-- Couleurs
	default_color = '#ffffff',--ffd579',
	default_shade_color = '#333333',
	default_outline_color = 'black',
color1                 = 'ff4800',--'CDBF9A', --titre 'FCE94F'
color2                 = 'b72e3f',--'AAAAAA', --texte 'BBBBBB'
color3                 = 'bbbbbb',--555555', --pointilés 'BBBBBB'
color4                 = '65f300', --'3F506B', --bar 'BBBBBB'
color5                 = 'ffffff',--'555555', --bordure '666666'
color6                 = 'ffffff',--'3F506B', --graph 'DDDDDD'

lua_load = '~/TEST/loutch/draw_bg.lua',
lua_draw_hook_pre = 'draw_bg 10 0 0 0 0 0x000000 0.55',
--${image $HOME/Logos/siduction-gravatar2.png -p 0,-1 -s 23x23}
};

conky.text = [[
${exec echo '#!'}${goto 35}Top cpu: ${top name 1} \
${goto 180}| Home: ${fs_used_perc /home}% (${fs_used /home} / ${fs_free /home}) \
${goto 380}| Data: ${fs_used_perc /media/DATEN}% \
${goto 470}| Share: ${fs_used_perc /usr/share}% \
${goto 560}| CPU : ${cpu cpu0}%\
${goto 630}| CPU T°: ${hwmon 1 temp 2}°C | ${execi 300 sensors | awk '/Core 0/{gsub("+","");print $3}'} \
${goto 770}| ${color2}GPU T°: ${color}${hwmon 2 temp 1}°C \
${goto 870}| Memory: ${memperc}%  ($mem) \
${goto 1060}| Net: \
${alignr 15}${font VariShapes Solid:pixelsize=10}S${font }  ${upspeedf enp2s0} (${totalup enp2s0}) \
${font VariShapes Solid:pixelsize=10}E${font } ${downspeedf enp2s0} (${totaldown enp2s0}) \

]]; 
--@unklar 2019-08-07
conky.config = {
	background              = false,
	use_xft                 = true,
	font                    = 'Liberation Sans:size=9',
	xftalpha                = 1,
	update_interval         = 1.0,
	total_run_times         = 0,
	own_window              = true,
	own_window_transparent  = true,
--own_window_color 000000
    own_window_argb_visual  = true,
--own_window_argb_value = 255,
	own_window_type         = 'normal',
	own_window_hints        = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer           = true,
	minimum_width           = 1420, minimum_height = 10,
    maximum_width           = 1420,
	text_buffer_size        = 2048,
	draw_shades             = false,
	draw_outline            = false,
	draw_borders            = false,
	draw_graph_borders      = true,
	alignment               = 'bottom_middle', 
	gap_x                   = 10,
	gap_y                   = 10,
	no_buffers              = true,
	uppercase               = false,
	cpu_avg_samples         = 2,
	override_utf8_locale    = true,
--imlib_cache_flush_interval  = 60,
    imlib_cache_size        = 0,--10000,
    default_bar_height      = 5,
    default_bar_width       = 20,
    default_graph_height    = 13,
    default_graph_width     = 185,
-- Taille des pointillés
	stippled_borders        = 5,
    max_user_text           = 131072,
-- Couleurs
	default_color = '#ffffff',--ffd579',
	default_shade_color = '#333333',
	default_outline_color = 'black',
color1                 = 'ff4800',--'CDBF9A', --titre 'FCE94F'
color2                 = 'b72e3f',--'AAAAAA', --texte 'BBBBBB'
color3                 = 'bbbbbb',--555555', --pointilés 'BBBBBB'
color4                 = '65f300', --'3F506B', --bar 'BBBBBB'
color5                 = 'ffffff',--'555555', --bordure '666666'
color6                 = 'ffffff',--'3F506B', --graph 'DDDDDD'

--lua_load = '~/TEST/loutch/draw_bg.lua',
--lua_draw_hook_pre = 'draw_bg 10 0 0 0 0 0x000000 0.55',

};

conky.text = [[
${image $HOME/Logos/siduction-gravatar2.png -p 0,-1 -s 23x23}${goto 35}Top cpu: ${top name 1} \
${goto 180}| Home: ${fs_used_perc /home}% (${fs_used /home} / ${fs_free /home}) \
${goto 380}| Data: ${fs_used_perc /media/DATEN}% \
${goto 470}| Distris: ${fs_used_perc /media/Distris}% \
${goto 560}| CPU : ${cpu cpu0}% \
${goto 630}|  ( ${color2} GPU T°${color} || CPUs T° ||  ${execpi 10 sensors | grep '0:\|1:\|2:\|3:\|4:' | head -n5 | cut -c16-23 | fmt -w40} ) \
${goto 990}${color}| Memory: ${memperc}%  ($mem) \
${goto 1160}| Net: \
${alignr}${font VariShapes Solid:pixelsize=10}S${font}  ${upspeedf enp2s0} (${totalup enp2s0}) \
${font VariShapes Solid:pixelsize=10}E${font} ${downspeedf enp2s0} (${totaldown enp2s0}) \

]]; 
 

Last edited by unklar (2019-08-07 18:25:50)

Offline

#1179 2019-08-08 19:41:20

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

Re: Show us your conky

Sector11 wrote:

@ragamatrix - and anyone else interested.

BIG CLOCK with just fonts.  wink
https://cdn.scrot.moe/images/2019/07/12/2019-07-12_121023_Scrot11.th.jpg

The code:
Above TEXT I am using (conky v1.9 - you will need to convert):

xftfont Fira Mono:bold:size=12

you can use any font here, it's NOT used in the clocks part of the conky at all.
and:

draw_shades yes
default_shade_color 000000
${font Fantasque Sans Mono:bold:size=40}${color5}${alignc}${time %a %d %b %Y}${color}${font}
${alignc}${color}${if_match ${time %H}<12}Good Morning${else}\
${if_match ${time %H}<18}${color7}Good Afternoon${else}${color3}Good Evening${endif}${endif}${color}
${goto 40}${font LED_mono:size=100}${color1}88:88:88${goto 40}${color5}${time %T}${color}${font}



${alignc}${color}${if_match ${time %H}<12}Good Morning${else}\
${if_match ${time %H}<18}${color7}Good Afternoon${else}${color3}Good Evening${endif}${endif}${color}
${font SF Digital Readout:size=75}\
${color1}${goto 155}xx:xx:xx${goto 155}ii:ii:ii${goto 155}88:88:88${color}\
${color5}${goto 155}${time %T}${color}\

${color1}${goto 30}xxx xx xxx xxxx${goto 30}iii ii iii iiii${goto 30}888 88 888 8888${color}\
${color}${goto 30}${time %a %d %b %Y}${color}\
${font}

Fonts:
LED_mono:

  • does just numbers and the " : "

  • it does NOT do spaces either

  • You could do ${time %a:%d:%b:%Y} or ${time %a:%d:%b:%y} if you wanted, which I have done in another conky

    • someplace in the haystack of conkys I have

SF Digital Readout

  • trust me the x and i are needed for: Fri and Wed Mon

  • tried: bold - one comment: YUK!

2019-08-08-213507_1920x1080_scrot.th.png
Thank-you my friend for the big clock wink Really good idea the background with fonts. You still made great job with your creativity

Offline

#1180 2019-08-08 21:06:06

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,557

Re: Show us your conky

ragamatrix wrote:

Thank-you my friend for the big clock wink Really good idea the background with fonts. You still made great job with your creativity

Always happy to help someone, especially old friends.

What colours did you use?

Last edited by Sector11 (2019-08-08 21:17:43)


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#1181 2019-08-09 08:13:05

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

Re: Show us your conky

I set the fg color with AEFEEE (acqua blue) and bg color with 404040 (darker grey)

Offline

#1182 2019-08-09 11:04:31

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,557

Re: Show us your conky

I like it Thank you.


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#1183 2019-08-10 04:27:50

MrEd
Member
Registered: 2018-06-26
Posts: 27

Re: Show us your conky

Sector11 wrote:
MrEd wrote:

Conky-Sandwich of the Day pic #2, looks yummy lol

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

With my diet that would kill me.

Actually, I thought it looked quite sensible for a small meal to be honest. lol

That reminds me...I came in to give a report on a conky control panel I've been working on....

I've only got a preview of it, I know it's not pure conky, but when it's done, it should do something for everyone that wants buttons in conky 1.10 or any conky or other stuff really.

I'm doing it in pyqt5, and keeping it really simple to mod yourself for anyone that just wants the menu.

It may be a script, but there is'nt really any fancy super hard to understand scripting sorcery involved...

to be honest, I'm probly doing the hard way to make it easy for use with conky, that and the fact I've never done this before lmao

I do keep getting stuck though bc I'm trying to sort out some stuff that's probly super simple, but it's Friday night and probly twisted my brain somehow and need to stop for today. tongue

SsQs6Krm.png

Edit: I didn't stop to think it was so big haha
all fixed tongue

Last edited by MrEd (2019-08-10 14:25:02)


MSI B85M-G43 * Dualcore 3.3GHz *-12GB ram * GT740 4GB video * Logitech USB-Marble Mouse=Trackball * System - ArchLinux-Antergos, KDE Plasma Desktop - Conky 1.10

Offline

#1184 2019-08-10 07:27:40

damo
....moderator....
Registered: 2015-08-20
Posts: 5,085

Re: Show us your conky

@MrEd - I wonder would you post linked thumbnails instead of large images please, as per the Forum Rules? TY wink


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#1185 2019-08-29 18:49:14

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

Re: Show us your conky

Hello

Since conky is past in version 1.10 i was worry why mi conky audacious-clic not work.

Since yesterday i'm happy ,i found covergloobus & it work great (not with audacious) with clementine .

1567103930.png

i modify my launchscript & it work great

I created a shortcut in the dashboard

first click

launch clementine & covergloobus

second click

kills clementine & coverglobus as well when clementine is playing any song

#!/bin/bash

PROG_NAME1="/usr/bin/clementine"	# Nom du programme à  démarrer/arrêter.
PROG_NAME2="/usr/bin/covergloobus"      # Nom du programme à  démarrer/arrêter.

PROCESSPID1=$(pgrep -f "usr/bin/clementine")	                        # Récupère le PID du processus.
PROCESSPID2=$(pgrep -f "usr/share/covergloobus/covergloobus.py")	# Récupére le PID du processus.


if [[ "$PROCESSPID1" != ""  && "$PROCESSPID2" != "" ]]; then	        # Si les deux processus existe alors on le(s) kill.
        kill $PROCESSPID1 && echo "Stop $PROG_NAME1 (PID: $PROCESSPID1)"
        kill $PROCESSPID2  && echo "Stop $PROG_NAME2 (PID: $PROCESSPID2)"
else	# Si aucun processus on démarre le programme.
        kill $PROCESSPID1 
        $PROG_NAME1 & 
        echo "Start $PROG_NAME1"
        kill $PROCESSPID2  
        $PROG_NAME2 & 
        echo "Start $PROG_NAME2"
        if [[ "$PROCESSPID1" == ""  || "$PROCESSPID2" == "" ]]; then	 # Si un des processus n'existe pas alors on le(s) kill.
                kill $PROCESSPID1 && echo "Stop $PROG_NAME1 (PID: $PROCESSPID1)"
                kill $PROCESSPID2  && echo "Stop $PROG_NAME2 (PID: $PROCESSPID2)"
                echo "Il y a eu un souci au lancement tout a été coupé"
        fi
fi

exit 0

@+

Last edited by loutch (2019-08-29 19:12:04)


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#1186 2019-09-09 18:40:33

mozillax
New Member
Registered: 2019-09-09
Posts: 1

Re: Show us your conky

Here is mine.

rAs8LbZt.png
WZPZgfst.png

Find the conkyrc here and the strawberry script here. Regards

Offline

#1187 2019-09-25 06:53:38

Naik
Member
From: Lipsia
Registered: 2015-10-03
Posts: 178

Re: Show us your conky

Hey folks!

Great work here. I like the canky-sandwich and will try to make one show vegan food recipies myself these days.

But for now I am a little unsure about the output of one of my conky lines:

2019-09-25-08-41-56_scrot.png

I guess the last value is a little too high, right?

Apparently i have no idea what i am doing there
Anyways the code used is not mine and looks as follows. For my simple understanding of physics and electricity it looks quite right:

#!/bin/bash
##
## power

# get info of all devices:  "upower -d"

V=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -i voltage)
Volts=$(echo "$V" | awk '{print $2}' | cut -c 1-5)

W=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -i "energy-rate")
Watts=$(echo "$W" | awk '{print $2}' | cut -c 1-5)

Amps=$( echo "$(( $Watts / $Volts ))" )

echo $Watts"W  "$Volts"V  "$Amps"A"

What have i done wrong?

Thanks for your time,

naik --greetz


"Kaum macht [Mensch]* es richtig, funktioniert es sofort!"
BL-Kitchen on GitHub

Offline

#1188 2019-09-25 13:31:25

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

Re: Show us your conky

missing quotes?

V=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -i "voltage")

Everything not saved will be lost.

--Nintendo "Quit Screen" message

Offline

#1189 2019-09-27 08:13:03

Naik
Member
From: Lipsia
Registered: 2015-10-03
Posts: 178

Re: Show us your conky

clusterF wrote:

missing quotes?

V=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -i "voltage")

jeah, Thanks that changed a lot!
But unfortunately something is still off with my maths

naik@GerryTSSD[~]$ /usr/bin/power
10,60W  11,74V  74A

10,60/11,74 = 0,902896081772
so something must be really wrong with this line:

Amps=$( echo "$(( $Watts / $Volts ))" )

but i can`t see what!

UPDATE:

I got it working at least without the decimals:

Amps=$(( Watts / Volts ))

UPDATE 2:
Since there is and will be no floatpoint in bash I used the awk way and got what I need now:

Amps=$(awk '{printf("%.2f\n",$1/$2)}' <<<" $Watts $Volts ")

Thanks for your patience!
Naik --greetz

Last edited by Naik (2019-09-27 08:51:26)


"Kaum macht [Mensch]* es richtig, funktioniert es sofort!"
BL-Kitchen on GitHub

Offline

#1190 2019-09-27 20:05:47

damo
....moderator....
Registered: 2015-08-20
Posts: 5,085

Re: Show us your conky

You can use bc for decimal arithmetic in bash


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#1191 2019-09-29 08:10:29

ohnonot
...again
Registered: 2015-09-29
Posts: 3,998
Website

Re: Show us your conky

Naik, I'd like to help you but don't have a laptop & no upower installed either.
Please add the line 'set -xv' near the top of your script, execute it once, and show us the full output.

Offline

#1192 2019-09-29 09:27:20

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

Re: Show us your conky

hello

here one of my olds conkys made in 1.10 version

no player playing

1569748955.png

audacious plying

1569749004.png

radiotray-ng playing

1569749063.png

conkyrcs

time & weather

conky.config = {
	background = true,
	use_xft = true,
	font = 'Liberation Sans:size=9',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 470, minimum_height = 170,
        maximum_width = 470,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_right',
	gap_x = 30,
	gap_y = 10,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',

 lua_load = '~/.conky/lua/image.lua',

};

conky.text = [[
${execi 180 bash $HOME/1_accuweather/1_accuweather -f}
${font Liberation Sans:size=26}${alignc 20}${time %a %d %b %H:%M}${font}
${goto 70}----------------------------------------------------------------------------
${goto 30}Aujourdh'ui ${goto 110}demain\
${goto 190}${execi 3600 echo `date --date="2 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="2 day" | awk '{print $2}'`}\
${goto 270}${execi 3600 echo `date --date="3 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="3 day" | awk '{print $2}'`}${voffset -14} 
${goto 360}${execi 3600 echo `date --date="4 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="4 day" | awk '{print $2}'`}
${font conkyweather:size=30}${voffset -30}
${goto 40}${execi 600  sed -n '601p' $HOME/1_accuweather/daily_forecast}\
${goto 110}${execi 600  sed -n '602p' $HOME/1_accuweather/daily_forecast}\
${goto 190}${execi 600  sed -n '603p' $HOME/1_accuweather/daily_forecast}\
${goto 270}${execi 600  sed -n '604p' $HOME/1_accuweather/daily_forecast}\
${goto 360}${execi 600  sed -n '605p' $HOME/1_accuweather/daily_forecast}${font}
${goto  40}${texeci 600 sed -n '68p' $HOME/1_accuweather/daily_forecast}°/${texeci 600 sed -n '47p' $HOME/1_accuweather/daily_forecast}°\
${goto 110}${texeci 600 sed -n '108p' $HOME/1_accuweather/daily_forecast}°/${texeci 600 sed -n '87p' $HOME/1_accuweather/daily_forecast}°\
${goto 190}${texeci 600 sed -n '148p' $HOME/1_accuweather/daily_forecast}°/${texeci 600 sed -n '127p' $HOME/1_accuweather/daily_forecast}°\
${goto 270}${texeci 600 sed -n '188p' $HOME/1_accuweather/daily_forecast}°/${texeci 600 sed -n '167p' $HOME/1_accuweather/daily_forecast}°\
${goto 360}${texeci 600 sed -n '228p' $HOME/1_accuweather/daily_forecast}°/${texeci 600 sed -n '207p' $HOME/1_accuweather/daily_forecast}°\
${lua fDrawImage ~/.conky/diamond/pix/bg1.png 0 0 440 180 }
]];

cpu

conky.config = {
	background = true,
	use_xft = true,
	font = 'Liberation Sans:size=9',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 470, minimum_height = 280,
        maximum_width = 470,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_right',
	gap_x = 00,
	gap_y = 210,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',

 lua_load = '~/.conky/lua/image.lua',

};

conky.text = [[
${voffset 30}${offset 50}Cpu1:${color DDF2FF} ${offset 3}${cpu cpu1}%${alignr 90}${voffset -5}${color #DBDBDB}${cpugraph cpu1 20,240 f1f1f1 DBDBDB}${color}
${voffset -3}${offset 50}CPU Step: ${alignr 80}${color DDF2FF}${freq_g} GHz${color}
${voffset 12}${offset 50}Cpu2:${color DDF2FF} ${offset 3}${cpu cpu2}%${alignr 90}${voffset -9}${color #DDF2FF}${cpugraph cpu2 20,240 f1f1f1 DBDBDB}${color}
${voffset -5}${alignc 10}---------------------------------------------------------------------------------
${voffset 15}${offset 50}RAM: ${alignr 80} $mem/${color #DDF2FF}$memmax${color}
${offset 50}${color #DDF2FF}${membar 5,340}${color}
${offset 50}Swap: ${alignr 80} $swap / ${color #DDF2FF}$swapmax${color}
${offset 50}${color #DDF2FF}${swapbar 5,340}${color}
${offset 50}ROOT:${color #DDF2FF} ${alignr 80} ${fs_free /} / ${fs_size /}
${offset 50}${fs_bar 5,340 /}${color}
${lua fDrawImage ~/.conky/diamond/pix/bg1.png 0 0 439 270}
]];

network

conky.config = {
	background = true,
	use_xft = true,
	font = 'Liberation Sans:size=9',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 470, minimum_height = 170,
        maximum_width = 470,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_right',
	gap_x = 30,
	gap_y = 470,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',

 lua_load = '~/.conky/lua/image.lua',

};

conky.text = [[

${offset 25}${font Liberation Sans:size=11}SSID:${font} ${wireless_essid wlo1} ${goto 190}${font Liberation Sans:size=11}Sortant:${font} ${upspeed wlo1}
${offset 25}${font Liberation Sans:size=11}Bitrate:${font} ${wireless_bitrate wlo1} ${goto 190}${font Liberation Sans:size=11}Entrant:${font} ${downspeed wlo1}
${offset 25}${font Liberation Sans:size=11}Local:${font} ${addr wlo1} ${goto 190}${font Liberation Sans:size=11}Signal:${font} ${wireless_link_qual_perc wlo1}%
${lua fDrawImage ~/.conky/diamond/pix/bg1.png  0 0 440 102}
${if_match "${wireless_link_qual_perc wlo1}"<"1"} ${lua fDrawImage ~/.conky/diamond/pix/nonetwork.png  300 25 45 45}${else}
${if_match "${wireless_link_qual_perc wlo1}"<"20"}${lua fDrawImage ~/.conky/diamond/pix/networklow.png 300 25 45 45}${else}
${if_match "${wireless_link_qual_perc wlo1}"<"50"}${lua fDrawImage ~/.conky/diamond/pix/networkmid.png 300 25 45 45}${else}
${if_match "${wireless_link_qual_perc wlo1}"<"80"}${lua fDrawImage ~/.conky/diamond/pix/wlan80.png     300 25 45 45}${else}
${lua fDrawImage ~/.conky/diamond/pix/networkhigh.png 300 25 45 45}${endif}${endif}${endif}${endif}

]];

audacious

conky.config = {
	background = true,
	use_xft = true,
	font = 'Liberation Sans:size=9',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 470, minimum_height = 280,
        maximum_width = 470,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_right',
	gap_x = 30,
	gap_y = 580,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés
	stippled_borders = 5,

-- Couleurs
	default_color = '#ffffff',--ffd579
	default_shade_color = '#333333',
	default_outline_color = 'black',

 lua_load = '~/.conky/lua/image.lua',

};

conky.text = [[${if_running audacious}
${execi 3 ~/.conky/audacious/scripts/cover.sh}
${voffset -40}${font GE Inspira :size=12}
${goto 160}${execi 3 audtool current-song-tuple-data artist}${font}
${goto 160}${execi 3 audtool current-song-tuple-data title}
${goto 160}${execi 3 audtool current-song-tuple-data album}
${voffset 10}${goto 160}${execi 1 audtool current-song-output-length}  ${goto 358}${execi 1 audtool current-song-length}\
${goto 184}${execbar 2, 168 expr 100 \* $(audtool --current-song-output-length-seconds) \/ $(audtool --current-song-length-seconds)}
${lua fDrawImage ~/.conky/diamond/pix/bg1.png  0 0 440 102}
${lua fDrawImage ~/.conky/audacious/audacious.png 44 14 68 70}
${else}
${if_running radiotray-ng}
${texeci 3 ~/.conky/radiotrayng/pochette.sh}${lua fDrawImage ~/.conky/diamond/pix/bg1.png  0 0 440 102}
${voffset -36}${alignc -80}${font GE Inspira:size=12}${execi 5 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}$font                                                  
${voffset 33}${alignc -20}${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.artist'}
             ${alignc -20}${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.title'}

${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "RTL"}            ${lua fDrawImage ~/.conky/radiotrayng/logos/rtl.png 222 32 50 50}         ${else}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "Hotmixradio 80"} ${lua fDrawImage ~/.conky/radiotrayng/logos/hotmix80.png 228 28 35 35}    ${else}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "Maxi 80"}        ${lua fDrawImage ~/.conky/radiotrayng/logos/maxi80.png 230 29 35 35}      ${else}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "RTL2"}           ${lua fDrawImage ~/.conky/radiotrayng/logos/rtl2.png 222 32 45 45}        ${else}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "MAGNUM LA RADIO"}${lua fDrawImage ~/.conky/radiotrayng/logos/magnumradio.png 184 26 120 40}${else}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "radio swiss pop"}${lua fDrawImage ~/.conky/radiotrayng/logos/rspop.png 244 30 35 35}       ${else}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.station'}" == "rfm"}            ${lua fDrawImage ~/.conky/radiotrayng/logos/rfm.png 224 35 45 45}         ${endif}
${endif}${endif}${endif}${endif}${endif}${endif}
${if_match "${execi 4 qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | jq -r '.title'}" == ""}${lua fDrawImage ~/.conky/radiotrayng/logos/radio.png 30 10 78 78}
${else}
${lua fDrawImage ~/.conky/diamond/pochette.png 40 14 68 70}${endif}

${else}
${endif}

]];

@+


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#1193 2019-10-03 18:51:52

manuel-909
Member
Registered: 2017-10-09
Posts: 74

Re: Show us your conky

https://forums.bunsenlabs.org/viewtopic … 916#p68916 the script still works MaDscntis.
Screenshot.th.png

Offline

#1194 2019-10-06 03:00:37

manuel-909
Member
Registered: 2017-10-09
Posts: 74

Re: Show us your conky

loutch cover.sh can you share it.
${execi 3 ~/.conky/audacious/scripts/cover.sh}
Thank you.

Offline

#1195 2019-10-06 07:52:12

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

Re: Show us your conky

hello

here

 
#!/bin/bash
# créer par Loutch le 18-04-2013

cp /tmp/audacious-temp* ~/.conky/audacious/audacious.jpg 

convert ~/.conky/audacious/audacious.jpg ~/.conky/audacious/audacious.png

exit

Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#1196 2019-10-06 10:46:51

manuel-909
Member
Registered: 2017-10-09
Posts: 74

Re: Show us your conky

Thank you loutch

Offline

#1197 2019-10-07 10:40:55

Naik
Member
From: Lipsia
Registered: 2015-10-03
Posts: 178

Re: Show us your conky

ohnonot wrote:

Naik, I'd like to help you but don't have a laptop & no upower installed either.
Please add the line 'set -xv' near the top of your script, execute it once, and show us the full output.

Sorry for the long time of absence, but here you go:

naik@GerryTSSD[~]$ /usr/bin/power

V=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -i "voltage")
++ upower -i /org/freedesktop/UPower/devices/battery_BAT0
++ grep -i voltage
+ V='    voltage:             12,225 V'
Volts=$(echo "$V" | awk '{print $2}' | cut -c 1-5)
++ echo '    voltage:             12,225 V'
++ awk '{print $2}'
++ cut -c 1-5
+ Volts=12,22

W=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -i "energy-rate")
++ upower -i /org/freedesktop/UPower/devices/battery_BAT0
++ grep -i energy-rate
+ W='    energy-rate:         30,6471 W'
Watts=$(echo "$W" | awk '{print $2}' | cut -c 1-5)
++ echo '    energy-rate:         30,6471 W'
++ awk '{print $2}'
++ cut -c 1-5
+ Watts=30,64

Amps=$(awk '{printf("%.2f\n",$1/$2)}' <<<" $Watts $Volts ")
++ awk '{printf("%.2f\n",$1/$2)}'
+ Amps=2.50

echo $Watts"W  "$Volts"V  "$Amps"A"
+ echo '30,64W  12,22V  2.50A'
30,64W  12,22V  2.50A

As you see the awk-approach works but is a little cumbersome in my eyes and I have a dot as delimiter for the decimals whereas the other values have -thanks to language settings- a comma.
I`d like to avoid that but don`t know how.

Thanks for now!

naik --greetz


"Kaum macht [Mensch]* es richtig, funktioniert es sofort!"
BL-Kitchen on GitHub

Offline

#1198 2019-10-09 06:35:47

ohnonot
...again
Registered: 2015-09-29
Posts: 3,998
Website

Re: Show us your conky

^ I'm sorry I missed your edit in your last post - where you added that it works now.
I am surprised that awk recognizes the commas as decimal delimiter (is that how you call it).
But good that it works. I don't think your approach is too cumbersome. I'd probably use bc, but that's "Jacke wie Hose"... smile

Anyhow, I made some improvements to your script:

#!/bin/bash
##
## power

# get info of all devices:  "upower -d"

data=( $(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | awk '/voltage|energy-rate/{print $2}' ) )

Amps=$(awk '{printf("%.2f\n",$1/$2)}' <<<" ${data[0]} ${data[1]} ")

echo "${data[0]:0:5}W  ${data[1]:0:5}V  ${Amps/./,}A"

Advantages:

  • calls upower only once

  • replace grep | awk with awk only

  • replace cut with bash bultin string manipulation

  • should be overall lighter on resources

Offline

#1199 2019-10-11 17:21:15

Naik
Member
From: Lipsia
Registered: 2015-10-03
Posts: 178

Re: Show us your conky

ohnonot wrote:

^ I'm sorry I missed your edit in your last post - where you added that it works now.
I am surprised that awk recognizes the commas as decimal delimiter (is that how you call it).
But good that it works. I don't think your approach is too cumbersome. I'd probably use bc, but that's "Jacke wie Hose"... smile

Anyhow, I made some improvements to your script:

#!/bin/bash
##
## power

# get info of all devices:  "upower -d"

data=( $(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | awk '/voltage|energy-rate/{print $2}' ) )

Amps=$(awk '{printf("%.2f\n",$1/$2)}' <<<" ${data[0]} ${data[1]} ")

echo "${data[0]:0:5}W  ${data[1]:0:5}V  ${Amps/./,}A"

Advantages:

  • calls upower only once

  • replace grep | awk with awk only

  • replace cut with bash bultin string manipulation

  • should be overall lighter on resources


Wow! This is great, Thank you very much ohnonot!

BTW: I call it decimal delimiter but I am not a native English speaker.

Naik --greetz


"Kaum macht [Mensch]* es richtig, funktioniert es sofort!"
BL-Kitchen on GitHub

Offline

#1200 2019-10-12 20:57:30

manuel-909
Member
Registered: 2017-10-09
Posts: 74

Re: Show us your conky

unklar i need help i install radiotray-ng with apacman -S radiotray-ng but don't display radio stations.
everytime i click nothing maybe i'm misssing something thank you.

Offline

Board footer

Powered by FluxBB