Du bist nicht angemeldet.

#201 06.06.2014 19:22:21

unklar
Gesperrt

Re: Zeigt her eure Conkys!

Du mußt die Raute # vor

minimum_size 1680 1800

schon 'rausmachen.
Das conky-Fenster ist demnach 1680x1800 Pixel groß, bevor etwas abgeschnitten wird.  wink

Offline

#202 09.06.2014 10:45:29

snooga
Mitglied

Re: Zeigt her eure Conkys!

Hallo Unklar, vielen Dank für den Tipp.
Ich hatte vorher natürlich den Eintrag drin und es hat nicht geklappt sad
Aber nachdem du mir geantwortet hast habe ich die letzen Beiträge hier auch nochmal überflogen und gelesen, dass Conky zwar sich nach einer Änderung der Config aktualisiert, aber scheinbar nicht die Größe übernimmt.
Daher hat das Spielen mit dem Eintrag nie den gewünschten Erfolg gebracht.... Ein beenden von Conky und neustarten bringt da wahre Wunder......

Also nochmals vielen lieben Dank, manchmal sollte man auch Beiträge lesen, die vllt nicht im direkten Zusammenhang zum Problem stehen.

Die Community is einfach Top! Danke

Man lerne... Neustarten von Conky erspart manchmal viele graue Haare.

Offline

#203 25.05.2015 11:25:34

unklar
Gesperrt

Re: Zeigt her eure Conkys!

Mein Lieblingsdesktop Fluxbox.

http://workupload.com/file/3D3ycIoh
das Original-Archiv: ist hier

meine Konfigurationsdatei

#==============================================================================
#                                 conkyrc_car
#
#  author  : SLK
#  version : v2011011001
#  license : Distributed under the terms of GNU GPL version 2 or later
#
#==============================================================================

background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 10
gap_y 5
minimum_size 1000 
maximum_width 1000
own_window yes
own_window_type override
#own_window_class Conky
#own_window_argb_visual yes
own_window_transparent yes
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
alignment tr

draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
#default_shade_color #292721

override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no

default_color FFFFFF
color1 DDDDDD
color2 AAAAAA
color3 888888

lua_load ~/conky_A/conky_A.lua
lua_draw_hook_post main
lua_load ~/conky_A/equalizer.lua
lua_draw_hook_pre widgets

TEXT
${image /home/unklar/Logo/arch-legacy-aqua.png -p 77,70 -s 103x90}
${goto 90}${voffset 92}${font DexterC:size=20}${time %H}:${time %M} 
${goto 230}${voffset -100}${font DexterC:size=14}${color 00ffff}${execpi 1 TZ=Europe/Berlin date "+%A, %d. %B %Y"}$color
${voffset -10}${goto 230}${hr 2}
${goto 245}${font DroidSans:size=8,weight:bold}CPU1${goto 285}${execi 20 sensors | grep 'Core 0'|cut -c16-17}°
${goto 245}${font DroidSans:size=8,weight:bold}CPU2${goto 285}${execi 20 sensors | grep 'Core 1'|cut -c16-17}°
${goto 245}HDD${goto 280}${execi 600 /usr/sbin/hddtemp /dev/sda | cut -c35-39}
${goto 245}Fan${goto 285}${execi 20 sensors | grep 'fan1'|cut -c14-18}
${goto 245}MB${goto 285}${execi 20 sensors | grep 'temp5'|cut -c16-17}°
${goto 245}GPU${goto 285}${execi 20 sensors | grep 'temp11'|cut -c16-17}°
${voffset -78}${goto 425}CPU1${goto 475}${cpu cpu0}%
${goto 425}CPU2${goto 475}${cpu cpu1}%
${goto 425}MEM${goto 475}$mem$color / ${memmax}$color
${goto 425}FS${goto 475}${fs_used /DATEN}/ ${fs_size /DATEN}
${goto 425}HOME${goto 475}${fs_used /home}/ ${fs_size /home}
${goto 425}DOWN${goto 475}${downspeedf enp0s25}${goto 525}Kb/S
${goto 425}UP${goto 475}${upspeedf enp0s25}${goto 525}Kb/S
${goto 700}${voffset -88}Temperatur: ${alignr 20}${color}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDP temperature}°C
${goto 700}${voffset -0}Bewölkung: ${alignr 20}${color}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDP cloud_cover}
${goto 700}${voffset -0}Luftdruck: ${alignr 20}${color}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDP pressure} millbar
${goto 700}${voffset -0}Windgeschwindigkeit: ${alignr 20}${color}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDP wind_speed} km/h
${goto 700}${voffset -0}Windrichtung: ${alignr 20}${color}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDP wind_dir} @ ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDP wind_dir_DEG}${color}°
${goto 700}${voffset -0}Luftfeuchtigkeit: ${alignr 20}${color}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDP humidity}%
${goto 700}${voffset -0}Letztes Update UTC: ${alignr 20}${color}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDP last_update}
${goto 600}${voffset 20}${color 00ffff}-----------------------------------------------------------------------------------------
${goto 600}http://weather.noaa.gov ${alignr}LAN   ${addr enp0s25}
${voffset 1}${goto 620}#${font DexterC:size=10}$moc_state ${font}${color}   $moc_title
${voffset 4}${goto 700}#${color 87d29e}$moc_timeleft / $moc_totaltime
${goto 700}${voffset -180}${color}$kernel#${font DexterC:size=20}${color 87d29e}${goto 836}${voffset -8}${execi 600 conkyEmail --servertype=IMAP --servername=imap.googlemail.com --username=xxxx@gmail.com --password=xxxx --ssl}${color ffffff}${goto 870}${voffset -4}${font droidsans:size=8}new mail(s)
${image /home/unklar/Dokumente/28.png -p 600,85 -s 90x90}
${voffset 300}

