minor
This commit is contained in:
29
.config/conky/conky_nets
Normal file
29
.config/conky/conky_nets
Normal file
@@ -0,0 +1,29 @@
|
||||
conky.config = {
|
||||
alignment = 'left',
|
||||
gap_x = 40,
|
||||
gap_y = 80,
|
||||
background = true,
|
||||
update_interval = 3.0,
|
||||
double_buffer = true,
|
||||
use_xft = true,
|
||||
font = 'DejaVu Sans Mono:size=11',
|
||||
own_window = true,
|
||||
own_window_class = 'Conky',
|
||||
own_window_type = 'override',
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
own_window_transparent = false,
|
||||
own_window_argb_visual = true,
|
||||
own_window_argb_value = 0,
|
||||
maximum_width = 450,
|
||||
draw_shades = false,
|
||||
draw_outline = false,
|
||||
top_name_width = 200,
|
||||
default_color = 'red',
|
||||
|
||||
lua_load = './nets.lua',
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${lua_parse get_network_info}
|
||||
]]
|
||||
|
||||
41
.config/conky/conky_proc
Normal file
41
.config/conky/conky_proc
Normal file
@@ -0,0 +1,41 @@
|
||||
conky.config = {
|
||||
alignment = 'bottom_right',
|
||||
gap_x = 40,
|
||||
gap_y = 80,
|
||||
background = true,
|
||||
update_interval = 3.0,
|
||||
double_buffer = true,
|
||||
use_xft = true,
|
||||
font = 'DejaVu Sans Mono:size=10',
|
||||
own_window = true,
|
||||
own_window_class = 'Conky',
|
||||
own_window_type = 'override', -- Window type: "desktop", "override", "panel", "dock"
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
own_window_transparent = false, -- Set to false to use own_window_argb_value
|
||||
own_window_argb_visual = true,
|
||||
own_window_argb_value = 0, -- Semi-transparent background (0-255)
|
||||
maximum_width = 450,
|
||||
draw_shades = false,
|
||||
draw_outline = false,
|
||||
top_name_width = 200,
|
||||
default_color = 'red'
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
${color white}
|
||||
${font Ubuntu:bold:size=10}Name${goto 250}PID${goto 330}CPU%${goto 400}MEM%${font} ${color red}
|
||||
${hr 2}
|
||||
${top name 1}${goto 250}${top pid 1}${goto 330}${top cpu 1}${goto 400}${top mem 1}
|
||||
${top name 2}${goto 250}${top pid 2}${goto 330}${top cpu 2}${goto 400}${top mem 2}
|
||||
${top name 3}${goto 250}${top pid 3}${goto 330}${top cpu 3}${goto 400}${top mem 3}
|
||||
${top name 4}${goto 250}${top pid 4}${goto 330}${top cpu 4}${goto 400}${top mem 4}
|
||||
${top name 5}${goto 250}${top pid 5}${goto 330}${top cpu 5}${goto 400}${top mem 5}
|
||||
${top name 6}${goto 250}${top pid 6}${goto 330}${top cpu 6}${goto 400}${top mem 6}
|
||||
${top name 7}${goto 250}${top pid 7}${goto 330}${top cpu 7}${goto 400}${top mem 7}
|
||||
${top name 8}${goto 250}${top pid 8}${goto 330}${top cpu 8}${goto 400}${top mem 8}
|
||||
${top name 9}${goto 250}${top pid 9}${goto 330}${top cpu 9}${goto 400}${top mem 9}
|
||||
${top name 10}${goto 250}${top pid 10}${goto 330}${top cpu 10}${goto 400}${top mem 10}
|
||||
${hr 2}
|
||||
]]
|
||||
|
||||
|
||||
64
.config/conky/conky_system
Normal file
64
.config/conky/conky_system
Normal file
@@ -0,0 +1,64 @@
|
||||
-- Conky settings
|
||||
conky.config = {
|
||||
alignment = 'top_right', -- Position: top right
|
||||
background = true, -- Set to true for a background
|
||||
border_width = 1,
|
||||
cpu_avg_samples = 2,
|
||||
default_color = 'red', -- Default text color
|
||||
double_buffer = true,
|
||||
draw_borders = false,
|
||||
draw_graph_borders = true,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
extra_newline = false,
|
||||
font = 'Sans:size=11', -- Font and size
|
||||
gap_x = 100, -- X-axis gap from the screen edge
|
||||
gap_y = 50, -- Y-axis gap from the screen edge
|
||||
minimum_height = 5,
|
||||
minimum_width = 300,
|
||||
net_avg_samples = 2,
|
||||
no_buffers = true,
|
||||
override_utf8_locale = true,
|
||||
own_window = true,
|
||||
own_window_class = 'Conky',
|
||||
own_window_type = 'override', -- Window type: "desktop", "override", "panel", "dock"
|
||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||
own_window_transparent = false, -- Set to false to use own_window_argb_value
|
||||
own_window_argb_visual = true,
|
||||
own_window_argb_value = 0, -- Semi-transparent background (0-255)
|
||||
stippled_borders = 0,
|
||||
update_interval = 1.0, -- Update interval in seconds
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
use_xft = true,
|
||||
imlib_cache_size = 0,
|
||||
show_graph_range = false,
|
||||
show_graph_scale = false,
|
||||
}
|
||||
|
||||
-- Conky text
|
||||
conky.text = [[
|
||||
${color #FF3333}System${color}
|
||||
${color #FFFFFF}Date:${color} ${time %A, %d %B}
|
||||
${color #FFFFFF}Time:${color} ${time %H:%M:%S}
|
||||
${color #FFFFFF}Uptime:${color} ${uptime}
|
||||
${color #FFFFFF}Kernel:${color} ${kernel}
|
||||
|
||||
${color #FF3333}AMD GPU${color}
|
||||
${color #FFFFFF}Temp:${color} ${execi 10 cat /sys/class/drm/card0/device/hwmon/hwmon*/temp1_input | awk '{print $1/1000}'} °C
|
||||
|
||||
${color #FF3333}CPU${color}
|
||||
${color #FFFFFF}Usage:${color} ${cpu cpu1}% ${alignr}${cpubar cpu1 6,100}
|
||||
${color #FFFFFF}Temperature:${color} ${hwmon 1 temp 1}°C
|
||||
${color #FFFFFF}Processes:${color} ${running_processes}/${processes}
|
||||
|
||||
${color #FF3333}Memory${color}
|
||||
${color #FFFFFF}RAM:${color} ${memperc}% ${alignr}${membar 6,100}
|
||||
${color #FFFFFF}Used:${color} ${execi 300 free -m | grep "Mem:" | awk '{print $3" MB"} / {print $2" MB"}'}
|
||||
${color #FFFFFF}Free:${color} ${execi 300 free -m | grep "Mem:" | awk '{print $4" MB"}'}
|
||||
|
||||
${color #FF3333}Network${color}
|
||||
${color #FFFFFF}IP Address:${color} ${addr wlan0}
|
||||
${color #FFFFFF}Download:${color} ${downspeed wlan0} kb/s ${alignr}${totaldown wlan0}
|
||||
${color #FFFFFF}Upload:${color} ${upspeed wlan0} kb/s ${alignr}${totalup wlan0}
|
||||
]]
|
||||
33
.config/conky/nets.lua
Normal file
33
.config/conky/nets.lua
Normal file
@@ -0,0 +1,33 @@
|
||||
function conky_get_network_info()
|
||||
-- получаем список интерфейсов с IPv4-адресами
|
||||
local f = io.popen("ip -o -4 addr show | awk '{print $2,$4}'")
|
||||
local output = f:read("*all")
|
||||
f:close()
|
||||
|
||||
local result = ""
|
||||
for line in output:gmatch("[^\r\n]+") do
|
||||
local iface, addr = line:match("([^%s]+)%s+([^%s]+)")
|
||||
if iface then
|
||||
-- получаем MAC-адрес
|
||||
local f_mac = io.popen("cat /sys/class/net/" .. iface .. "/address 2>/dev/null")
|
||||
local mac = f_mac:read("*l") or "N/A"
|
||||
f_mac:close()
|
||||
|
||||
local down = conky_parse("${downspeed " .. iface .. "}")
|
||||
local up = conky_parse("${upspeed " .. iface .. "}")
|
||||
|
||||
result = result ..
|
||||
string.format("${color white}%s${color} ", iface) ..
|
||||
string.format("${color red}IP: %s\n", addr) ..
|
||||
string.format("${color red}MAC: %s\n", mac) ..
|
||||
string.format("${color red} ↓%s ↑ %s\n\n", down, up)
|
||||
end
|
||||
end
|
||||
|
||||
if result == "" then
|
||||
result = "EMPTY"
|
||||
end
|
||||
|
||||
return result
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user