Conky 1.10 Scripts

Add functionality to your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dacsmema

Conky 1.10 Scripts

Post by dacsmema »

I just d/led conky off of the LM 18 Software Manager and am wondering if there is a library of themes for 1.10? I can find zillions of themes that work with 1.9 and I can sorta get them to work with 1.10 but they are buggy and the formating is jacked up. There is a lua script out there that converts old .conkyrc files to work with the new version but even thats not great. Any suggestions?

-Dave
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
mzsade
Level 5
Level 5
Posts: 777
Joined: Sun Jul 19, 2009 4:36 am

Re: Conky 1.10 Scripts

Post by mzsade »

Read the man pages for both versions, not only are the configuration settings' formats different but some variables available in one may be so in the other. I have more or less the same Conky running on LMDE (1.9) and Debian (1.10). Am posting the settings and text for both, it might help you get a general idea of how to change the formats. There's nothing fancy in my Conky, it's just supposed to be an efficient System/HW monitor that i can have running from startup all the time without using up much system resource.

LMDE:startup file command: conky -c ~/.config/conky/conky.conf

Code: Select all

alignment top_right
background no
cpu_avg_samples 2
top_cpu_separate no
default_color #f7f7f7
draw_borders no
border_width 4
border_inner_margin 3
use_xft yes
xftfont DejaVu Sans Mono:bold:size=11
gap_x 54
gap_y 54
net_avg_samples 2
no_buffers yes
double_buffer true
imlib_cache_size 0
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar
own_window_class Conky
own_window_transparent yes
override_utf8_locale yes
stippled_borders 0
update_interval 30
uppercase no
use_spacer none
lua_load ~/.config/conky/clockexp.lua
lua_draw_hook_pre draw_clock

TEXT
$alignc${font DejaVu Sans Mono:bold:size=12}${color green} $sysname $kernel
$alignc${time %a,%e %b,%Y} 
$font${color green}$alignc Uptime:$uptime_short # ${image /home/sade/Downloads/Tux2_sm2.png -p 0,513 -n}
# ${image /home/sade/Downloads/Tux2_sm.png -p 207,18 -n}

$color ${hr 1}
 ${color}CPU composite: ${cpu cpu0}%  ${alignr}Freq:${freq}mhz
 Core1:$color${cpu cpu1}%      ${alignr} Temp: ${hwmon 2 temp 2}°C 
 Core2:$color${cpu cpu2}%      ${alignr} Temp: ${hwmon 2 temp 3}°C 
 Core3:$color${cpu cpu3}%      ${alignr} Temp: ${hwmon 2 temp 4}°C 
 Core4:$color${cpu cpu4}%      ${alignr} Temp: ${hwmon 2 temp 5}°C 

 
 
 ${hr 1}
 RAM  used: $memperc% $alignc $mem ${alignr}MaxM:$memmax
 RAM  free: $memfree
 Swap used: $swapperc%     $swap  ${alignr}Size:$swapmax
 ${hr 1}
 $alignc HDD Temp:$color${hddtemp /dev/sda}°C
 Root:${fs_used /} $alignc Used:${fs_used_perc /}%
 Home:${fs_used /home} $alignc Used:${fs_used_perc /home}%
${hr 1}
 MAC  Addr $alignc${execi 50 ip -o link show eth0 | sed -r 's/^.*link\/ether ([^ ]*) .*$/\1/'}
 
 ${hr 1}
 Top Processes       ${alignc}CPU     ${alignr}Memory
 ${top name 1} $alignc${top cpu 1}%   $alignr${top mem 1}%
 ${top name 2} $alignc${top cpu 2}%   $alignr${top mem 2}%
 ${top name 3} $alignc${top cpu 3}%   $alignr${top mem 3}%
 ${top name 4} $alignc${top cpu 4}%   $alignr${top mem 4}%
 ${top name 5} $alignc${top cpu 5}%   $alignr${top mem 5}%
 ${top name 6} $alignc${top cpu 6}%   $alignr${top mem 6}%
 ${top name 7} $alignc${top cpu 7}%   $alignr${top mem 7}%
 ${top name 8} $alignc${top cpu 8}%   $alignr${top mem 8}%
 ${top name 9} $alignc${top cpu 9}%   $alignr${top mem 9}%
 ${top name 10} $alignc${top cpu 10}%   $alignr${top mem 10}%
 ${hr 1} 
 # $color${execpi 90 python /home/sade/scripts/conkycal.py} 
 ${alignc}${color green}Battery $alignc${battery BAT0}
screenshot:http://extrazoom.com/image-72332.html

