مطمئن بشین lua رو سیستم دارید و با این script پیکربندی رو تبدیل به نسخه جدید کنید:
https://github.com/brndnmtthws/conky/blob/main/extras/convert.luaKeep in mind that there is no guarantee that the output will work correctly
with conky, or that it will be able to convert every conkyrc. However, it
should provide a good starting point.
conky.config = {
-- Conky, a system monitor, based on torsmo
-- Any original torsmo code is licensed under the BSD license
-- All code written since the fork of torsmo is licensed under the GPL
-- Please see COPYING for details
-- Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
-- Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
-- All rights reserved.
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
-- This file was modified by Neon Cipher (http://neoncipher.net)
-- ███╗ ██╗███████╗ ██████╗ ███╗ ██╗
-- ████╗ ██║██╔════╝██╔═══██╗████╗ ██║
-- ██╔██╗ ██║█████╗ ██║ ██║██╔██╗ ██║
-- ██║╚██╗██║██╔══╝ ██║ ██║██║╚██╗██║
-- ██║ ╚████║███████╗╚██████╔╝██║ ╚████║
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═╝ ╚═══╝
--
-- ██████╗██╗██████╗ ██╗ ██╗███████╗██████╗
-- ██╔════╝██║██╔══██╗██║ ██║██╔════╝██╔══██╗
-- ██║ ██║██████╔╝███████║█████╗ ██████╔╝
-- ██║ ██║██╔═══╝ ██╔══██║██╔══╝ ██╔══██╗
-- ╚██████╗██║██║ ██║ ██║███████╗██║ ██║
-- ╚═════╝╚═╝╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
background = true,
use_xft = true,
font = '123:size=8',
xftalpha = 0.1,
update_interval = 1,
total_run_times = 0,
own_window = true,
own_window_type = 'normal',
own_window_transparent = false,
own_window_class = 'conky-semi',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_argb_value = 0,
double_buffer = true,
minimum_width = 240, minimum_height = 5,
maximum_width = 400,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
default_color = 'gray',
default_shade_color = 'red',
default_outline_color = 'white',
alignment = 'bottom_right',
gap_x = 7,
gap_y = 25,
stippled_borders = 3,
border_inner_margin = 4,
border_width = 5,
no_buffers = false,
uppercase = false,
cpu_avg_samples = 2,
net_avg_samples = 1,
--override_utf8_locale yes
use_spacer = 'right',
text_buffer_size = 256,
};
conky.text = [[
${font Arial:bold:size=10}${color #3b71a1}${color #3b71a1}Neon Cipher ${color #3b71a1} ${hr 2}
$font${color DimGray}$sysname $kernel $alignr $machine
Date $alignr${time %A, %B %e}
Time $alignr${time %H:%M:%S}
Uptime $alignr${uptime_short}
File System $alignr${fs_type}
${font Arial:bold:size=10}${color #3b71a1}NETWORK ${color #3b71a1}${hr 2}
#$font${color DimGray}IP on enp0s25 $alignr ${addr enp0s25}
$font${color DimGray}Up $alignr ${upspeed enp0s25}
${color DimGray}${upspeedgraph enp0s25 20,250 DimGray DimGray}
${color DimGray}Down $alignr ${downspeed enp0s25}
${color DimGray}${downspeedgraph enp0s25 20,250 DimGray DimGray}
${color DimGray}Uploaded: $alignr ${totalup enp0s25} Downloaded: $alignr ${totaldown enp0s25}
${font Arial:bold:size=10}${color #3b71a1}PROCESSORS ${color #3b71a1}${hr 2}
$font${color DimGray}Core1 ${cpu cpu1}% ${cpubar cpu1}
Freq: ${freq 1}MHz
Core2 ${cpu cpu2}% ${cpubar cpu2}
Freq: ${freq 2}MHz
${font Arial:bold:size=10}${color #3b71a1}TEMPERATURES ${color #3b71a1}${hr 2}
$font${color DimGray}${color DimGray}Temp 1$alignr${hwmon 0 temp 2}°C
${color DimGray}Temp 2$alignr${hwmon 0 temp 3}°C
${font Arial:bold:size=10}${color #3b71a1}MEMORY ${color #3b71a1}${hr 2}
$font${color DimGray}MEM $alignc $mem / $memmax $alignr $memperc%
$membar
${font Arial:bold:size=10}${color #3b71a1}HDD ${color #3b71a1}${hr 2}
$font${color DimGray}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${fs_bar /home}
${color #3b71a1}Disk I/O: $color${diskio}
${color DimGray}Read:
${color DimGray}${diskiograph_read 20,250 DimGray DimGray 750}
${color DimGray}Write:
${color DimGray}${diskiograph_write 20,250 DimGray DimGray 750}
${color #3b71a1}Swap Usage:$color $swap${color DimGray}/${color}$swapmax - $swapperc% ${color DimGray}${swapbar}
${color #3b71a1}Entropy: ${color}${entropy_avail}${color DimGray}/${color}${entropy_poolsize} ${color DimGray}${entropy_bar}
${font Arial:bold:size=10}${color #3b71a1}PROCESSES ${color #3b71a1}${hr 2}
$font${color #3b71a1}Total: ${color}$alignr${processes}
${color DimGray}$font${top_mem name 1}${alignr}${top_mem mem 1} %
$font${top_mem name 2}${alignr}${top_mem mem 2} %
$font${top_mem name 3}${alignr}${top_mem mem 3} %
$font${top_mem name 4}${alignr}${top_mem mem 4} %
]];