Beitrag geändert von unklar (15.02.2016 13:21:35)

Offline

#204 03.02.2019 01:50:30

Sir_MPixx
Gast

Re: Zeigt her eure Conkys!

Um diesen Thread mal wieder zu beleben mein Conky:

use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 1
total_run_times 0

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour 000000
own_window_argb_visual no
own_window_argb_value 0

double_buffer yes
#minimum_size 250 5
#maximum_width 500
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color red
default_outline_color green
alignment top_right
gap_x 0
gap_y 0
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer yes


minimum_size 0 0
TEXT

${color fd0000}${font GE Inspira:pixelsize=40}System Panel  ${color FFFFFF}${font GE Inspira:pixelsize=25}System Uptime: ${uptime_short}
${voffset 15}${color FFFFFF}${font GE Inspira:pixelsize=25}Kernel: ${kernel} Hostname: ${nodename}
${voffset 15}${font GE Inspira:pixelsize=30}${color FFFFFF}Laufwerke:
         ${voffset 15}${font GE Inspira:pixelsize=25}${color FFFFFF}Wurzel Verzeichnes:    ${fs_used} / ${fs_size}
           ${voffset 15}${font GE Inspira:pixelsize=25}${color FFFFFF}Home Verzeichnes:     ${fs_used /home} / ${fs_size /home}
${voffset 15}${color FFFFFF}${font GE Inspira:pixelsize=25}RAM:               ${mem} / ${memmax}
${voffset 15}${color FFFFFF}${font GE Inspira:pixelsize=25}CPU:                Core 1:${offset 9}$color${cpu cpu0}%    Core 7:${offset 9}$color${cpu cpu7}%
                       Core 2:${offset 9}$color${cpu cpu1}%    Core 8:${offset 9}$color${cpu cpu7}%
                       Core 3:${offset 9}$color${cpu cpu2}%    Core 9:${offset 9}$color${cpu cpu8}%
                       Core 4:${offset 9}$color${cpu cpu3}%    Core 10:${offset 9}$color${cpu cpu9}%                          
                       Core 5:${offset 9}$color${cpu cpu4}%    Core 11:${offset 9}$color${cpu cpu10}%
                       Core 6:${offset 9}$color${cpu cpu5}%    Core 12:${offset 9}$color${cpu cpu11}%
${voffset 15}${color FFFFFF}${font GE Inspira:pixelsize=25}IP-Adresse: ${addr enp3s0} 

Klein aber fein

#205 30.12.2019 19:52:33

KTT73
Mitglied

Re: Zeigt her eure Conkys!

05ef4b-1577728280.png

Hab ein wenig rumgespielt...

Offline

#206 31.12.2019 12:37:00

KTT73
Mitglied

Re: Zeigt her eure Conkys!

Hast natürlich Recht.

conky-rc