Debian:startup command: conky -q --alignment= none

Code: Select all

conky.config = {
    alignment = 'top_right',
    background = false,
    cpu_avg_samples = 2,
    top_cpu_separate = false,
    default_color = '#c4c6dc',
    draw_borders = false,
    --[[ border_width = 1,]]
    --[[ border_inner_margin = 3,]]
    use_xft = true,
    font = 'DejaVu Sans Mono:bold:size=11',
    gap_x = 972,
    gap_y = 54,
    net_avg_samples = 2,
    no_buffers = true,
    double_buffer = true,
    imlib_cache_size = 0,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    minimum_width = 333,
    own_window_type = 'desktop',
    own_window_hints = 'undecorated,below,sticky,skip_taskbar',
    own_window_class = 'Conky',
    own_window_transparent = true,
    --[[ own_window_colour = '#113f77',]]
    override_utf8_locale = true,
    stippled_borders = 0,
    update_interval = 30,
    uppercase = false,
    use_spacer = 'none',
    hddtemp_host,
    hddtemp_port,
    hddtemp_refresh,
    temperature_unit = celsius,
    lua_load = '~/.config/conky/clockexp.lua',
    lua_draw_hook_pre = 'draw_clock'
}
conky.text = [[
$alignc${font DejaVu Sans Mono:bold:size=14}$sysname $kernel $Distribution Sid
$alignc${time %a,%e %b,%Y}
$alignc Uptime:$uptime_short 
$color ${hr 1}
$font$alignc ${color}CPU composite: ${cpu cpu0}% 

# ${image /home/sade/Templates/debian-swirl.png -p 144,153 -n}
 Core1: ${cpu cpu1}%   ${alignr} Temp: ${hwmon 1 temp 2}°C 
 Core2: ${cpu cpu2}%   ${alignr} Temp: ${hwmon 1 temp 3}°C 
 Core3: ${cpu cpu3}%   ${alignr} Temp: ${hwmon 1 temp 4}°C 
 Core4: ${cpu cpu4}%   ${alignr} Temp: ${hwmon 1 temp 5}°C 
 
 Fan:${hwmon 2 fan 1}rpm ${alignr}Freq:${freq}mhz
 ${hr 1}
 RAM  used: $memperc% $alignc $mem ${alignr}MaxM:$memmax
# ${color green}$alignr${membar 5,250}
# ${color green}$alignc${memwithbuffersbar 5,250}
 Swap used: $swapperc% $alignc     $swap  ${alignr}Size:$swapmax
 Buffers/Cache: $alignc$memwithbuffers ${alignr}Free:$memfree
 ${hr 1}
$alignc HDD Temp: $color${hddtemp /dev/sda}°C
Root: ${fs_used /} used $alignc  ${fs_used_perc /}% ${alignr}of  ${fs_size /}
 Home: ${fs_used /home} used $alignc  ${fs_used_perc /home}% ${alignr}of  ${fs_size /home}
 LMDE: ${fs_used /data} used $alignc  ${fs_used_perc /data}% $alignr}of ${fs_size /data}
 Data: ${fs_used /data1} used $alignc  ${fs_used_perc /data1}% ${alignr}of  ${fs_size /data1}
 ${hr 1}
 Top Processes       ${alignc}CPU     ${alignr}Memory
 ${top name 1} $alignc${top cpu 1}%   $alignr${top mem 1}%
 ${top name 2} $alignc${top cpu 2}%   $alignr${top mem 2}%
 ${top name 3} $alignc${top cpu 3}%   $alignr${top mem 3}%
 ${top name 4} $alignc${top cpu 4}%   $alignr${top mem 4}%
 ${top name 5} $alignc${top cpu 5}%   $alignr${top mem 5}%
 ${top name 6} $alignc${top cpu 6}%   $alignr${top mem 6}%
 ${top name 7} $alignc${top cpu 7}%   $alignr${top mem 7}%
 ${top name 8} $alignc${top cpu 8}%   $alignr${top mem 8}%
 ${top name 9} $alignc${top cpu 9}%   $alignr${top mem 9}%
 ${top name 10} $alignc${top cpu 10}%   $alignr${top mem 10}%
 ${hr 1} 
# $alignc$font${color}${execpi 50 python ~/.config/conky/conkycal.py}
 ${alignc}Battery: $alignc${battery BAT0}
 ${color}${hr 1}]]
Screenshot: http://extrazoom.com/image-72331.html
Linux User #481272 Reg: 15th Sept., 2008
Locked

Return to “Compiz, Conky, Docks & Widgets”