The officially official Devuan Forum!

You are not logged in.

#1 2017-11-25 19:12:27

makh
Member
Registered: 2017-10-08
Posts: 29

[SOLVED] <Ascii> Conky ~ Errors in configuration file

Hi

I have this configuration file running smooth on Stretch:

# For Xfce only, inside Virtualbox
#
# white backgoung with black fonts or colored

alignment top_right
background no
border_width 2
cpu_avg_samples 4
default_color black
default_outline_color tango
default_shade_color white
draw_borders yes
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:bold:size=10:black
gap_x 5
gap_y 50
# Play
minimum_size 120 483
maximum_width 140
net_avg_samples 1
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class Conky
own_window_type override
stippled_borders 0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

double_buffer yes

# Opacity yes/no:
own_window_transparent no

own_window_colour light yellow

update_interval 1.0
update_interval_on_battery 4.0

TEXT
${color navy blue}   Remember
#
#
${color tango}uptime: ${color navy blue}$uptime_short 
#
#
${color }${execi 3600 uname -r}
#
#
$color${font Goudy Bookletter 1911:style=Bold:size=9}SYSTEM${font} ${hr 3}
#
#
${color}Cpu-1: ${color blue}${if_match ${cpu cpu1}>80}${color red}$endif${cpu cpu1}% ${color magneta}${freq_g cpu1}GHz
${color}Cpu-2: ${color blue}${if_match ${cpu cpu2}>80}${color red}$endif${cpu cpu2}% ${color magneta}${freq_g cpu2}GHz
${color}Cpu-3: ${color blue}${if_match ${cpu cpu3}>80}${color red}$endif${cpu cpu3}% ${color magneta}${freq_g cpu3}GHz
${color}Cpu-4: ${color blue}${if_match ${cpu cpu4}>80}${color red}$endif${cpu cpu4}% ${color magneta}${freq_g cpu4}GHz
${color }${hr 3}
#
#
${color}Mem: ${color magneta}$mem${color blue}/$memmax
#
#
${color}Swap:${color magneta} $swap${color blue}/$swapmax
#
#
${color }Procs/Run:${color blue}$processes${color }/${color magneta}$running_processes
${color }${hr 3}
#
#
${color navy blue}\
CPU %  PROCESS
${font Goudy Bookletter 1911:style=Bold:size=8}${color red}\
${top cpu 1}  ${top name 1}
${color tango}\
${top cpu 2}  ${top name 2}
${top cpu 3}  ${top name 3}
${top cpu 4}  ${top name 4}
${color blue}\
${top cpu 5}  ${top name 5}
${top cpu 6}  ${top name 6}
#${top cpu 7}  ${top name 7}
#${top cpu 8}  ${top name 8}
#${top cpu 9}  ${top name 9}
${color }${hr 3}
#
#
${color }MEMORY:
${color blue}${top_mem mem 1}  ${top_mem name 1}
${top_mem mem 2}  ${top_mem name 2}
${top_mem mem 3}  ${top_mem name 3}
${top_mem mem 4}  ${top_mem name 4}
${top_mem mem 4}  ${top_mem name 4}
${color }${hr 3}
#
#
${font arial:size=10:bold}${color }FILE SYSTEMS (~free):${font arial:size=10}
 ${color blue}ROOT ${color magneta}${fs_used /}${color }~${fs_free /}
${color }${hr 3}
#
#
${font arial:size=10:bold}${color}DISK WRITE/READ ${font Bullets:size=8:bold}
 ${color blue}sda: ${color dark tango}${diskio_write sda}/${diskio_read sda}
${if_existing /dev/cdrom}\
 ${color navy blue}cd:  ${color dark red}${font Bullets:size=8:bold}\
${diskio_write sr0}/${diskio_read sr0}$endif 
${if_existing /dev/sdb}\
 ${color blue}sdb: ${color dark tango}${font Bullets:size=8:bold}${diskio_write 
sdb}/${diskio_read sdb}$endif\

Dejavu fonts are installed. The versions of conky are same.

Conky doesnt execute, giving following non stop issues:

myuser@vmdev1r1:~$ conky -c 30_conky.conf 

conky: Syntax error (30_conky.conf:1: '=' expected near 'top_right') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: can't parse X color 'tango'
conky: desktop window (2e00003) is subwindow of root window (281)
conky: window type - override
conky: drawing to created window (0x3800001)
conky: drawing to double buffer
conky: can't parse X color 'tango'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'tango'
conky: can't parse X color 'magneta'
conky: can't parse X color 'dark tango'
conky: can't parse X color 'dark tango'
conky: diskio device 'sdb' does not exist
conky: diskio device 'sdb' does not exist
conky: obj->data.i 3 info.cpu_count 2
conky: attempting to use more CPUs than you have!
myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:2: '=' expected near 'no') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:2: '}' expected (to close '{' at line 1) near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf &
[1] 7898

myuser@vmdev1r1:~$ conky: Syntax error (30_conky.conf:2: '=' expected near 'no') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:2: '}' expected (to close '{' at line 1) near '='