conky.config = {
-- Conky settings
	background = false,
	update_interval = 1,

	cpu_avg_samples = 2,
	net_avg_samples = 2,

	override_utf8_locale = true,

	double_buffer = true,
	no_buffers = true,

	text_buffer_size = 2048,
--imlib_cache_size 0

	temperature_unit = 'celsius',

-- Window specifications
	own_window_class = 'Conky',
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = true,
	own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',
    own_window_argb_visual = true,
    own_window_argb_value = 0,

	border_inner_margin = 0,
	border_outer_margin = 0,

	minimum_width = 570, minimum_height = 650,
	maximum_width = 600,

	alignment = 'top_left',
	gap_x = 2000,
	gap_y = 100,

-- Graphics settings
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,

	default_color = 'gray',
	default_shade_color = 'red',
	default_outline_color = 'green',

-- Text settings
	use_xft = true,
	override_utf8_locale = true,
	font1 = 'Play:normal:size=10',
	font2 = 'Michroma:size=12',
	font3 = 'Michroma:size=18',
	xftalpha = 0.9,
	uppercase = false,

	default_color = '#DCDCDC',
	color0 = '#1793d1',
	color1 = '#DCDCDC',

-- Lua Load
	lua_load = '~/.conky/rings-v1.3.1.lua',
	lua_draw_hook_pre = 'ring_stats',

};

conky.text = [[
${goto 50}${font1}${voffset 10}${color1}${freq_g cpu0} Ghz${alignr 380}${acpitemp} °C
${goto 50}${font1}${voffset 1}${color1}CPU 1 ${alignr 380}${color1}${cpu cpu1}%
${goto 50}${font1}${voffset 3}${color1}CPU 2${alignr 380}${color1}${cpu cpu2}%
${goto 50}${font1}${voffset 3}${color1}CPU 3${alignr 380}${color1}${cpu cpu3}%
${goto 50}${font1}${voffset 3}${color1}CPU 4${alignr 380}${color1}${cpu cpu4}%
${goto 30}${voffset 15}${font1}${color1}${top name 1}${alignr 350}${top cpu 1}%
${goto 30}${font1}${color1}${top name 2}${alignr 350}${top cpu 2}%
${goto 30}${font1}${color1}${top name 3}${alignr 350}${top cpu 3}%
${goto 30}${font2}${color0}${voffset 10}CPU 
${goto 420}${font2}${color0}${voffset 80}SPEICHER
${goto 340}${voffset 0}${font1}${color1}${top_mem name 1}${alignr 60}${top_mem mem 1}%
${goto 340}${font1}${color1}${top_mem name 2}${alignr 60}${top_mem mem 2}%
${goto 340}${font1}${color1}${top_mem name 3}${alignr 60}${top_mem mem 3}%
${goto 360}${font1}${voffset 20}${color1}SWAP${alignr 20}${color1}${swap} / ${color1}${swapmax}
${goto 360}${font1}${voffset 3}${color1}RAM ${alignr 20}${color1}${mem} / ${color1}${memmax}
${goto 30}${font1}${voffset -40}Root${color1}${alignr 360}${fs_used /} / ${fs_size /}
${goto 30}${font1}${voffset 0}Home${alignr 360}${color1}${fs_used /home} / ${fs_size /home}
${goto 30}${font1}${voffset 0}Boot${alignr 360}${color1}${fs_used /boot/efi} / ${fs_size /boot/efi}
${goto 30}${font1}${voffset 0}Spiele${alignr 360}${color1}${fs_used /home/ktt73/Spiele} / ${fs_size /home/ktt73/Spiele}
${goto 30}${font2}${color0}${voffset 10}HDD's
${goto 390}${font2}${color0}${voffset 66}NETZWERK
${goto 355}${font1}${color1}${voffset 8}Up${alignr 20}${color1}${totalup enp3s0} / ${color1}${upspeed enp3s0}
${goto 355}${font1}${color1}${voffset 0}Down${alignr 20}${color1}${totaldown enp3s0} / ${color1}${downspeed enp3s0}
${goto 340}${font1}${voffset 15}LAN IP${alignr 20}${addr enp3s0}
${goto 340}${font1}${voffset 3}WAN IP${alignr 20}${color1}${execi 3600 wget http://v4.ipv6-test.com/api/myip.php -q -O -}
${goto 30}${font2}${voffset -85} ${color0}${time %a %e %b '%y}
${goto 30}${font3}${color1}${voffset 8}${time %H}:${time %M}:${time %S}
${goto 85}${font1}${color1}${voffset -5}KW ${time %V}
${goto 30}${font2}${color0}${voffset 60}LAUFZEIT${font1}${color1}${alignr 300}${uptime_short}
${goto 30}${font2}${color0}${voffset 3}KERNEL${font1}${color1}${alignr 300}${kernel}
${goto 30}${font2}${color0}${voffset 3}UPDATES${font1}${color1}${alignr 300}${execpi 600 pamac checkupdates -aq | awk 'END { print (NR == 0 ? "keine" : NR " Paket" (NR > 1 ? "e" : "")); }'}
${goto 350}${font2}${color0}${voffset -90}GPU${alignr 20}${font1}${color1}${exec nvidia-smi --query-gpu=gpu_name --format=csv,noheader,nounits}
${goto 340}${font1}${voffset 15}GPU Temperatur ${alignr 20}${execi 60 nvidia-settings -q [gpu:0]/GPUCoreTemp -t} °C${color1}
${goto 340}${font1}${voffset 3}GPU Lüfter ${alignr 20}${execi 60 nvidia-smi | grep % | cut -c 3-4}  %${color1}
${goto 340}${font1}${voffset 3}GPU VRAM ${alignr 20}${execi 60 nvidia-smi | grep % | cut -c 37-40} MB${color1}

]];

ringe.lua --> Anzahl der Ringe und Geometrie zum Original verändert

--[[
Ring Meters by londonali1010 (2009)

This script draws percentage meters as rings. It is fully customisable; all options are described in the script.

IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.

To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
	lua_load ~/scripts/rings-v1.2.1.lua
	lua_draw_hook_pre ring_stats
	
Changelog:
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
+ v1.0 -- Original release (28.09.2009)
]]

settings_table = {
    
	{
        name='acpitemp',
        arg='',
        max=100,
        bg_colour=0xDCDCDC,
        bg_alpha=1.0,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=200, y=150,
        radius=125,
        thickness=5,
        start_angle=0,
        end_angle=240
    },    
	{
        name='cpu',
        arg='cpu1',
        max=100,
        bg_colour=0xDCDCDC,
        bg_alpha=0.8,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=200, y=150,
        radius=111,
        thickness=12,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu2',
        max=100,
        bg_colour=0xDCDCDC,
        bg_alpha=0.6,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=200, y=150,
        radius=93,
        thickness=12,
        start_angle=0,
        end_angle=240
    },
{
        name='cpu',
        arg='cpu3',
        max=100,
        bg_colour=0xDCDCDC,
        bg_alpha=0.4,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=200, y=150,
        radius=74,
        thickness=12,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu4',
        max=100,
        bg_colour=0xDCDCDC,
        bg_alpha=0.2,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=200, y=150,
        radius=56,
        thickness=12,
        start_angle=0,
        end_angle=240
    },
    {
        name='memperc',
        arg='',
        max=100,
        bg_colour=0xDCDCDC,
        bg_alpha=0.8,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=350, y=320,
        radius=81,
        thickness=10,
        start_angle=180,
        end_angle=420
    },

    {
        name='swapperc',
        arg='',
        max=100,
        bg_colour=0xDCDCDC,
        bg_alpha=0.4,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=350, y=320,
        radius=66,
        thickness=10,
        start_angle=180,
        end_angle=420
    },
    {
        name='fs_used_perc',
        arg='/',
        max=100,
        bg_colour=0xDCDCDC,
        bg_alpha=0.8,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=220, y=440,
        radius=60,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='fs_used_perc',
        arg='/home',
        max=100,
        bg_colour=0xDCDCDC,
        bg_alpha=0.6,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=220, y=440,
        radius=44,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='fs_used_perc',
        arg='/boot',
        max=100,
        bg_colour=0xDCDCDC,
        bg_alpha=0.4,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=220, y=440,
        radius=28,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='fs_used_perc',
        arg='/home/ktt73/Spiele',
        max=100,
        bg_colour=0xDCDCDC,
        bg_alpha=0.2,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=220, y=440,
        radius=13,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='downspeedf',
        arg='enp3s0','wlan0',
        max=100000,
        bg_colour=0xDCDCDC,
        bg_alpha=0.8,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=350, y=545,
        radius=50,
        thickness=10,
        start_angle=180,
        end_angle=420
    },
    {
        name='upspeedf',
        arg='enp3s0','wlan0',
        max=100000,
        bg_colour=0xDCDCDC,
        bg_alpha=0.4,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=350, y=545,
        radius=36,
        thickness=10,
        start_angle=180,
        end_angle=420
    },
    {
        name='time',
        arg='%S',
        max=60,
        bg_colour=0xDCDCDC,
        bg_alpha=0.8,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=230, y=625,
        radius=42,
        thickness=12,
        start_angle=0,
        end_angle=240
    },
    {
        name='time',
        arg='%M',
        max=60,
        bg_colour=0xDCDCDC,
        bg_alpha=0.6,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=230, y=625,
        radius=28,
        thickness=8,
        start_angle=0,
        end_angle=240
    },
    {
        name='time',
        arg='%H',
        max=24,
        bg_colour=0xDCDCDC,
        bg_alpha=0.4,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=230, y=625,
        radius=18,
        thickness=4,
        start_angle=0,
        end_angle=240
    },
--[[
    {
        name='execi 60 nvidia-settings -q [gpu:0]/GPUCoreTemp -t',
        arg='GPU0',
        max=100,
        bg_colour=0xDCDCDC,
        bg_alpha=0.6,
        fg_colour=0x1793d1,
        fg_alpha=0.8,
        x=350, y=750,
        radius=35,
        thickness=10,
        start_angle=180,
        end_angle=420
    },
    {
        name='',
        arg='',
        max=100,
        bg_colour=0xDCDCDC,
        bg_alpha=0.6,
        fg_colour=0x1793d1,
        fg_alpha=0.6,
        x=274, y=464,
        radius=3,
        thickness=13,
        start_angle=0,
        end_angle=360
    },
]]
}

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
	return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)

	local w,h=conky_window.width,conky_window.height
	
	local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
	local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

	local angle_0=sa*(2*math.pi/360)-math.pi/2
	local angle_f=ea*(2*math.pi/360)-math.pi/2
	local t_arc=t*(angle_f-angle_0)

	-- Draw background ring

	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
	cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
	cairo_set_line_width(cr,ring_w)
	cairo_stroke(cr)
	
	-- Draw indicator ring

	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
	cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
	cairo_stroke(cr)		
end

function conky_ring_stats()
	local function setup_rings(cr,pt)
		local str=''
		local value=0
		
		str=string.format('${%s %s}',pt['name'],pt['arg'])
		str=conky_parse(str)
		
		value=tonumber(str)
		if value == nil then value = 0 end
		pct=value/pt['max']
		
		draw_ring(cr,pct,pt)
	end

	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)
	
	local cr=cairo_create(cs)	
	
	local updates=conky_parse('${updates}')
	update_num=tonumber(updates)

	if update_num>5 then
	    for i in pairs(settings_table) do
		setup_rings(cr,settings_table[i])
	    end
	end
   cairo_surface_destroy(cs)
  cairo_destroy(cr)
end

und das Wetter ist hier zu finden: https://www.gnome-look.org/p/1288420/ ---> Script angepasst bzgl. Icons und Font bzw. Farbeinstellungen erweitert.

Beitrag geändert von KTT73 (31.12.2019 12:37:15)

Offline

#207 03.05.2020 19:27:25

Nick_0278
Mitglied

Re: Zeigt her eure Conkys!

Conky ist echt klasse smile! Ich nutze die Vorlage von acrolinux, wobei ich da inerhalb von zwei Jahren echt einiges modifiziert und hinzugefügt habe.

--[[
#=====================================================================================
#                               arcolinux
# Date    : package-date
# Author  : Erik Dubois at http://www.erikdubois.be
# Version : package-version
# License : Distributed under the terms of GNU GPL version 2 or later
# Documentation : http://erikdubois.be/
#======================================================================================
# CONKY
# For commands in conky.config section:
# http://conky.sourceforge.net/config_settings.html
#
# For commands in conky.text section:
# http://conky.sourceforge.net/variables.html
#
# A PDF with all variables is provided
#=====================================================================================
# FONTS
# To avoid copyright infringements you will have to download
# and install the fonts yourself sometimes.
#=====================================================================================
# GENERAL INFO ABOUT FONTS
# Go and look for a nice font on sites like http://www.dafont.com/
# Download and unzip - double click the font to install it (font-manager must be installed)
# No font-manager then put fonts in ~/.fonts
# Change the font name in the conky
# The name can be known with a command in the terminal: fc-list | grep "part of name"
# Change width and height of the conky according to font
# Reboot your system or fc-cache -fv in terminal
# Enjoy
#=====================================================================================
# FONTS FOR THIS CONKY
# http://www.dafont.com/style-bats.font
#======================================================================================
# Nicks Modifications
#======================================================================================
# Changed time from Roboto to GE Inspira which is a base Conky Gotham Addon
# Changed Drives from 2 to 3
# Modified one_window_type from desktop to normal for KDE compatibility
# Modified Ethernet settings
# Modified Pink Lines to Bright Blue
# Removed Extra symbols and incorrect formatting
#======================================================================================

]]

