انجمن‌های فارسی اوبونتو

لطفاً به انجمن‌ها وارد شده و یا جهت ورود ثبت‌نام نمائید

لطفاً جهت ورود نام کاربری و رمز عبورتان را وارد نمائید


توزیع گنو/لینوکس اوبونتو ۲۰ ساله شد 🎉

نویسنده موضوع: تبدیل فایل conky.conf به ورژن جدید (حل شد)  (دفعات بازدید: 413 بار)

0 کاربر و 2 مهمان درحال مشاهده موضوع.

آفلاین vegetarian

  • Sr. Member
  • *
  • ارسال: 405
  • جنسیت : پسر
  • سیستم عامل : ننه اوبونتو
تبدیل فایل conky.conf به ورژن جدید (حل شد)
« : 28 امرداد 1400، 04:25 ق‌ظ »
راستش بعد از ریختن دبیان ۱۱ متوجه شدم که کانفیک conky قبلی دیگه کار نمی کنه و بعد از کمی سرچ فهمیدم که دستوراتش رو باید یه کمی تغییر داد اما من متوجه نشدم که بعضی از قسمتها رو چطور باید تغییر بدم این فایل کانفیگ neon cipher هست که من ازش استفاده می کردم دوستان اگر لطف کنید و این رو برام تغییر بدین برای ورژن جدید ممنونتون میشم . :)
# 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 yes
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 1
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent no
own_window_class conky-semi
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 0
double_buffer yes
minimum_size 240 5
maximum_width 400
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
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 no
uppercase no
cpu_avg_samples 2
net_avg_samples 1
#override_utf8_locale yes
use_spacer right
text_buffer_size 256

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} %

« آخرین ویرایش: 31 امرداد 1400، 02:08 ق‌ظ توسط vegetarian »
دوره lpic1 آقای پیمان هوشمندی راد برای علاقه مندان به لینوکس (مجانی):
https://forum.ubuntu-ir.org/index.php?topic=152339.0

آفلاین M!lad

  • عضو کاربران ایرانی اوبونتو
  • *
  • ارسال: 1757
پاسخ : تبدیل فایل conky.conf به ورژن جدید
« پاسخ #1 : 28 امرداد 1400، 11:09 ق‌ظ »
مطمئن بشین lua رو سیستم دارید و با این script پیکربندی رو تبدیل به نسخه جدید کنید:

https://github.com/brndnmtthws/conky/blob/main/extras/convert.lua

Keep 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} %
]];
« آخرین ویرایش: 28 امرداد 1400، 11:12 ق‌ظ توسط M!lad »
..I feel no fault for the fault I feel..

آفلاین vegetarian

  • Sr. Member
  • *
  • ارسال: 405
  • جنسیت : پسر
  • سیستم عامل : ننه اوبونتو
پاسخ : تبدیل فایل conky.conf به ورژن جدید
« پاسخ #2 : 31 امرداد 1400، 02:08 ق‌ظ »
مطمئن بشین lua رو سیستم دارید و با این script پیکربندی رو تبدیل به نسخه جدید کنید:

https://github.com/brndnmtthws/conky/blob/main/extras/convert.lua

Keep 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} %
]];
خیلی ممنون لطف کردین :)
دوره lpic1 آقای پیمان هوشمندی راد برای علاقه مندان به لینوکس (مجانی):
https://forum.ubuntu-ir.org/index.php?topic=152339.0