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.