[1]+  Exit 1                  conky -c 30_conky.conf

myuser@vmdev1r1:~$ conky -c 30_conky.conf &
[1] 7976

myuser@vmdev1r1:~$ conky: Syntax error (30_conky.conf:1: '=' expected near 'top_right') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: desktop window (2e00003) is subwindow of root window (281)
conky: window type - override
conky: drawing to created window (0x3800001)
conky: drawing to double buffer
conky: can't parse X color 'tango'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'tango'
conky: can't parse X color 'magneta'
conky: can't parse X color 'dark tango'
conky: can't parse X color 'dark tango'
conky: diskio device 'sdb' does not exist
conky: diskio device 'sdb' does not exist
conky: obj->data.i 3 info.cpu_count 2
conky: attempting to use more CPUs than you have!
conky -c 30_conky.conf &
[2] 8002
[1]   Exit 1                  conky -c 30_conky.conf

myuser@vmdev1r1:~$ conky: Syntax error (30_conky.conf:2: '=' expected near 'no') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: Invalid value '=top_right' for setting 'alignment'. Valid values are: 'top_left', 'top_right', 'top_middle', 'bottom_left', 'bottom_right', 'bottom_middle', 'middle_left', 'middle_middle', 'middle_right', 'tl', 'tr', 'tm', 'bl', 'br', 'bm', 'ml', 'mm', 'mr', 'none'.
conky: desktop window (2e00003) is subwindow of root window (281)
conky: window type - override
conky: drawing to created window (0x3800001)
conky: drawing to double buffer
conky: can't parse X color 'tango'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'tango'
conky: can't parse X color 'magneta'
conky: can't parse X color 'dark tango'
conky: can't parse X color 'dark tango'
conky: diskio device 'sdb' does not exist
conky: diskio device 'sdb' does not exist
conky: obj->data.i 3 info.cpu_count 2
conky: attempting to use more CPUs than you have!

[2]+  Exit 1                  conky -c 30_conky.conf

myuser@vmdev1r1:~$ conky -c 30_conky.conf  
conky: Syntax error (30_conky.conf:3: '=' expected near '2') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: Invalid value '=top_right' for setting 'alignment'. Valid values are: 'top_left', 'top_right', 'top_middle', 'bottom_left', 'bottom_right', 'bottom_middle', 'middle_left', 'middle_middle', 'middle_right', 'tl', 'tr', 'tm', 'bl', 'br', 'bm', 'ml', 'mm', 'mr', 'none'.
conky: desktop window (2e00003) is subwindow of root window (281)
conky: window type - override
conky: drawing to created window (0x3800001)
conky: drawing to double buffer
conky: can't parse X color 'tango'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'magneta'
conky: can't parse X color 'tango'
conky: can't parse X color 'magneta'
conky: can't parse X color 'dark tango'
conky: can't parse X color 'dark tango'
conky: diskio device 'sdb' does not exist
conky: diskio device 'sdb' does not exist
conky: obj->data.i 3 info.cpu_count 2
conky: attempting to use more CPUs than you have!

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:8: '=' expected near 'yes') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:13: '=' expected near 'DejaVu') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:13: '=' expected near 'Mono') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:13: function arguments expected near ':') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:13: function arguments expected near ':') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:13: unexpected symbol near '#') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:13: unexpected symbol near '#') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:13: function arguments expected near ':') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:14: unexpected symbol near '=') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:14: unexpected symbol near '10') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:18: unexpected symbol near '#') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:18: '<name>' expected near '120') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:18: unexpected symbol near '483') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:18: malformed number near '120x') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:18: '=' expected near '120') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:18: unexpected symbol near '483') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:34: '=' expected near 'yes') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:36: unexpected symbol near '#') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:36: '=' expected near 'no') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:40: '=' expected near 'update_interval') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:40: '=' expected near 'update_interval') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:40: '=' expected near 'update_interval') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:40: '=' expected near 'update_interval') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:40: '=' expected near 'update_interval') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:40: '=' expected near 'TEXT') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

myuser@vmdev1r1:~$ conky -c 30_conky.conf 
conky: Syntax error (30_conky.conf:41: unexpected symbol near '$') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:151: [string "converted config"]:4: unexpected symbol near '='

The last error came with following changes:

alignment =top_right
background =no
border_width =2
cpu_avg_samples =4
default_color =black
default_outline_color =red
default_shade_color =white
draw_borders =yes
draw_graph_borders =yes
draw_outline =no
draw_shades =no
use_xft =yes
xftfont =Arial
xftfont =fontsize10
xftfont =bold
gap_x =5
gap_y =50
minimum_size =120,483
maximum_width =140
net_avg_samples =1
no_buffers =yes
out_to_console =no
out_to_stderr =no
extra_newline =no
own_window =yes
own_window_class =Conky
own_window_type =override
stippled_borders =0
uppercase =no
use_spacer =none
show_graph_scale =no
show_graph_range =no

double_buffer =yes

own_window_transparent =no

own_window_colour =light yellow

=TEXT
${color navy blue}   Rem
#
#
${color tango}uptime: ${color navy blue}$uptime_short 
#
#
${color }${execi 3600 uname -r}
#
#
$color${font Goudy Bookletter 1911:style=Bold:size=9}SYSTEM${font} ${hr 3}
#
#
${color}Cpu-1: ${color blue}${if_match ${cpu cpu1}>80}${color red}$endif${cpu cpu1}% ${color magneta}${freq_g cpu1}GHz
${color}Cpu-2: ${color blue}${if_match ${cpu cpu2}>80}${color red}$endif${cpu cpu2}% ${color magneta}${freq_g cpu2}GHz
${color}Cpu-3: ${color blue}${if_match ${cpu cpu3}>80}${color red}$endif${cpu cpu3}% ${color magneta}${freq_g cpu3}GHz
${color}Cpu-4: ${color blue}${if_match ${cpu cpu4}>80}${color red}$endif${cpu cpu4}% ${color magneta}${freq_g cpu4}GHz
${color }${hr 3}
#
#
${color}Mem: ${color magneta}$mem${color blue}/$memmax
#
#
${color}Swap:${color magneta} $swap${color blue}/$swapmax
#
#
${color }Procs/Run:${color blue}$processes${color }/${color magneta}$running_processes
${color }${hr 3}
#
#
${color navy blue}\
CPU %  PROCESS
${font Goudy Bookletter 1911:style=Bold:size=8}${color red}\
${top cpu 1}  ${top name 1}
${color tango}\
${top cpu 2}  ${top name 2}
${top cpu 3}  ${top name 3}
${top cpu 4}  ${top name 4}
${color blue}\
${top cpu 5}  ${top name 5}
${top cpu 6}  ${top name 6}
#${top cpu 7}  ${top name 7}
#${top cpu 8}  ${top name 8}
#${top cpu 9}  ${top name 9}
${color }${hr 3}
#
#
${color }MEMORY:
${color blue}${top_mem mem 1}  ${top_mem name 1}
${top_mem mem 2}  ${top_mem name 2}
${top_mem mem 3}  ${top_mem name 3}
${top_mem mem 4}  ${top_mem name 4}
${top_mem mem 4}  ${top_mem name 4}
${color }${hr 3}
#
#
${font arial:size=10:bold}${color }FILE SYSTEMS (~free):${font arial:size=10}
 ${color blue}ROOT ${color magneta}${fs_used /}${color }~${fs_free /}
${color }${hr 3}
#
#
${font arial:size=10:bold}${color}DISK WRITE/READ ${font Bullets:size=8:bold}
 ${color blue}sda: ${color dark tango}${diskio_write sda}/${diskio_read sda}
${if_existing /dev/cdrom}\
 ${color navy blue}cd:  ${color dark red}${font Bullets:size=8:bold}\
${diskio_write sr0}/${diskio_read sr0}$endif 
${if_existing /dev/sdb}\
 ${color blue}sdb: ${color dark tango}${font Bullets:size=8:bold}${diskio_write 
sdb}/${diskio_read sdb}$endif\

But this changed and reformatted code doesnt seems right, to me.

Kindly advise.

Thankyou

Last edited by makh (2017-11-25 22:06:46)


HP Probook 440 G2: Arch, Debian Stable
Others: Debian, Devuan Centos, Ubuntu, Opensuse
GUI: Openbox, Cinnamon, Xfce
Chroot: Debian, Ubuntu, Fedora

Offline

#2 2017-11-25 21:12:32

fsmithred
Administrator
Registered: 2016-11-25
Posts: 471

Re: [SOLVED] <Ascii> Conky ~ Errors in configuration file

I ran into similar problems when I tried to use my conkyrc from jessie on a new ascii install.

Add conky.config = {and put the rest in braces}
Add a space after the =
Add a comma at the end of each line except the last.
Values go in single quotes, booleans don't.

Do that much, and you'll probably get rid of most of the errors. Some of the options may have changed. Here's what's working for me:

conky.config = {
    alignment = 'bottom_left',
    background = true,
    border_width = 1,
    cpu_avg_samples = 2,
	default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    font = 'DejaVu Sans Mono:size=10',
    gap_x = 4,
    gap_y = 4,
    minimum_height = 5,
	minimum_width = 10,
	maximum_width = 366,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    own_window_transparent = true,
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}

Offline

#3 2017-11-25 22:06:13

makh
Member
Registered: 2017-10-08
Posts: 29

Re: [SOLVED] <Ascii> Conky ~ Errors in configuration file

Thankyou Sir!

But I did forgot to look into: /etc/conky

Strangely, the versions are same, but Debian didnt made any issues on the use of the older configuration technique.


HP Probook 440 G2: Arch, Debian Stable
Others: Debian, Devuan Centos, Ubuntu, Opensuse
GUI: Openbox, Cinnamon, Xfce
Chroot: Debian, Ubuntu, Fedora

Offline

Board footer