Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

Conky-manger doesn't work #15

Open
kabbalah100 opened this issue Aug 2, 2020 · 9 comments
Open

Conky-manger doesn't work #15

kabbalah100 opened this issue Aug 2, 2020 · 9 comments

Comments

@kabbalah100
Copy link

This is the exit when you throw conky from the terminal
/home/julio # conky manager
conky: desktop window (600010) is subwindow of root window (139)
conky: window type - desktop
conky: drawing to created window (0x2200001)
conky: drawing to double buffer

When I open Cponky-manager and select the Gotam box, and I configure everything and close, the conky Gotam doesn't open, and when I open the conky-manager application again the box is unchecked, I did it several times and it always answers the same.
I have a Thinkpad lenovo T430, with archlinux 86x64 installed.
I thank you for your support
Julio Cesar campos

@zcot
Copy link

zcot commented Aug 2, 2020

conky: desktop window (600010) is subwindow of root window (139)
conky: window type - desktop
conky: drawing to created window (0x2200001)
conky: drawing to double buffer

That does look like normal output when you start conky from terminal.

But maybe nobody really runs conky with a root context, but I don't care, but in many cases the user desktop is not a root context so it seems like a weird effort.

The terminal command conky manager will call the conky program and then it will pass the parameter "manager" to that program, but conky will just ignore it, because "manager" is not a correct start flag, switch, or parameter. So that command will only simply start conky and it will use the default config only. It is exactly the same as using the command: conky

If you want to use a specific config then you can use a command such as: conky -c ~/.conky/conkyrc

If you want to use the Gotam config then you can use a command such as: conky -c ~/.conky/Gotam/conky.config (or some real path and file name of this custom config)

The better way to run that same command would be: cd ~/.conky/Gotam ; conky -c conky.config

When I open Cponky-manager and select the Gotam box, and I configure everything and close, the conky Gotam doesn't open, and when I open the conky-manager application again the box is unchecked,

If you run the conky-manager and select Gotam, then you should immediately see the Gotam conky config show up on your screen(and it might be behind another window). If you do not see this, then you need to run a terminal command as above so you can find out the exact error message that the conky program is encountering, -this is not related to the conky-manager. If you fix the error, then conky-manager will probably act correctly.

@kabbalah100
Copy link
Author

home/julio # cd ~/.conky/Gotham ; conky -c conky.config
conky: cannot open conky.config: No existe el fichero o el directorio


/home/julio # conky-manager
[07:18:49] Desktop: gnome
[07:18:49] Found theme pack [installed]: /usr/share/conky-manager/themepacks/default-themes-2.1.cmtp.7z
[07:18:49] App config loaded: '/root/.config/conky-manager.json'
[07:18:50] Searching for conkyrc files... 12 found
conky: Syntax error (/root/.conky/Gotham/Gotham:1: syntax error near 'yes') 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')

@kabbalah100
Copy link
Author

This is ~/.conky/Gotham/Gotham: I changed the configuration for transparency in archlinux, this configuration has always worked for me without problems.

use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 1
total_run_times 0

own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type conky
own_window yes
own_window_argb_visual yes
own_window_argb_value 255

double_buffer yes
#minimum_size 250 5
#maximum_width 500
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color red
default_outline_color green
alignment middle_middle
gap_x 0
gap_y 20
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer yes

minimum_size 0 0
TEXT
${voffset 10}${color EAEAEA}${font GE Inspira:pixelsize=120}${time %I:%M}${font}${voffset -84}${offset 10}${color FFA300}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font GE Inspira:pixelsize=22}${time %B} ${time %Y}${font}${voffset 24}${font GE Inspira:pixelsize=58}${offset -148}${time %A}${font}
${voffset 1}${offset 12}${font Ubuntu:pixelsize=12}${color FFA300}HD ${offset 9}$color${fs_free /} / ${fs_size /}${offset 30}${color FFA300}RAM ${offset 9}$color$mem / $memmax${offset 30}${color FFA300}CPU ${offset 9}$color${cpu cpu0}%

