Conky Syntax error

Hi,

I am using XFCE and have installed conky from the official repositories

I get the following when I try to run it:

[leigh@manjaro ~]$ conky
conky: Syntax error (/home/leigh/.config/conky/conky.conf:2: unexpected symbol near ‘#’) while reading config file.
conky: Assuming it’s in old syntax and attempting conversion.
conky: [string “…”]:159: attempt to call a nil value (global ‘loadstring’)

This is with a clean install of conky

I have also tried using a congy.config file from an installation of CB++ that works there but not on my Manjaro

I then tried deleting line by line but got as far as the first line!

I have also tried via conky manager

What am I doing wrong please?

PS my old account on this forum seems to have disappeared so I made a new one with same username

There is not much anyone can do to help you unless we see the script.
Keep in mind though conky scripts are generally quite customized for the system they are run on, so problems happen when copying them over to another.

1 Like

Sorry,

# conky configuration
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check link removed as I cant do links
#
# For ideas about how to modify conky, please see:
# link removed as I cant do links
#
# For help with conky, please see:
# link removed as I cant do links
#
# Enjoy! :)
##############################################
# Settings
##############################################
background yes
use_xft yes
xftfont Liberation Sans:size=12
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
#own_window_argb_visual yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 200
maximum_width 240
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
#default_color 656667
default_color FFFFFF
color1 656667
default_shade_color 000000
default_outline_color 828282
alignment top_right
gap_x 12
gap_y 56
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
##############################################
#  Output
##############################################
TEXT
S Y S T E M    I N F O
${hr}
RAM:$alignr${memperc}%
$alignr$mem/$memmax
DISK:$alignr${fs_used_perc}%
$alignr${fs_used /}/${fs_size /}
CPU:$alignr${cpu cpu0}%

${color1}S H O R T C U T    K E Y S
${hr}
Alt+F2$alignr Run Dialog
Alt+F3$alignr Alt Menu
Super+Space$alignr Main Menu
Super+Tab$alignr Client Menu
Super+t$alignr Terminal
Super+f$alignr File Manager
Super+e$alignr Editor
Super+m$alignr Media Player
Super+w$alignr Web Browser
Super+c$alignr Chromium
Super+k$alignr Kodi
Super+h$alignr Task Manager
Super+l$alignr Lock Screen
Super+v$alignr Volume Control
Super+x$alignr Logout
PrtSc$alignr Screenshot

But it also doesnt work with versions included in conky manager, e.g.

# **********************************************************************
# "CPU Panel (8-core)" theme for Conky by Tony George (teejee2008@gmail.com)
#
# Webpage: teejeetech.blogspot.in/
# **********************************************************************


background yes
double_buffer yes

alignment bottom_left

border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no

gap_x 450
gap_y 20
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no

own_window yes
own_window_type normal
own_window_transparent yes
own_window_colour 000000
own_window_argb_visual no
own_window_argb_value 0
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

minimum_size 170 0
stippled_borders 0
update_interval 2.0
uppercase no
use_spacer none

show_graph_scale no
show_graph_range no

use_xft yes
xftalpha 0.1
xftfont Droid Sans:size=10
color0 white
color1 EAEAEA
color2 FFA300
color3 grey

TEXT
${color2}CPU ${color0}${alignr}${cpu cpu0}%
${cpubar cpu0 5,}
${top name 1} $alignr ${top cpu 1}%
${top name 2} $alignr ${top cpu 2}%
${top name 3} $alignr ${top cpu 3}%
${top name 4} $alignr ${top cpu 4}%
${top name 5} $alignr ${top cpu 5}%

${color2}RAM ${color0}${alignr}${mem}
${membar 5,}
${top_mem name 1} $alignr ${top_mem mem_res 1}
${top_mem name 2} $alignr ${top_mem mem_res 2}
${top_mem name 3} $alignr ${top_mem mem_res 3}
${top_mem name 4} $alignr ${top_mem mem_res 4}
${top_mem name 5} $alignr ${top_mem mem_res 5}

Your config is in the old syntax. You might need to convert it.

See this.

3 Likes

Great! Thanks!
I converted using convert.lua and now it is working enough for me to get it all as wanted
Leigh

conky.config = {
-- conky configuration

-- The list of variables has been removed from this file in favour
-- of keeping the documentation more maintainable.
-- Check http://conky.sf.net for an up-to-date-list.

-- For ideas about how to modify conky, please see:
-- http://conky.sourceforge.net/variables.html

-- For help with conky, please see:
-- http://conky.sourceforge.net/documentation.html

-- Enjoy! :)
--#############################################
-- Settings
--#############################################
	background = true,
	use_xft = true,
	font = 'Liberation Sans:size=11',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
	own_window_type = 'desktop',
--own_window_argb_visual yes
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 200, minimum_height = 200,
	maximum_width = 240,
	draw_shades = true,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = '#aaaaaa',
	default_shade_color = '#000000',
	default_outline_color = '#828282',
	alignment = 'top_left',
	gap_x = 1695,
	gap_y = 56,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = false,
--#############################################
--  Output
--#############################################
};

conky.text = [[
S Y S T E M    I N F O
${hr}
Host:$alignr$nodename
Uptime:$alignr$uptime
RAM:$alignr$mem/$memmax
Disk usage:$alignr${fs_used /}/${fs_size /}
CPU usage:$alignr${cpu cpu0}%
Wifi Quality:$alignr${wireless_link_qual_perc wlp12s0}%

S H O R T C U T    K E Y S
${hr}
Run Dialog$alignr Alt+F2
Main Menu$alignr Super+Space
Apps List$alignr Super+Tab
    Terminal$alignr Super+t
    File Manager$alignr Super+f
    Editor$alignr Super+e
    Media Player$alignr Super+m
    Web Browser$alignr Super+w
    Task Manager$alignr Super+h
    Volume Control$alignr Super+v

Window
    Menu$alignr Alt+Space
    Close$alignr Alt+F4
    >> Right$alignr Super+Right
    >> Left$alignr Super+Left
    >> Top$alignr Super+Up
    >> Bottom$alignr Super+Down
    > R Desktop $alignr Shift+Alt+Right
    > L Desktop $alignr Shift+Alt+Left
    

Show Desktop$alignr Super+d
Desktop 1$alignr Super+F1
Desktop 2$alignr Super+F2
Desktop 3$alignr Super+F3
Desktop 4$alignr Super+F4

Lock Screen$alignr Super+l
Logout$alignr Super+x
]];
1 Like

I needed the below to get transparency to work (from the ‘Conky questions, transparency XFCE’ post’ )

own_window_transparent = true,
own_window_type = 'desktop',
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_class = 'Conky',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.