conky.config = {

	--Various settings

	background = true, 							-- forked to background
	cpu_avg_samples = 2,						-- The number of samples to average for CPU monitoring.
	diskio_avg_samples = 10,					-- The number of samples to average for disk I/O monitoring.
	double_buffer = true,						-- Use the Xdbe extension? (eliminates flicker)
	if_up_strictness = 'address',				-- how strict if testing interface is up - up, link or address
	net_avg_samples = 2,						-- The number of samples to average for net data
	no_buffers = true,							-- Subtract (file system) buffers from used memory?
	temperature_unit = 'celsius',				-- fahrenheit or celsius
	text_buffer_size = 2048,					-- size of buffer for display of content of large variables - default 256
	update_interval = 1,						-- update interval
	imlib_cache_size = 0,                       -- disable image cache to get a new spotify cover per song


	--Placement

	alignment = 'middle_right',						-- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right,
												-- middle_left,middle_middle,middle_right,none
	--Arch Duoscreen
	--gap_x = -1910,
	gap_x = 15,									-- pixels between right or left border
	gap_y = 0,									-- pixels between bottom or left border
	minimum_height = 600,						-- minimum height of window
	minimum_width = 300,						-- minimum height of window
	maximum_width = 300,						-- maximum height of window

	--Graphical

	border_inner_margin = 10, 					-- margin between border and text
	border_outer_margin = 5, 					-- margin between border and edge of window
	border_width = 0, 							-- border width in pixels
	default_bar_width = 80,					    -- default is 0 - full width
	default_bar_height = 10,					-- default is 6
	default_gauge_height = 25,					-- default is 25
	default_gauge_width =40,					-- default is 40
	default_graph_height = 40,					-- default is 25
	default_graph_width = 0,					-- default is 0 - full width
	default_shade_color = '#000000',			-- default shading colour
	default_outline_color = '#000000',			-- default outline colour
	draw_borders = false,						-- draw borders around text
	draw_graph_borders = true,					-- draw borders around graphs
	draw_shades = false,						-- draw shades
	draw_outline = false,						-- draw outline
	stippled_borders = 0,						-- dashing the border

	--Textual

	extra_newline = false,						-- extra newline at the end - for asesome's wiboxes
	format_human_readable = true,				-- KiB, MiB rather then number of bytes
	font = 'Roboto Mono:size=10',  				-- font for complete conky unless in code defined
	max_text_width = 0,							-- 0 will make sure line does not get broken if width too smal
	max_user_text = 16384,						-- max text in conky default 16384
	override_utf8_locale = true,				-- force UTF8 requires xft
	short_units = true,							-- shorten units from KiB to k
	top_name_width = 21,						-- width for $top name value default 15
	top_name_verbose = false,					-- If true, top name shows the full command line of  each  process - Default value is false.
	uppercase = false,							-- uppercase or not
	use_spacer = 'none',						-- adds spaces around certain objects to align - default none
	use_xft = true,								-- xft font - anti-aliased font
	xftalpha = 1,								-- alpha of the xft font - between 0-1

	--Windows

	own_window = true,							-- create your own window to draw
	own_window_argb_value = 25,			    -- real transparency - composite manager required 0-255
	own_window_argb_visual = true,				-- use ARGB - composite manager required
	own_window_colour = '#000000',				-- set colour if own_window_transparent no
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',  -- if own_window true - just hints - own_window_type sets it
	own_window_transparent = false,				-- if own_window_argb_visual is true sets background opacity 0%
	own_window_title = 'system_conky',			-- set the name manually  - default conky "hostname"
	own_window_type = 'normal',				-- if own_window true options are: normal/override/dock/desktop/panel


	--Colours

	default_color = '#D9DDE2',  				-- default color and border color
	color1 = '#FF0000',
	color2 = '#e7e8f3',
	color3 = '#cccccc',
	color4 = '#D9BC83',
	color5 = '#20577a',
    cocor5default = '#00BFFF',
	color6 = '#FFFFFF',

	--Signal Colours
	color7 = '#1F7411',  						--green
	color8 = '#FFA726',  						--orange
	color9 = '#F1544B',  						--firebrick

    --Lua


};