@zcot
Copy link

zcot commented Aug 3, 2020

The problem is not conky-manager.

You have to find the error.

Above, it does say there is a problem on line 159.

Find it with this: conky -c ~/.conky/Gotham/Gotham
But if you are using a config that includes lua, then use: cd ~/.conky/Gotham ; conky -c Gotham

For you, ~ means /root, I do not know why you are using the root user, so you have to make sure you do the correct thing.

But, the problem is not conky-manager.

@kabbalah100
Copy link
Author

I thank you for your support, however, I still can't find a way to get conky and conky manager to work, it must be some archlinux bug, there is no other explanation, because before reinstalling it on the new hard drive it was working perfectly.
I thank you for your support, however, I still can't find a way to get conky and conky manager to work, it must be some archlinux bug, there is no other explanation, because before reinstalling it on the new hard drive it was working perfectly.
I will keep looking until I find the bug, although I am not an expert, but I will keep trying.
Thanks again.

@mrxspice
Copy link

mrxspice commented Aug 27, 2020

The problem is not conky-manager.

You have to find the error.

Above, it does say there is a problem on line 159.

Find it with this: conky -c ~/.conky/Gotham/Gotham
But if you are using a config that includes lua, then use: cd ~/.conky/Gotham ; conky -c Gotham

For you, ~ means /root, I do not know why you are using the root user, so you have to make sure you do the correct thing.

But, the problem is not conky-manager.

Today I faced the same issue too, I've been using Conky for a long time, I guess it requires more recent updates.

Here's the output to your command and I get the same or similar to every clock widget in conky

conky: Syntax error (~/.conky/Gotham/Gotham:1: syntax error near 'yes') 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')

@zcot
Copy link

zcot commented Aug 27, 2020

conky is showing the error, not conky-manager.

Maybe you can check the version of conky and the version of lua? What version of lua is conky compiled with? conky -v

I don't use Arch so I can't see where to offer a suggestion for this.

I do know that most distros do not run default as a root user, but as a user account, so running as root but using a user account setup of these packages might be related but I have no idea.

Also, for conky-manager, after you get the conky problem worked out, not conky-manager, maybe you should be using conky-manager2 instead.

good luck, if you find where the problem is, or if this is "some Arch bug" then you should post the solution here so others can get the benefit too.

zcot

@JohnFajardo
Copy link

Just chiming in to confirm that the error is shown by conky-manager due to mismatching LUA versions. Digging in for a fix.

@Linuxious
Copy link

Hey all just to confirm with @thatjohn conky-manager has not been worked on since 2017 and naturally conky's configuration files changed. Here is my configuration:

conky.config = {
temperature_unit = 'fahrenheit',
alignment = 'top_right',
background = true,
color2 = 'red',
color3 = 'blue',
color4 = 'orange',
cpu_avg_samples = 2,
default_color = 'yellow',
double_buffer = true,
font = 'Bitsream Vera Sans:size=8',
font2 = 'Bitstream Vera Sans:bold:size=8',
font3 = 'Bitstream Vera Sans:bold:size=10',
gap_x = 25,
gap_y = 13,
minimum_width = 200,
no_buffers = true,
own_window = true,
own_window_type = 'override',
own_window_transparent = true,
update_interval = 1.5,
use_xft = true
}
conky.text = [[
${voffset 8}$color4${font Bitstream Vera Sans:size=16}${time %A}$font
${voffset -8}$alignr$color3${font Bitstream Vera Sans:size=38}${time %e}$font
$color${voffset -30}$color3${font Bitstream Vera Sans:size=18}${time %b}$font
${voffset -3} $color3${font Bitstream Vera Sans:size=20}${time %Y}$font$color2$hr

${voffset 8}$color$hr
${font3}Time$alignr$color${font2}${time %T}
$hr

${voffset 20}${goto 40}${color}${font3}Temperatures
${goto 40}${color2}${font2}CPU Temp$alignr$color$font${exec echo $(((cat /sys/bus/pci/drivers/k10temp/0000\:00\:18.3/hwmon/hwmon1/temp1_input) / 1000 * 9 / 5 + 32))} °F
${goto 40}${color2}${font2}GPU Temp$alignr$color$font${exec echo $(((cat /sys/bus/pci/drivers/k10temp/0000\:00\:18.3/hwmon/hwmon1/temp2_input) / 1000 * 9 / 5 + 32))} °F
${goto 40}${color2}${font2}SSD Temp$alignr$color$font${hddtemp} °F
#${goto 40}${color2}${font2}$alignl $color$font${exec sensors -f} °F
${voffset 20}${goto 40}${color}${font3}Fans
${goto 40}${color2}${font2}CPU Fan$alignr$color$font${exec sensors | grep 'fan1:' | cut -c14-18} RPM
${voffset 20}${goto 40}${color}${font3}CPU${font2}$alignr$cpu%
${voffset 5}${goto 40}$font2$color2${top name 1}$alignr$color${font}${top cpu 1}%
${goto 40}$color2${font2}${top name 2}$alignr$color${font}${top cpu 2}%
${goto 40}$color2${font2}${top name 3}$alignr$color${font}${top cpu 3}%
${goto 40}$color2${font2}${top name 4}$alignr$color${font}${top cpu 2}%
${goto 40}$color2${font2}${top name 5}$alignr$color${font}${top cpu 3}%
${goto 40}$color2${font2}${top name 6}$alignr$color${font}${top cpu 2}%
${goto 40}$color2${font2}${top name 7}$alignr$color${font}${top cpu 3}%
${goto 40}$color2${font2}${top name 8}$alignr$color${font}${top cpu 2}%
${goto 40}$color2${font2}${top name 9}$alignr$color${font}${top cpu 9}%
${goto 40}$color2${font2}${top name 10}$alignr$color${font}${top cpu 10}%

${voffset 20}${goto 40}${font3}${color}RAM${font Bitstream Vera Sans:bold:size=8}$alignr$mem$font
${goto 40}${voffset 5}${font2}$color2${top_mem name 1}$alignr$color${font}${top_mem mem_res 1}
${goto 40}$color2${font2}${top_mem name 2}$alignr$color${font}${top_mem mem_res 2}
${goto 40}$color2${font2}${top_mem name 3}$alignr$color${font}${top_mem mem_res 3}
${goto 40}$color2${font2}${top_mem name 4}$alignr$color${font}${top_mem mem_res 4}
${goto 40}$color2${font2}${top_mem name 5}$alignr$color${font}${top_mem mem_res 5}
${goto 40}$color2${font2}${top_mem name 6}$alignr$color${font}${top_mem mem_res 6}
${goto 40}$color2${font2}${top_mem name 7}$alignr$color${font}${top_mem mem_res 7}
${goto 40}$color2${font2}${top_mem name 8}$alignr$color${font}${top_mem mem_res 8}
${goto 40}$color2${font2}${top_mem name 9}$alignr$color${font}${top_mem mem_res 9}
${goto 40}$color2${font2}${top_mem name 10}$alignr$color${font}${top_mem mem_res 10}

${voffset 20}${goto 40}${font3}${color}Swap${font Bitstream Vera Sans:bold:size=8}$alignr${swap}/ ${swapfree}

${voffset 15}$font$alignr${execi 10000 awk -F= '/TION/ {print $2}' /etc/lsb-release |sed 's/"//g'}
${execi 10000 awk -F= '/EASE=/ {printf $2" "} /NAME/ {print $2}' /etc/lsb-release}
${voffset 10}${color2}${font2}${alignr}${execi 1200 whoami}@${nodename}
${alignr}${color2}${font Bitstream Vera Sans:bold:size=8}uptime: ${font}${color}${uptime}
${voffset 5}${color2}${font Bitstream Vera Sans:bold:size=8}${alignr}kernel: ${font}${color}${kernel}

]]

as you can see it is way different than the old conky-manager files

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants