Add 'conky/back-to-basic/back-to-basic.conf'
This commit is contained in:
parent
8cde8fab23
commit
dd5d839749
|
@ -0,0 +1,185 @@
|
|||
conky.config = {
|
||||
background = false,
|
||||
use_xft = true,
|
||||
xftalpha = 0.8,
|
||||
update_interval = 1.0,
|
||||
total_run_times = 0,
|
||||
temperature_unit = 'celsius',
|
||||
|
||||
own_window_class = 'Conky',
|
||||
own_window = true,
|
||||
own_window_type = 'normal',
|
||||
own_window_transparent = true,
|
||||
own_window_argb_visual = true,
|
||||
own_window_argb_value = 128,
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
|
||||
alignment = 'top_right',
|
||||
|
||||
double_buffer = true,
|
||||
minimum_width = 680,
|
||||
minimum_height = 500,
|
||||
|
||||
draw_shades = true,
|
||||
draw_outline = false,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = false,
|
||||
|
||||
stippled_borders = 8,
|
||||
border_inner_margin = 4,
|
||||
border_width = 1,
|
||||
|
||||
gap_x = 35,
|
||||
gap_y = 15,
|
||||
|
||||
no_buffers = true,
|
||||
uppercase = false,
|
||||
|
||||
cpu_avg_samples = 12,
|
||||
net_avg_samples = 2,
|
||||
|
||||
use_spacer = 'none',
|
||||
text_buffer_size = 256,
|
||||
override_utf8_locale = true,
|
||||
|
||||
default_color = 'ff6600',
|
||||
default_shade_color = 'darkgray',
|
||||
default_outline_color = 'darkgray',
|
||||
|
||||
color2 = 'darkred',
|
||||
color3 = '0099ff',
|
||||
color4 = 'ff000d',
|
||||
|
||||
lua_load = '~/.conky/back-to-basic/lua/back-to-basic.lua',
|
||||
lua_draw_hook_pre = 'main'
|
||||
|
||||
};
|
||||
|
||||
conky.text = [[
|
||||
########################################## header
|
||||
###################### release and date
|
||||
${color3}${font NotoSans:bold:size=16}${alignc}${execi 86400 lsb_release -d | cut -c14-} "Victoria" ${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}
|
||||
#
|
||||
########################################## left column
|
||||
###################### CPU
|
||||
${color3}${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}
|
||||
${font NotoSans:style=Bold:size=9}CPU 01 - ${font NotoSans:size=9}${cpu cpu1}% ${goto 92}\
|
||||
${if_match ${cpu cpu1} <= 75}${color2}${else}${if_match ${cpu cpu1} > 90}${color4}${else}${if_match ${cpu cpu1} > 75}${color3}${endif}${endif}${endif} \
|
||||
${cpubar cpu1 4, 250}${color}
|
||||
${font NotoSans:style=Bold:size=9}CPU 02 - ${font NotoSans:size=9}${cpu cpu2}% ${goto 92}\
|
||||
${if_match ${cpu cpu2} <= 75}${color2}${else}${if_match ${cpu cpu2} > 90}${color4}${else}${if_match ${cpu cpu2} > 75}${color3}${endif}${endif}${endif} \
|
||||
${cpubar cpu2 4, 250}${color}
|
||||
${font NotoSans:style=Bold:size=9}CPU 03 - ${font NotoSans:size=9}${cpu cpu3}% ${goto 92}\
|
||||
${if_match ${cpu cpu3} <= 75}${color2}${else}${if_match ${cpu cpu3} > 90}${color4}${else}${if_match ${cpu cpu3} > 75}${color3}${endif}${endif}${endif} \
|
||||
${cpubar cpu3 4, 250}${color}
|
||||
${font NotoSans:style=Bold:size=9}CPU 04 - ${font NotoSans:size=9}${cpu cpu4}% ${goto 92}\
|
||||
${if_match ${cpu cpu4} <= 75}${color2}${else}${if_match ${cpu cpu4} > 90}${color4}${else}${if_match ${cpu cpu4} > 75}${color3}${endif}${endif}${endif} \
|
||||
${cpubar cpu4 4, 250}${color}
|
||||
|
||||
###################### temperature
|
||||
# NOTE: Temperature from /sys/devices/platform/coretemp.0/...
|
||||
${color3}${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}
|
||||
\
|
||||
${voffset -17}${goto 180}\
|
||||
${font NotoSans:style=Bold:size=9}CORE 02 - ${font NotoSans:size=9}\
|
||||
${platform coretemp.0/hwmon/hwmon3 temp 3}°C [${freq_g 2}GHz] ${color}
|
||||
\
|
||||
${font NotoSans:style=Bold:size=9}CORE 03 - ${font NotoSans:size=9}\
|
||||
${platform coretemp.0/hwmon/hwmon3 temp 4}°C [${freq_g 3}GHz] ${color}
|
||||
\
|
||||
${voffset -17}${goto 180}\
|
||||
${font NotoSans:style=Bold:size=9}CORE 04 - ${font NotoSans:size=9}\
|
||||
${platform coretemp.0/hwmon/hwmon3 temp 5}°C [${freq_g 4}GHz] ${color}
|
||||
|
||||
${font NotoSans:style=Bold:size=9}CPU - ${font NotoSans:size=9}\
|
||||
${platform coretemp.0/hwmon/hwmon3 temp 1}°C ${color}
|
||||
\
|
||||
${voffset -17}${goto 180}\
|
||||
${font NotoSans:style=Bold:size=9}SYS1 - ${font NotoSans:size=9}\
|
||||
${hwmon 0 temp 1}°C ${color}
|
||||
${font NotoSans:style=Bold:size=9}NVMe - ${font NotoSans:size=9}\
|
||||
${hwmon 1 temp 1}°C ${color}
|
||||
\
|
||||
${voffset -17}${goto 180}\
|
||||
${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}
|
||||
${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}
|
||||
#${font NotoSans:style=Bold:size=9}/mnt/sandisk ${goto 98} - ${font NotoSans:size=9}${fs_free_perc /mnt/#sandisk}% ${goto 140}\
|
||||
#${if_match ${fs_free_perc /mnt/sandisk} > 20}${color2}${else}${if_match ${fs_free_perc /mnt/sandisk} <= 10}${color4}${else}${if_match ${fs_free_perc /mnt/sandisk} <= 20}${color3}${endif}${endif}${endif} \
|
||||
#${fs_bar_free 4,142 /mnt/sandisk}${color}
|
||||
|
||||
###################### disk usage
|
||||
${color3}${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}
|
||||
${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}
|
||||
${else}\
|
||||
# leave the empty space
|
||||
|
||||
|
||||
${endif}\
|
||||
########################################## right column
|
||||
${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}${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}
|
||||
|
||||
##################### network
|
||||
${goto 370}${color3}${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}
|
||||
${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 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}
|
||||
${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}
|
||||
${goto 310} ${font NotoSans:style=Bold:size=9}Download
|
||||
${goto 350} ${downspeedgraph enp2s0 25,120 4285F4 a8a8a8}
|
||||
${goto 310} ${voffset -40}${color2}${font NotoSans:size=9}Speed ${alignr} ${downspeed enp2s0}
|
||||
${goto 310} ${color}Total ${alignr} ${totaldown enp2s0}
|
||||
${goto 310} ${font NotoSans:style=Bold:size=9}Upload
|
||||
${goto 350} ${upspeedgraph enp2s0 25,120 4285F4 a8a8a8}
|
||||
${goto 310} ${voffset -40}${color2}${font NotoSans:size=9}Speed ${alignr} ${upspeed enp2s0}
|
||||
${goto 310} ${color}Total ${alignr} ${totalup enp2s0}
|
||||
${endif}\
|
||||
\
|
||||
|
||||
###################### processes (top)
|
||||
${goto 370}${color3}${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}]]
|
Loading…
Reference in New Issue