conky.text = [[
${color6}${voffset 4}${font GE Inspira:size=50}${alignc}${time %l}:${time %M} ${time %p}${font}${color}
${color6}${voffset 4}${font GE Inspira:size=12}${alignc}${time %A} ${time %B} ${time %e}, ${time %Y}${font}${color}

${color5}${font Roboto:size=10}${voffset 2}S Y S T E M   ${hr 2}${font}${color}
${color2}${voffset 8}Hostname:${color} ${alignr}${nodename}
${color2}Distro:${color}${alignr}$sysname $kernel ${alignr}${execi 6000 lsb_release -a | grep 'Release'|awk {'print $2""$3""$4""$5'}}
${color2}Kernel:${color}${alignr}${exec uname} ${exec uname -r}
#Nvidia: ${alignr}${execp  nvidia-smi --query-supported-clocks=gpu_name --format=csv,noheader}
#Nvidia Driver: ${alignr}${execi 60000 nvidia-smi | grep "Driver Version"| awk {'print $3'}}
${color2}Uptime:${color} ${alignr}${uptime}
${color5}${font Roboto:size=10}P R O C E S S O R S  ${hr 2}${font}${color}
${color2}CPU Freq:${color} $alignr${freq}MHz
${color2}CPU Temp:${color} $alignr${exec sensors | grep 'Core 0' | awk '{print $3}' | cut -c2-3}°C / ${color} $alignr${exec sensors | grep 'Core 1' | awk '{print $3}' | cut -c2-3}°C / ${color} $alignr${exec sensors | grep 'Core 2' | awk '{print $3}' | cut -c2-3}°C / ${color} $alignr${exec sensors | grep 'Core 3' | awk '{print $3}' | cut -c2-3}°C
${color2}History:${color} ${alignr}${cpugraph 8,100}
${color2}${offset 30}CPU Core 1:${color} ${alignr}${offset -10}${cpu cpu1}%${alignr}${cpubar cpu1}
${color2}${offset 30}CPU Core 2:${color} ${alignr}${offset -10}${cpu cpu2}%${alignr}${cpubar cpu2}
${color2}${offset 30}CPU Core 3:${color} ${alignr}${offset -10}${cpu cpu3}%${alignr}${cpubar cpu3}
${color2}${offset 30}CPU Core 4:${color} ${alignr}${offset -10}${cpu cpu4}%${alignr}${cpubar cpu4}
${color2}Top Processes${goto 222}MEM%${goto 274}CPU%${color}
${voffset 4}     1  -  ${top name 1}${alignr}${goto 170} ${goto 222}${top mem 1}${goto 274}${top cpu 1} 
     2  -  ${top name 2}${alignr}${goto 170} ${goto 222}${top mem 2} ${goto 274}${top cpu 2} 
     3  -  ${top name 3}${alignr}${goto 170} ${goto 222}${top mem 3} ${goto 274}${top cpu 3}
     4  -  ${top name 4}${alignr}${goto 170} ${goto 222}${top mem 4} ${goto 274}${top cpu 4}
     5  -  ${top name 5}${alignr}${goto 170} ${goto 222}${top mem 5} ${goto 274}${top cpu 5}
${color5}${font Roboto:size=10}M E M O R Y   ${hr 2}${font}${color}
${color2}${offset 30}RAM: ${color}${alignr}${offset -10}${mem} / ${memmax}${alignr}${membar}
${color2}${offset 30}Swap:${color} ${alignr}${offset -10}${swap} / ${swapmax}${alignr}${swapbar}
${color2}Top Processes${goto 222}MEM%${goto 274}CPU%${color}
${voffset 4}     1  -  ${top_mem name 1}${alignr}${goto 170} ${goto 222}${top_mem mem 1} ${goto 274}${top_mem cpu 1}
     2  -  ${top_mem name 2}${alignr}${goto 170} ${goto 222}${top_mem mem 2} ${goto 274}${top_mem cpu 2}
     3  -  ${top_mem name 3}${alignr}${goto 170} ${goto 222}${top_mem mem 3} ${goto 274}${top_mem cpu 3}
     4  -  ${top_mem name 4}${alignr}${goto 170} ${goto 222}${top_mem mem 4} ${goto 274}${top_mem cpu 4}
     5  -  ${top_mem name 5}${alignr}${goto 170} ${goto 222}${top_mem mem 5} ${goto 274}${top_mem cpu 5}
${color5}${font Roboto:size=10}D R I V E S   ${hr 2}${font}${color}
${offset 30}${color2}Root  -  SSD:${color} ${alignr}${offset -10}${fs_used /} / ${fs_size /}${alignr}${fs_bar}
${offset 30}${color2}I/O Read:${color} ${alignr}${offset -10}${diskio_read /dev/nvme0n1p3}${alignr}${diskiograph_read /dev/nvme0n1p3 8,100}
${offset 30}${color2}I/O Write:${color} ${alignr}${offset -10}${diskio_write /dev/nvme0n1p3}${alignr}${diskiograph_write /dev/nvme0n1p3 8,100}

${offset 30}${color2}Home :${color} ${alignr}${offset -10}${fs_used /home} / ${fs_size /home}${alignr}${fs_bar}
${offset 30}${color2}I/O Read:${color} ${alignr}${offset -10}${diskio_read /dev/nvme0n1p3}${alignr}${diskiograph_read /dev/nvme0n1p3 8,100}
${offset 30}${color2}I/O Write:${color} ${alignr}${offset -10}${diskio_write /dev/nvme0n1p3}${alignr}${diskiograph_write /dev/nvme0n1p3 8,100}

${offset 30}${color2}Boot :${color} ${alignr}${offset -10}${fs_used /boot} / ${fs_size /boot}${alignr}${fs_bar /boot}
${offset 30}${color2}I/O Read:${color} ${alignr}${offset -10}${diskio_read /dev/nvme0n1p2}${alignr}${diskiograph_read /dev/nvme0n1p2 8,100}
${offset 30}${color2}I/O Write:${color} ${alignr}${offset -10}${diskio_write /dev/nvme0n1p2}${alignr}${diskiograph_write /dev/nvme0n1p2 8,100}
${color5}${color5}${font Roboto:size=10}N E T W O R K   ${hr 2}${font}${color}
${color2}${offset 30}IP Address: ${color} ${alignr}${offset -10$}${addrs wlo1}
${color2}${offset 30}Eth Up:${color} ${alignr}${offset -10$}${upspeed wlo1}${alignr}${upspeedgraph wlo1 8,100}
${color2}${offset 30}Eth Down:${color} ${alignr}${offset -10$}${downspeed wlo1}${alignr}${downspeedgraph wlo1 8,100}
#${font Roboto:size=10}N V I D I A   ${hr 2}${font}
#${font Roboto:size=10,weight:bold}${color5}${execp  nvidia-smi --query-supported-clocks=gpu_name --format=csv,noheader}${font}
#${font StyleBats:size=20}u${font}${offset 8}${voffset -12}GPU Temp ${alignr}${execi 60 nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader} °C
#${offset 30}Fan Speed ${alignr}${execi 60 nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t} %
#${offset 30}GPU Clock ${alignr}${execi 60 nvidia-settings -q GPUCurrentClockFreqs | grep -m 1 Attribute | awk '{print $4}' | sed -e 's/\.//' | cut -d, -f1} MHz
#${offset 30}Mem Clock ${alignr}${execi 86400 nvidia-settings -q all| grep -m 1 GPUCurrentProcessorClockFreqs | awk '{print $4}' | sed 's/.$//'} MHz
#${offset 30}Mem Used ${alignr}${execi 60 nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t} / ${exec nvidia-settings -q [gpu:0]/TotalDedicatedGPUMemory -t} MiB0
]];

Beitrag geändert von Nick_0278 (03.05.2020 22:04:24)

Offline

Schnellantwort auf dieses Thema

Schreibe deinen Beitrag und versende ihn
Deine Antwort

Fußzeile des Forums