Update 'conky/back-to-basic/back-to-basic.conf'

This commit is contained in:
wp 2023-08-18 00:04:28 -05:00
parent f93bdddd3d
commit d5574a2dc0
1 changed files with 30 additions and 21 deletions

View File

@ -20,7 +20,7 @@ conky.config = {
minimum_width = 680,
minimum_height = 500,
draw_shades = true,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
@ -47,7 +47,9 @@ conky.config = {
default_outline_color = 'darkgray',
color2 = 'darkred',
color2 = '4285F4',
color3 = '0099ff',
color3 = 'ff7200',
color4 = 'ff000d',
lua_load = '~/.conky/back-to-basic/lua/back-to-basic.lua',
@ -58,14 +60,20 @@ conky.config = {
conky.text = [[
########################################## header
###################### release and date
${color3}${font NotoSans:bold:size=16}${alignc}${execi 86400 lsb_release -ds} "${execi 86400 lsb_release -cs}" ${color}
${color2}${font NotoSans:bold:size=16}${alignc}${texeci 86400 inxi -Sxy1 | grep Distro | cut -c14- | sed 's/.$//'} ${color}
# ${color3}${font NotoSans:bold:size=16}${alignc}${execi 86400 lsb_release -ds} "${execi 86400 lsb_release -cs}" ${color}
# ${color3}${font NotoSans:bold:size=16}${alignc}${execi 86400 lsb_release -d | cut -c14-} "${execi 86400 lsb_release -c | cut -c11-}" ${color}
# ${goto 310}${voffset}${font NotoSans:bold:size=10}${alignc}${execi 300 lsb_release -c | cut -c11-} ${execi 300 lsb_release -r | cut -c9-}
# ${goto 310}${font NotoSans:size=10}${time %A %d %b %Y}
#
###################### base OS release
${voffset -30}
${color2}${font NotoSans:bold:size=12}${alignc}${texeci 86400 inxi -Sxy1 | grep base | cut -c14- | sed 's/.$//'}${color}
###################### debian release
${color2}${font NotoSans:size=10}${alignc}${texeci 86400 cat /etc/debian_version}${color}
########################################## left column
###################### CPU
${color3}${font NotoSans:bold:size=9}CPU USAGE ${color}
${color2}${font NotoSans:bold:size=9}CPU USAGE ${color}
${font NotoSans:style=Bold:size=9}CPU - ${font NotoSans:size=9}${cpu cpu0}% ${goto 92}\
${if_match ${cpu cpu0} <= 75}${color2}${else}${if_match ${cpu cpu0} > 90}${color4}${else}${if_match ${cpu cpu0} > 75}${color3}${endif}${endif}${endif} \
${cpubar cpu0 4, 250}${color}
@ -84,7 +92,7 @@ ${cpubar cpu4 4, 250}${color}
###################### temperature
# NOTE: Temperature from /sys/devices/platform/coretemp.0/...
${color3}${font NotoSans:bold:size=9}TEMPERATURE ${color}
${color2}${font NotoSans:bold:size=9}TEMPERATURE ${color}
${font NotoSans:style=Bold:size=9}CORE 01 - ${font NotoSans:size=9}\
${platform coretemp.0/hwmon/hwmon3 temp 2}°C [${freq_g 1}GHz] ${color}
\
@ -113,7 +121,7 @@ ${font NotoSans:style=Bold:size=9}SYS2 - ${font NotoSans:size=9}\
${hwmon 0 temp 2}°C ${color}
###################### disk free space
${color3}${font NotoSans:bold:size=9}DISK FREE SPACE ${color}
${color2}${font NotoSans:bold:size=9}DISK FREE SPACE ${color}
${font NotoSans:style=Bold:size=9}/ ${goto 98} - ${font NotoSans:size=9}${fs_free_perc /}% ${goto 140}\
${if_match ${fs_free_perc /} > 20}${color2}${else}${if_match ${fs_free_perc /} <= 10}${color4}${else}${if_match ${fs_free_perc /} <= 20}${color3}${endif}${endif}${endif} \
${fs_bar_free 4,202 /}${color}
@ -122,13 +130,13 @@ ${fs_bar_free 4,202 /}${color}
#${fs_bar_free 4,142 /mnt/sandisk}${color}
###################### disk usage
${color3}${font NotoSans:bold:size=9}DISK USAGE ${color}
${color2}${font NotoSans:bold:size=9}DISK USAGE ${color}
${font NotoSans:style=Bold:size=9}/ ${font NotoSans:size=9}${alignr 340}${fs_used /} / ${fs_size /}
#${font NotoSans:style=Bold:size=9}/mnt/sandisk ${font NotoSans:size=9}${alignr}${fs_used /mnt/sandisk} / ${fs_size /mnt/sandisk}
###################### battery
${if_existing /sys/class/power_supply/BAT1}\
${color3}${font NotoSans:bold:size=9}BATTERY ${color}
${color2}${font NotoSans:bold:size=9}BATTERY ${color}
${font NotoSans:style=Bold:size=9}BAT1 ${goto 48} - ${font NotoSans:size=9}${battery_percent BAT1}% ${goto 90}\
${if_match ${battery_percent BAT1} > 20}${color2}${else}${if_match ${battery_percent BAT1} <= 10}${color4}${else}${if_match ${battery_percent BAT1} <= 20}${color3}${endif}${endif}${endif} \
${battery_bar 4,150 BAT1}${color}
@ -141,27 +149,28 @@ ${endif}\
${voffset -352}
###################### system
${goto 370}${color3}${font NotoSans:bold:size=9}SYSTEM ${color}
${goto 370}${font NotoSans:style=Bold:size=9}Name ${font NotoSans:size=9}${alignr}${sysname} kernel ${kernel}
${goto 370}${color2}${font NotoSans:bold:size=9}SYSTEM ${color}
#${goto 370}${font NotoSans:style=Bold:size=9}KERNEL ${font NotoSans:size=9}${alignr}${sysname} kernel ${kernel}
${goto 370}${font NotoSans:style=Bold:size=9}${sysname} ${kernel}
${goto 370}${font NotoSans:style=Bold:size=9}RAM ${font NotoSans:size=9}${alignr}${mem} / ${memmax}
${goto 370}${color2}${membar}${color}
${goto 370}${font NotoSans:style=Bold:size=9}SWAP ${font NotoSans:size=9}${alignr}${swap} / ${swapmax}
${goto 370}${color2}${swapbar}${color}
${goto 370}${font NotoSans:style=Bold:size=9}Uptime ${font NotoSans:size=9}${alignr}${uptime_short}
${goto 370}${font NotoSans:style=Bold:size=9}UPTIME ${font NotoSans:size=9}${alignr}${uptime_short}
##################### network
${goto 370}${color3}${font NotoSans:bold:size=9}NETWORK ${color}
${goto 370}${color2}${font NotoSans:bold:size=9}NETWORK ${color}
# ${font NotoSans:style=Bold:size=9}External IP ${font NotoSans:size=9}${alignr}${execi 14400 wget http://canyouseeme.org/ -O - 2>/dev/null | awk '/name="IP"/{if (gsub(/[^0-9.]+/,"")) {print}} '}
${if_existing /proc/net/route enp0s31f6}\
${goto 370}${font NotoSans:style=Bold:size=9}Internal IP - enp0s31f6 ${font NotoSans:size=9}${alignr}${addr enp0s31f6}
${if_existing /proc/net/route ens18}\
${goto 370}${font NotoSans:style=Bold:size=9}Internal IP - ens18 ${font NotoSans:size=9}${alignr}${addr ens18}
${goto 370} ${font NotoSans:style=Bold:size=9}Download
${goto 410} ${downspeedgraph enp0s31f6 25,180 4285F4 a8a8a8}
${goto 370} ${voffset -40}${color2}${font NotoSans:size=9}Speed ${alignr} ${downspeed enp0s31f6}
${goto 370} ${color}Total ${alignr} ${totaldown enp0s31f6}
${goto 410} ${downspeedgraph ens18 25,180 4285F4 a8a8a8}
${goto 370} ${voffset -40}${color2}${font NotoSans:size=9}Speed ${alignr} ${downspeed ens18}
${goto 370} ${color}Total ${alignr} ${totaldown ens18}
${goto 370} ${font NotoSans:style=Bold:size=9}Upload
${goto 410} ${upspeedgraph enp0s31f6 25,180 4285F4 a8a8a8}
${goto 370} ${voffset -40}${color2}${font NotoSans:size=9}Speed ${alignr} ${upspeed enp0s31f6}
${goto 370} ${color}Total ${alignr} ${totalup enp0s31f6}
${goto 410} ${upspeedgraph ens18 25,180 4285F4 a8a8a8}
${goto 370} ${voffset -40}${color2}${font NotoSans:size=9}Speed ${alignr} ${upspeed ens18}
${goto 370} ${color}Total ${alignr} ${totalup ens18}
${endif}\
${if_existing /proc/net/route wlo1}\
${goto 310}${font NotoSans:style=Bold:size=9}Internal IP - wlo1 ${font NotoSans:size=9}${alignr}${addr enp2s0}
@ -177,10 +186,10 @@ ${endif}\
\
###################### processes (top)
${goto 370}${color3}${font NotoSans:bold:size=9}PROCESSES ${color}
${goto 370}${color2}${font NotoSans:bold:size=9}PROCESSES ${color}
${goto 370}${font NotoSans:style=Bold:size=9}Name ${alignr} PID CPU MEM
${goto 370}${font NotoSans:size=9}${top name 1} ${alignr} ${top pid 1} ${top cpu 1} ${top mem 1}
${goto 370}${top name 2} ${alignr} ${top pid 2} ${top cpu 2} ${top mem 2}
${goto 370}${top name 3} ${alignr} ${top pid 3} ${top cpu 3} ${top mem 3}
${goto 370}${top name 4} ${alignr} ${top pid 4} ${top cpu 4} ${top mem 4}
${goto 370}${top name 5} ${alignr} ${top pid 5} ${top cpu 5} ${top mem 5}]]
${goto 370}${top name 5} ${alignr} ${top pid 5} ${top cpu 5} ${top mem 5}]]