You are not logged in.
My conky, one line with icons but all I need right now.
Can I get a copy of this conkyrc config?
Offline
Here's mine. Combination of conky, lua, cairo.
Offline
Here's mine. Combination of conky, lua, cairo.
Could you post your configuration, please?
Offline
Offline
conky.config = {
-- *********************
-- Conky theme by Valso
-- *********************
background = false,
double_buffer = true,
alignment = 'top_right',
border_width = 0,
cpu_avg_samples = 2,
default_color = 'color2',
default_outline_color = 'black',
default_shade_color = 'black',
draw_borders = false,
draw_graph_borders = true,
draw_outline = true,
draw_shades = false,
gap_x = 4,
gap_y = 4,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
own_window = true,
own_window_type = 'dock',--types: normal, desktop, dock, override, panel
own_window_transparent = false,
own_window_colour = '#000000',
own_window_argb_visual = true,
own_window_argb_value = 75,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
minimum_width = 200, minimum_height = 300,
stippled_borders = 0,
update_interval = 2.0,
uppercase = false,
use_spacer = 'none',
show_graph_scale = false,
show_graph_range = false,
use_xft = true,
xftalpha = 0.1,
-- xftfont Open Sans:size=15
color0 = '#FFFFFF',--white
color1 = '#FF0000',--red
color2 = '#E2B582',--baige
color3 = '#00BF00',--nVidia green
color4 = '#00BFFF',--sky blue
color5 = '#000000',--black
color6 = '#E57231',--orange
color7 = '#A17FFF',--light purple
color8 = '#C2C2C2',--silver
color9 = '#FFFF00',--yellow
};
conky.text = [[
${color4}${font Open Sans:style=Bold:pixelsize=20}${alignc}Intel Core i7-4770
${color6}${font Open Sans:style=Bold:pixelsize=20}CPU Load ${alignr}${cpu cpu0}%
${color2}CPU Temp ${color2}${alignr}${hwmon 0 temp 1}° C
#${color4}CPU Fan: ${alignr}${hwmon 1 fan 1}
${color7}CPU Freq ${color7}${alignr}${freq_g} GHz
${color3}${font Open Sans:style=Bold:pixelsize=20}${alignc}nVIDIA GTX 1660 Ti 6GB
${color3}GPU Load ${alignr}${color2}${nvidia gpuutil}%
${color3}GPU Fan Speed ${color2}${alignr}${execi 60 nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t}%
${color3}GPU Temp${color2}${alignr}${execi 60 nvidia-settings -query GPUCoreTemp| grep gpu | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}° C
${color3}Driver version${color2}${alignr}${execi 60 nvidia-smi --query-gpu=driver_version --format=csv,noheader}
${color1}${font Open Sans:style=Bold:pixelsize=20}${alignc}KERNEL VERSION
${color9}${font Open Sans:style=Bold:pixelsize=20}${alignc}${kernel}
${color2}RAM: ${color2}${alignr}${mem} ${color0}/ ${color2}${memmax}
#${color1}${membar 25}
${color8}${top_mem name 1} $alignr ${top_mem mem_res 1}
${color8}${top_mem name 2} $alignr ${top_mem mem_res 2}
${color8}${top_mem name 3} $alignr ${top_mem mem_res 3}
${color2}Storages: Used ${color0} | ${color2}Free ${color0}
${color2}SSD-Arch: ${fs_used /mnt/} ${color0} | ${color2} ${fs_free /mnt/}
${color2}HDD-1000: ${fs_used /media/1000GB/} ${color0} | ${color2} ${fs_free /media/1000GB/}
${color2}SSD-390G: ${fs_used /media/390GB/} ${color0} | ${color2} ${fs_free /media/390GB/}
${color2}Internet speeds in KiB/s
Down ${color9}${downspeedf enp0s25}| ${color2}Up ${color9}${upspeedf enp0s25}
]];
Screenshot: https://i.imgur.com/jtSJ5ie.png
Offline
Can anyone tell me how to insert a newline in a lua script?
draw_dial(cr, conky_parse ("${wireless_link_qual_perc wlan0}"), conky_parse ("${wireless_essid wlan0} ${addr wlan0}"),
Between the SSID and the IP address, it works on one line but some SSID are too long. I have tried \n \r and conky voffset, nothing. I am not expert in conky or lua.
Offline
A quick google search suggests that you can simply press enter while writing the script and it will be perceived as a new line:
You can enter newlines directly into the string using long strings:
local str = [[Hello World]]
Offline
A quick google search suggests that you can simply press enter while writing the script and it will be perceived as a new line:
You can enter newlines directly into the string using long strings:
local str = [[Hello World]]
Yes, I tried that, it is in the conky_parse tags and doesn't work. Thanks, and it made me check.
Offline
doesn't work
Says you. I just tried it in my conky and it DOES work:
${color3}${font Open Sans:style=Bold:pixelsize=20}${alignc}nVIDIA GTX 1660 Ti 6GB
${color3}GPU
L
o
a
d ${alignr}${color2}${nvidia gpuutil}%
${color3}GPU Fan Speed ${color2}${alignr}${execi 60 nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t}%
${color3}GPU Temp${color2}${alignr}${execi 60 nvidia-settings -query GPUCoreTemp| grep gpu | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}° C
${color3}Driver version${color2}${alignr}${execi 60 nvidia-smi --query-gpu=driver_version --format=csv,noheader}
Offline
conky_parse ("${wireless_essid wlan0} ${addr wlan0}"),
It is in the conky_parse of a lua script, between "wlan0} ${addr" I need a newline.
Unless you are saying I can add something to the conky part and call that in lua?
Last edited by SimonJ (2021-07-24 13:41:13)
Offline
If you're trying to do what I think you wanna do, you can simply do it like this:
wlan0}
${addr
and it will appear like a new line in the conky window.
Last edited by Valso (2021-07-24 15:05:03)
Offline
It is in the lua script I need the newline, and a newline in the code does not make a change.
It is not terrible, I can live with it as it, I just wondered if there was a code that would do it.
Thanks anyway, it can stay as it is.
Last edited by SimonJ (2021-07-25 07:22:06)
Offline
I don't see much point in new line in conky_parse but if it's just for beautification of the code, you can just place the cursor right after the comma and press enter in order to move the entire conky_parse to a new line.
As for the lua script, I already showed you it works with a new line. If new line doesn't work on your end, make sure you have converted the script to the new version. A few months ago there was a lua update which caused old scripts not to work and they had to be converted to the new version. Here's how to convert it: https://github.com/brndnmtthws/conky/bl … onvert.lua
Offline
I found a cheat to fix the problem, I moved one line into the conky script and the other in the lua script.
Last edited by SimonJ (2021-07-25 18:55:00)
Offline
I found a cheat to fix the problem, I moved one line into the conky script and the other in the lua script.
Maybe a bit late, but I just moved the position one font size down. Maybe \n works as well.
Offline
Just a simple, ergonomic design courtesy of Automatik.
https://i.imgur.com/9EhoWyJ.png
Mod Edit: removed oversized image.
Last edited by Cave_painter0 (2022-01-21 22:33:20)
Offline
<oversized image that got uninlined>
Please remember that the Code of Conduct's guidelines for the BBS explicitly call out image size requirements (note how everyone includes a thumbnail of their screenshot which links to the larger image).
All the best,
-HG
Offline
Just a little post to keep the thread active; conky configs are good for fun and inspiration
Mine is quite utilitarian and basic, but it's good info to have on the little laptop screen to the right, while I work on the big screen to the left.
The most sophisticated thing about it is that it shows both wifi and wired network info, and warns if both are active at the same time (I use NetworkManager and a dispatcher script to toggle wireless depending on LAN cable being plugged in)
The left config showing time:
conky.config = {
alignment = 'top_middle',
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'grey',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'Noto Sans Light:size=12',
gap_x = -200,
gap_y = 20,
minimum_height = 5,
minimum_width = 5,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = true,
own_window_argb_value = 0,
own_window_argb_visual = true,
own_window_class = 'Conky',
own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
own_window_transparent = true,
own_window_type = 'desktop',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
use_xft = true,
}
conky.text = [[
${font Noto Sans Light:size=40} ${time %A}${font}
${font Noto Sans Light:size=40} ${time %B} ${time %d}${font}
${font Noto Sans Light:size=40} ${time %Y}, week ${time %V}${font}
${font Noto Sans Light:size=80}${time %T}${font}
${voffset 10}${font Noto Sans Light:size=20}${alignr}${time %Z} (${time %z})${font}
]]
The right config:
conky.config = {
alignment = 'top_right',
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'Noto Sans Mono:size=12',
gap_x = 20,
gap_y = 20,
minimum_height = 5,
minimum_width = 5,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = true,
own_window_argb_value = 0,
own_window_argb_visual = true,
own_window_class = 'Conky',
own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
own_window_transparent = true,
own_window_type = 'desktop',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 2.0,
uppercase = false,
use_spacer = 'none',
use_xft = true,
}
conky.text = [[${voffset 4}${color}${font :bold}HP EliteBook 840 G3${font}${image /home/username/.config/conky/archlogo.png -n -p 280x0 -s 98x30}
$hr
${color grey}Hostname: ${color}$nodename
${color grey}OS : ${color}$sysname $kernel $machine
${color grey}Uptime : ${color}$uptime
${color grey}Battery : ${color}$battery ${voffset 3}${battery_bar}${voffset -3}
${voffset 8}${color}${font :size=14}CPU ${font} (Intel Core i7-6500U)$hr
${voffset 4}${color grey}Core 0: ${color}${alignr}${freq_g 1} GHz ${color grey}Temperature: ${color}${execi 30 sensors | grep "Core 0" | awk '{print $3}'}
${color grey}Core 1: ${color}${alignr}${freq_g 2} GHz ${color grey}Temperature: ${color}${execi 30 sensors | grep "Core 1" | awk '{print $3}'}
${voffset 4}${color grey}Thread 1: ${color}${voffset 3}${cpubar cpu1}${voffset -3}
${color grey}Thread 2: ${color}${voffset 3}${cpubar cpu2}${voffset -3}
${color grey}Thread 3: ${color}${voffset 3}${cpubar cpu3}${voffset -3}
${color grey}Thread 4: ${color}${voffset 3}${cpubar cpu4}${voffset -3}
${voffset 4}${color grey}Process CPU% MEM%
${color} ${top name 1} ${top cpu 1} ${top mem 1}
${color} ${top name 2} ${top cpu 2} ${top mem 2}
${color} ${top name 3} ${top cpu 3} ${top mem 3}
${voffset 6}${color}${font :size=14}RAM ${font}$hr
${voffset 4}${color grey}Memory usage: ${color}${memperc}% of ${memmax} ${voffset 3}${membar}${voffset -3}
${voffset 4}${color grey}Process MEM% CPU%
${color} ${top_mem name 1} ${top_mem mem 1} ${top_mem cpu 1}
${color} ${top_mem name 2} ${top_mem mem 2} ${top_mem cpu 2}
${color} ${top_mem name 3} ${top_mem mem 3} ${top_mem cpu 3}
${voffset 6}${color}${font :size=14}DISK ${font}$hr
${voffset 4}${color grey}Local root: $color${fs_free /} ${goto 215}${color grey}/ ${color} ${fs_size /}${goto 335}${voffset 3}${fs_bar /}${voffset -3}
${color grey}Gentoo : ${color}${fs_free /mnt/Gentoo} ${goto 215}${color grey}/ ${color}${fs_size /mnt/Gentoo}${goto 335}${voffset 3}${fs_bar /mnt/Gentoo}${voffset -3}
${color grey}Google : ${color}${fs_free /home/username/Cloud/GoogleDrive} ${goto 215}${color grey}/ ${color}${fs_size /home/username/Cloud/GoogleDrive}${goto 335}${voffset 3}${fs_bar /home/username/Cloud/GoogleDrive}${voffset -3}
${color grey}OneDrive : $color${fs_free /home/username/Cloud/OneDrive-Private} ${goto 215}${color grey}/ ${color}${fs_size /home/username/Cloud/OneDrive-Private}${goto 335}${voffset 3}${fs_bar /home/username/Cloud/OneDrive-Private}${voffset -3}
${color grey}Dropbox : $color${fs_free /home/username/Cloud/Dropbox} ${goto 215}${color grey}/ ${color}${fs_size /home/username/Cloud/Dropbox}${goto 335}${voffset 3}${fs_bar /home/username/Cloud/Dropbox}${voffset -3}
${color grey}Mega : $color${fs_free /home/username/Cloud/Mega} ${goto 215}${color grey}/ ${color}${fs_size /home/username/Cloud/Mega}${goto 335}${voffset 3}${fs_bar /home/username/Cloud/Mega}${voffset -3}
${color grey}Pelle : $color${fs_free /mnt/Pelle/Felles} ${goto 215}${color grey}/ ${color}${fs_size /mnt/Pelle/Felles}${goto 335}${voffset 3}${fs_bar /mnt/Pelle/Felles}${voffset -3}
${voffset 4}${color grey} Read: ${color}${diskio_read /dev/sda} ${goto 230}${color grey}Write: ${color}${diskio_read /dev/sda}
${voffset 6}${color}${font :size=14}NETWORK ${font}$hr
${if_existing /proc/net/route wlp2s0}\
${if_existing /proc/net/route enp0s31f6}\
${voffset 4}${color grey}Warning: ${color}Both Wi-Fi and wired network active!
${else}\
${voffset 4}${color grey}ESSID: ${color}${wireless_essid wlp2s0}${goto 240}${color grey}Quality: ${color}${wireless_link_qual_perc wlp2s0}%
${voffset 4}${color grey} IP : ${color}${addr wlp2s0}${goto 240}${voffset 8}${color grey}Down:${goto 300}${color}${downspeed wlp2s0}
${voffset -8}${color grey} Zt : ${color}${addr zerotierdevice}${goto 240}${voffset 8}${color grey}Up :${goto 300}${color}${upspeed wlp2s0}
${voffset -8}${color grey} GW : ${color}${gw_ip}
${color grey} Pub: ${color}${texeci 30 ~/.config/conky/pubIP.sh}
${endif}\
${else}\
${if_existing /proc/net/route enp0s31f6}\
${voffset 4}${color grey}Wired network: ${color}Active
${voffset 4}${color grey} IP : ${color}${addr enp0s31f6}${goto 240}${voffset 8}${color grey}Down:${goto 300}${color}${downspeed enp0s31f6}
${voffset -8}${color grey} Zt : ${color}${addr zerotierdevice}${goto 240}${voffset 8}${color grey}Up :${goto 300}${color}${upspeed enp0s31f6}
${voffset -8}${color grey} GW : ${color}${gw_ip}
${color grey} Pub: ${color}${texeci 30 ~/.config/conky/pubIP.sh}
${endif}\
${endif}\
${voffset 6}${color}${font :size=14}UPDATES ${font}$hr
${voffset 4}${color grey} Arch: ${color}${execi 600 checkupdates | wc -l}${goto 230}${color grey}AUR: ${color}${execi 600 auracle outdated | wc -l}
]]
Script to get public IP:
curl --retry 4 "https://icanhazip.com/"
Last edited by Ferdinand (2022-08-22 07:07:29)
Offline
Nice, @Ferdinand.
Frumpus ♥ addict
[mu'.krum.pus], [frum.pus]
Offline
Here are a couple I created for a 480x1920 screen that sits along side my workstation.
conky.config ={
-- CONKY SETTINGS
background = true,
update_interval = 2,
total_run_times = 0,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
text_buffer_size = 32768,
-- CONKY: WINDOW SPECIFICATIONS
own_window = true,
own_window_argb_value = 192,
own_window_argb_visual = true,
own_window_class = 'TwistedConky',
own_window_title = 'TwistedConky',
own_window_colour = '#0b0d18',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
--own_window_transparent = true,
own_window_transparent = false,
own_window_type = 'normal',
own_window_type = 'desktop',
border_inner_margin = 6,
border_width = 5,
minimum_height = 1920,
minimum_width = 450,
maximum_width = 450,
alignment = 'top_right',
gap_x = 10,
gap_y = 15,
-- GRAPHICS SETTINGS
draw_shades = false,
draw_outline = true,
draw_borders = false,
draw_graph_borders = true,
-- draw_graph_borders = false,
-- TEXT SETTINGS
use_xft = true,
font = 'Montserrat Regular:size=14',
xftalpha = 0.2,
uppercase = false,
-- Pad percentages to this many decimals (0 = no padding)
pad_percents = 2,
-- COLOUR SETTINGS
default_color = 'AAAAAA',
default_shade_color = '333333',
-- default_outline_color = '111111',
default_outline_color = '010101',
color1 = '009999',
color2 = 'CCCCCC',
color3 = 'EEEEEE',
color4 = '444444',
color5 = '555555',
color6 = 'FFFFFF',
color7 = '00ff00', -- Green
-- color7 = '73ba25', -- Green
color8 = 'ff3300', -- Red
};
conky.text = [[
${alignc}${color1}${font Montserrat Bold:size=40}${time %H:%M:%S}${font}${color}${alignr}
${voffset -20}
${alignc}${font Montserrat Light:size=14}${color1}${time %A %d %B %Y}${font}${alignr}
${color6}${hr 2}${color}
${voffset -20}
${font Montserrat Light:size=14}${color1}KERNEL:${color}${font} ${alignr}$kernel
${font Montserrat Light:size=14}${color1}UPTIME:${color}${font} ${alignr}$uptime_short
${font Montserrat Light:size=14}${color1}SYSTEM:${color}${font} ${alignr}Twisted Linux
${font Montserrat Light:size=14}${color1}PUBLIC:${color}${font} ${alignr}${execi 3600 wget -O - -q ipv4.icanhazip.com}
${voffset -20}
${font :size=16}${color1}MEMORY ${color6}${hr 2}${color}
${voffset -20}
${font :size=14}${font Montserrat Light:size=14}${color1}RAM:${font Montserrat Light:size=14}${color1}${goto 75}RAM %: ${goto 200}USED:${goto 365}${font Montserrat Light:size=14}MAX:
${font :size=14}${font Montserrat Light:size=14}${color}${font} ${goto 80}$memperc%${goto 195} $mem ${goto 360} $memmax${font}
${color4}${memgraph 15,300, 66ff66 006600 -t}${color}
${voffset -20}
${font :size=16}${color1}CPUs ${color6}${hr 2}${color}
${voffset -20}
${font :size=14}${font Montserrat Light:size=14}${color1}CPU:${color}${font} ${goto 100}${color}Intel Core i7-8700 @ 3.70GHz${color}${font}
${voffset -20}
${font Montserrat Light:size=14}${color1}01 - 04:${color}${font} ${goto 100}${cpu cpu1}% ${goto 200}${cpu cpu2 }% ${goto 300}${cpu cpu3 }% ${goto 400}${cpu cpu4 }%
${font Montserrat Light:size=14}${color1}05 - 08:${color}${font} ${goto 100}${cpu cpu5}% ${goto 200}${cpu cpu6 }% ${goto 300}${cpu cpu7 }% ${goto 400}${cpu cpu8 }%
${font Montserrat Light:size=14}${color1}09 - 12:${color}${font} ${goto 100}${cpu cpu9}% ${goto 200}${cpu cpu10}% ${goto 300}${cpu cpu11}% ${goto 400}${cpu cpu12}%
${voffset -20}
${goto 10}${font FontAwesome:size=16} ${font}${font Montserrat Light:size=14}${color1}CPU TEMP: ${font Montserrat Light:size=14}${color}${font} ${goto 240}${execi 5 sensors|grep 'Package id 0'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${color}
${goto 10}${font FontAwesome:size=16} ${font}${font Montserrat Light:size=14}${color1}Motherboard Temp:${font Montserrat Light:size=14}${color}${font}${goto 240}${execi 5 sensors|grep 'temp1'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C
${goto 10}${font FontAwesome:size=16} ${font}${font Montserrat Light:size=14}${color1}NVMe TEMP: ${font Montserrat Light:size=14}${color}${font}${goto 240}${execi 5 sensors | grep Composite: | awk '{gsub(/\+/, ""); print $2}' | tr '\n' ' '}
${font :size=16}${color1}${wireless_essid wlan0}${color6}${hr 2}${color}
${voffset -20}
${font Montserrat Light:size=14}${color1}LAN IP ADDR:${color}${font} ${alignr}${addr wlan0}
${voffset -20}
${font :size=14}${font Montserrat Light:size=14}${color1}SPEED: ${goto 100}UP: ${alignr}${font Montserrat Light:size=14}${color1}DOWN:
${font :size=14}${font Montserrat Light:size=14}${color}${font} ${goto 100}${upspeed wlan0}${alignr}${downspeed wlan0}${font}
${voffset -20}
${font Montserrat Light:size=14}${color1}UPLOAD: ${color}${font} ${goto 100}${color4}${upspeedgraph wlan0 15,360 FFFFFF FFFFFF -t}${color}
${voffset -20}
${font Montserrat Light:size=14}${color1}DOWN:${color}${font} ${goto 100}${color4}${downspeedgraph wlan0 15,360 FFFFFF FFFFFF -t}${color}
${voffset -20}
${font :size=14}${font Montserrat Light:size=14}${color1}TOTAL: ${goto 100}UP: ${alignr}${font Montserrat Light:size=14}${color1}DOWN:
${font :size=14}${font Montserrat Light:size=14}${color}${font} ${goto 100}${totalup wlan0}${alignr} ${totaldown wlan0}${font}
${font :size=16}${color1}${wireless_essid wlan1} ${color6}${hr 2}${color}
${voffset -20}
${font Montserrat Light:size=14}${color1}LAN IP ADDR:${color}${font} ${alignr}${addr wlan1}
${voffset -20}
${font :size=14}${font Montserrat Light:size=14}${color1}SPEED: ${goto 100}UP: ${alignr}${font Montserrat Light:size=14}${color1}DOWN:
${font :size=14}${font Montserrat Light:size=14}${color}${font} ${goto 100}${upspeed wlan1}${alignr} ${downspeed wlan1}${font}
${voffset -20}
${font Montserrat Light:size=14}${color1}UPLOAD: ${color}${font} ${goto 100}${color4}${upspeedgraph wlan1 15,360 FFFFFF FFFFFF -t}${color}
${voffset -20}
${font Montserrat Light:size=14}${color1}DOWN:${color}${font} ${goto 100}${color4}${downspeedgraph wlan1 15,360 FFFFFF FFFFFF -t}${color}
${voffset -20}
${font :size=14}${font Montserrat Light:size=14}${color1}TOTAL: ${goto 100}UP: ${alignr}${font Montserrat Light:size=14}${color1}DOWN:
${font :size=14}${font Montserrat Light:size=14}${color}${font} ${goto 100}${totalup wlan1}${alignr} ${totaldown wlan1}${font}
${font :size=16}${color1}SOCSCI Status${color6}${hr 2}${color}
${goto 20}${font DroidSansMono:normal:size=12}${color1}arc-hci-1:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/pingtest.sh 10.131.0.75} ${goto 270}${font DroidSansMono:normal:size=12}${color1}arc-hci-2:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/pingtest.sh 10.131.0.77}
${goto 20}${font DroidSansMono:normal:size=12}${color1}2022-DC1:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 10.131.36.10} ${goto 270}${font DroidSansMono:normal:size=12}${color1}2022-DC2:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 10.131.0.17}
${goto 20}${font DroidSansMono:normal:size=12}${color1}itsg-dc1:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 10.131.0.222} ${goto 270}${font DroidSansMono:normal:size=12}${color1}itsg-dc2:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 10.131.0.236}
${goto 20}${font DroidSansMono:normal:size=12}${color1}CORE 1:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 129.67.99.71} ${goto 270}${font DroidSansMono:normal:size=12}${color1}CORE 2:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 129.67.99.72}
${goto 20}${font DroidSansMono:normal:size=12}${color1}PESCore:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 129.67.99.188} ${goto 270}${font DroidSansMono:normal:size=12}${color1}PESStack:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 129.67.99.189}
${goto 20}${font DroidSansMono:normal:size=12}${color1}Sonicwall:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 129.67.99.251} ${goto 270}${font DroidSansMono:normal:size=12}${color1}MM:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 10.131.0.160}
${goto 20}${font DroidSansMono:normal:size=12}${color1}MD1:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 192.168.2.2} ${goto 270}${font DroidSansMono:normal:size=12}${color1}MD2:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 192.168.2.3}
${goto 20}${font DroidSansMono:normal:size=12}${color1}MSA-SAN:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 10.131.0.27} ${goto 270}${font DroidSansMono:normal:size=12}${color1}HP-DL380-Mrb:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 10.131.0.78}
${font :size=16}${color1}DISKS ${color6}${hr 2}${color}
${voffset -20}
${font Montserrat Light:size=14}${color1}HD DATA:${color}${font} ${goto 120}${fs_used /} ${color4}/${color} ${fs_size /} ${alignr}${fs_free_perc /}%
${voffset -20}
${font Montserrat Light:size=14}${color1}DISK I/O:${color}${font} ${alignr}$diskio
${voffset -20}
${font Montserrat Light:size=14}${color1}READ: ${color}${font} ${goto 100}${color4}${diskiograph_read 15,360 FFFFFF FFFFFF 750}${color}
${font Montserrat Light:size=14}${color1}WRITE:${color}${font} ${goto 100}${color4}${diskiograph_write 15,360 FFFFFF FFFFFF 750}${color}
${voffset 6}
${font :size=16}${color1}PROCESSES ${color6}${hr 2}${color}
${voffset -20}
${font :size=14}${font Montserrat Light:size=14}${color1}TOTAL:${color}${font} ${alignr}${processes} ${color1}${font :size=10}processes${font}${color}${font}
${voffset -20}
${font Montserrat Light:size=14}${color1}APP NAME: ${goto 200}MEMORY: ${goto 380}CPU: ${color}${font}
${voffset -20}
${font Montserrat Light:size=14}${color1}${top_mem name 1} ${color}${goto 190}${top mem 1} % ${goto 370}${top cpu 1} % ${font}
${font Montserrat Light:size=14}${color1}${top_mem name 2} ${color}${goto 190}${top mem 2} % ${goto 370}${top cpu 2} % ${font}
${font Montserrat Light:size=14}${color1}${top_mem name 3} ${color}${goto 190}${top mem 3} % ${goto 370}${top cpu 3} % ${font}
${font Montserrat Light:size=14}${color1}${top_mem name 4} ${color}${goto 190}${top mem 4} % ${goto 370}${top cpu 4} % ${font}
${font Montserrat Light:size=14}${color1}${top_mem name 5} ${color}${goto 190}${top mem 5} % ${goto 370}${top cpu 5} % ${font}
${font Montserrat Light:size=14}${color1}${top_mem name 6} ${color}${goto 190}${top mem 6} % ${goto 370}${top cpu 6} % ${font}
${color}${font Montserrat Light:size=12}${goto 325}by TwistedRisers${color}${font} ${voffset 6}
]];
The shell script for checking the servers. (snmptest.sh)
#!/bin/bash
if snmpwalk -Os -c mycommunitystring -v1 -CE sysORTable $1 system > /dev/null; then
echo -n "\${color7}UP\${color}"
else
echo -e "\${color8}DOWN\${color}"
fi
Last edited by TwistedRisers (2024-03-24 00:51:05)
"I have nothing to say."
Offline
conky.config = {
background = false,
update_interval = 2,
cpu_avg_samples = 2,
net_avg_samples = 2,
temperature_unit = 'celsius',
double_buffer = true,
no_buffers = true,
text_buffer_size = 2048,
gap_x = 0,
gap_y = 0,
minimum_height = 1920, -- minimum height of window
minimum_width = 460, -- minimum height of window
maximum_width = 460, -- maximum height of window
own_window = true,
own_window_class = 'TwistedConky',
own_window_title = 'TwistedConky',
own_window_argb_visual = true,
own_window_argb_value = 120,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_colour = '#1a1919',
background = false,
border_inner_margin = 10,
border_outer_margin = 0,
alignment = 'top_right',
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
override_utf8_locale = true,
use_xft = true,
font = 'DejaVu Sans:size=12',
xftalpha = 0.5,
uppercase = false,
-- COLOUR SETTINGS
default_color = 'AAAAAA',
default_shade_color = '333333',
-- default_outline_color = '111111',
default_outline_color = '010101',
color1 = '009999',
color2 = 'CCCCCC',
color3 = 'EEEEEE',
color4 = '444444',
color5 = '555555',
color6 = '666666',
color7 = '00ff00', -- Green
color8 = 'ff3300', -- Red
};
conky.text = [[
${alignc}${color1}${font Montserrat Bold:size=40}${time %H:%M:%S}${font}${color}${alignr}
${voffset -20}
${alignc}${font Montserrat Light:size=14}${color1}${time %A %d %B %Y}${font}
${voffset -20}
${goto 5}${font zekton:style=Bold:pixelsize=14}${color2}SYSTEM${font Snap.se:size=14} ${color1}${hr}${color}
${goto 10}${font OpenLogos:size=20}J${font} OS: TwistedLinux
${goto 10}${font StyleBats:size=20}q${font} Kernel: ${kernel}
${goto 10}${font StyleBats:size=20}x${font} Hostname: ${nodename}
${goto 10}${font StyleBats:size=20}p${font} Uptime: ${uptime}
${goto 10}${font StyleBats:size=20}k${font} Processes: ${processes} ($running_processes running)
${voffset -5}
${goto 5}${font zekton:style=Bold:pixelsize=14}${color2}SYSTEM LOAD${font Snap.se:size=14} ${color1}${hr}${color}
${goto 10}${font FontAwesome:size=18} ${font}${voffset -5}${font Snap.se:size=14} Motherboard Temp: ${execi 5 sensors|grep 'temp1'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C
${goto 30} NVMe Temp: ${execi 5 sensors | grep Composite: | awk '{gsub(/\+/, ""); print $2}' | tr '\n' ' '}
${goto 10}${font FontAwesome:size=18}${font}${voffset -5}${font Snap.se:size=14} Load: ${loadavg} ${color1}${cpugraph cpu0 18,210}${color}
${goto 10}${font FontAwesome:size=18} ${font}${voffset -5}${font Snap.se:size=14}Intel® Core i7-8700K CPU @ 3.70GHz
${goto 165}Package: ${execi 5 sensors|grep 'Package id 0'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C
${voffset -20}
${goto 10}Core 0: ${execi 5 sensors|grep 'Core 0'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${goto 160} | CPU1: ${goto 260}${cpu cpu1}%${goto 310}${cpubar cpu1 18,50}${goto 365}${freq_g 1}GHz
${goto 160} | CPU2: ${goto 260}${cpu cpu2}%${goto 310}${cpubar cpu2 18,50}${goto 365}${freq_g 2}GHz
${goto 10}Core 1: ${execi 5 sensors|grep 'Core 1'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${goto 160} | CPU3: ${goto 260}${cpu cpu3}%${goto 310}${cpubar cpu3 18,50}${goto 365}${freq_g 3}GHz
${goto 160} | CPU4: ${goto 260}${cpu cpu4}%${goto 310}${cpubar cpu4 18,50}${goto 365}${freq_g 4}GHz
${goto 10}Core 2: ${execi 5 sensors|grep 'Core 2'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${goto 160} | CPU5: ${goto 260}${cpu cpu5}%${goto 310}${cpubar cpu5 18,50}${goto 365}${freq_g 5}GHz
${goto 160} | CPU6: ${goto 260}${cpu cpu6}%${goto 310}${cpubar cpu6 18,50}${goto 365}${freq_g 6}GHz
${goto 10}Core 3: ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${goto 160} | CPU7: ${goto 260}${cpu cpu7}%${goto 310}${cpubar cpu7 18,50}${goto 365}${freq_g 7}GHz
${goto 160} | CPU8: ${goto 260}${cpu cpu8}%${goto 310}${cpubar cpu8 18,50}${goto 365}${freq_g 8}GHz
${goto 10}${font FontAwesome:size=18}${font}${font Snap.se:size=14}${voffset -5} $mem / $memmax ($memperc%) | Swap :${swapperc}%
${color1}${voffset 4}${memgraph}${color}
${voffset -5}
${goto 5}${font zekton:style=Bold:pixelsize=14}${color2}TOP PROCESSES${font Snap.se:size=14} ${color1}${hr}${color}
${goto 10}Highest CPU/MEM ${goto 230} CPU ${goto 350} MEM
${goto 10}${top name 1}${goto 230}${top cpu 1}${goto 355}${top mem 1}
${goto 10}${top name 2}${goto 230}${top cpu 2}${goto 355}${top mem 2}
${goto 10}${top name 3}${goto 230}${top cpu 3}${goto 355}${top mem 3}
${goto 10}${top name 4}${goto 230}${top cpu 4}${goto 355}${top mem 4}
${goto 10}${top name 5}${goto 230}${top cpu 5}${goto 355}${top mem 5}
${voffset -5}
${goto 5}${font zekton:style=Bold:pixelsize=14}${color2}FILESYSTEM ${font Snap.se:size=14} ${color1}${hr}${color}
${goto 10}${voffset 4}${font FontAwesome:size=16}${font} Root: ${alignr}${fs_free /} / ${fs_size /}
${goto 5}${voffset 4}${color1}${fs_bar /}${color}
${goto 10}${voffset 4}${font FontAwesome:size=16}${font} Storage: ${alignr}${fs_free /storage} / ${fs_size /storage}
${goto 5}${voffset 4}${color1}${fs_bar /storage}${color}
${goto 5}${font zekton:style=Bold:pixelsize=14}${color2}NETWORKS${font Snap.se:size=14} ${color1}${hr}${color}
${goto 10}${font FontAwesome:size=18}${font}${voffset -5}${font Snap.se:size=14}${goto 40}Public IPv4: ${alignr}${execi 3600 wget -O - -q ipv4.icanhazip.com}
${goto 5}${font zekton:style=Bold:pixelsize=14}${color2}${wireless_essid wlan0}${font Snap.se:size=14} ${color1}${hr}${color}
${goto 20}${alignc}${font Snap.se:size=14} WLAN channel: ${wireless_channel wlan0} | freq: ${wireless_freq wlan0}
${voffset -25}
${goto 10}${font FontAwesome:size=18}${font}${voffset -5}${font Snap.se:size=14}${goto 45}SSID: ${alignr}${wireless_essid wlan0}
${goto 10}${font FontAwesome:size=18}${font}${voffset -5}${font Snap.se:size=14}${goto 45}Signal: ${alignr}${wireless_link_qual wlan0}%
${goto 10}${font FontAwesome:size=18}${font}${voffset -5}${font Snap.se:size=14}${goto 45}wlan0: ${alignr}${addr wlan0}
${goto 10}${font FontAwesome}${font}${voffset -5}${font Snap.se:size=14}${goto 45}Down ${downspeed wlan0}/s ${alignr}${font FontAwesome}${font}${font Snap.se:size=14}Up ${upspeed wlan0}/s
${goto 10}${color1}${downspeedgraph wlan0 25,220} ${alignr}${upspeedgraph wlan0 25,220}${color}
${goto 10}Total ${totaldown wlan0} ${alignr}Total ${totalup wlan0}
${goto 5}${font zekton:style=Bold:pixelsize=14}${color2}${wireless_essid wlan1}${font Snap.se:size=14} ${color1}${hr}${color}
${goto 20}${alignc}${font Snap.se:size=14} WLAN channel: ${wireless_channel wlan1} | freq: ${wireless_freq wlan1}
${voffset -25}
${goto 10}${font FontAwesome:size=18}${font}${voffset -5}${font Snap.se:size=14}${goto 45}SSID: ${alignr}${wireless_essid wlan1}
${goto 10}${font FontAwesome:size=18}${font}${voffset -5}${font Snap.se:size=14}${goto 45}Signal: ${alignr}${wireless_link_qual wlan1}%
${goto 10}${font FontAwesome:size=18}${font}${voffset -5}${font Snap.se:size=14}${goto 45}wlan1: ${alignr}${addr wlan1}
${goto 10}${font FontAwesome}${font}${voffset -5}${font Snap.se:size=14}${goto 45}Down ${downspeed wlan1}/s ${alignr}${font FontAwesome}${font}${font Snap.se:size=14}Up ${upspeed wlan1}/s
${goto 10}${color1}${downspeedgraph wlan1 25,220} ${alignr}${upspeedgraph wlan1 25,220}${color}
${goto 10}Total ${totaldown wlan1} ${alignr}Total ${totalup wlan1}
${goto 5}${font zekton:style=Bold:pixelsize=16}${color2}SOCSCI Status${font Snap.se:size=14} ${color1}${hr}${color}
${goto 20}${font DroidSansMono:normal:size=12}${color1}arc-hci-1:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/pingtest.sh 10.131.0.75} ${goto 270}${font DroidSansMono:normal:size=12}${color1}arc-hci-2:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/pingtest.sh 10.131.0.77}
${goto 20}${font DroidSansMono:normal:size=12}${color1}2022-DC1:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 10.131.36.10} ${goto 270}${font DroidSansMono:normal:size=12}${color1}2022-DC2:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 10.131.0.17}
${goto 20}${font DroidSansMono:normal:size=12}${color1}itsg-dc1:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 10.131.0.222} ${goto 270}${font DroidSansMono:normal:size=12}${color1}itsg-dc2:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 10.131.0.236}
${goto 20}${font DroidSansMono:normal:size=12}${color1}CORE 1:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 129.67.99.71} ${goto 270}${font DroidSansMono:normal:size=12}${color1}CORE 2:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 129.67.99.72}
${goto 20}${font DroidSansMono:normal:size=12}${color1}PESCore:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 129.67.99.188} ${goto 270}${font DroidSansMono:normal:size=12}${color1}PESStack:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 129.67.99.189}
${goto 20}${font DroidSansMono:normal:size=12}${color1}Sonicwall:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 129.67.99.251} ${goto 270}${font DroidSansMono:normal:size=12}${color1}MM:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 10.131.0.160}
${goto 20}${font DroidSansMono:normal:size=12}${color1}MD1:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 192.168.2.2} ${goto 270}${font DroidSansMono:normal:size=12}${color1}MD2:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 192.168.2.3}
${goto 20}${font DroidSansMono:normal:size=12}${color1}MSA-SAN:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 10.131.0.27} ${goto 270}${font DroidSansMono:normal:size=12}${color1}HP-DL380-Mrb:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 10.131.0.78}
${goto 20}${font DroidSansMono:normal:size=12}${color1}CPPM01:${goto 160} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 10.131.36.148} ${goto 270}${font DroidSansMono:normal:size=12}${color1}CPPM02:${goto 410} ${font DroidSansMono:normal:size=12}${color}${execpi 60 ~/.config/conky/snmptest.sh 10.131.36.149}
${color2}${font Montserrat Light:size=10}${goto 325}by TwistedRisers${color}${font} ${voffset 5}
]];
The shell script for checking the servers. (snmptest.sh)
#!/bin/bash
if snmpwalk -Os -c mycommunitystring -v1 -CE sysORTable $1 system > /dev/null; then
echo -n "\${color7}UP\${color}"
else
echo -e "\${color8}DOWN\${color}"
fi
Last edited by TwistedRisers (2024-03-24 00:50:42)
"I have nothing to say."
Offline