brndnmtthws / conky

Light-weight system monitor for X, Wayland (sort of), and other things, too
https://conky.cc
GNU General Public License v3.0
7.27k stars 620 forks source link

conky: unknown variable '$image' #418

Closed a11g0rhythm closed 7 years ago

a11g0rhythm commented 7 years ago

Version conky 1.10.6 compiled Fri Dec 9 23:23:19 UTC 2016 for Linux 4.4.0-53-generic x86_64

Problem: when I add ${image /home/mariusz/Pulpit/12.png -p 20,20 -s 200x200} to config conky screem: unknown variable '$image'

dbriba commented 7 years ago

You say : "when I add ${image /home/mariusz/Pulpit/12.png -p 20,20 -s 200x200} to config"

You add this in the "conky.config = {" section ? It's not that. you must add your line in the "conky.text = [[" section.

reprise5 commented 7 years ago

What version are you using? Type conky --version in the terminal

a11g0rhythm commented 7 years ago

conky --version `conky 1.10.6 compiled Fri Dec 9 23:23:19 UTC 2016 for Linux 4.4.0-53-generic x86_64

Compiled in features:

System config file: /etc/conky/conky.conf Package library path: /usr/lib/conky

General:

Config file: `conky.config = { use_spacer = 'left', pad_percents = 3, background = false, double_buffer = true, font = 'Ubuntu Mono:size=12', use_xft = true, alignment = 'top_right', gap_x = 10, gap_y = 40, own_window_argb_visual = true, own_window_argb_value = 0, own_window_type = 'normal', own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky', own_window = true, update_interval = 5.0, }

conky.text = [[ ${color orange}Hostname: ${color}${nodename} ${color orange}Kernel: ${color}${sysname} ${kernel} on ${machine} ${color orange}Uptime: ${color}${uptime} ${hr} ${color orange}Load average: ${color}${loadavg} ${color orange}Processes: ${color}${processes} ${color orange}Running:${color} ${running_processes} ${hr} ${color orange}RAM: ${color}${mem}/${memmax} ${memperc}% ${membar 4} ${memgraph } ${hr} ${color orange}R:${color}${fs_used /}/${fs_size /} ${fs_bar 6 /} ${hr}

${image /home/mariusz/Pulpit/12.png -p 20,20 -s 200x200} ${color orange}Skróty vim:${color} ${hr} ${color orange},+f${color} -> NERDTree otwiera tam gdzie plik ${color orange},+t${color} -> NERDTree otwiera drzewo ${hr} ${color orange}ctrl+o${color} -> otwiera ostatnio używane pliki ${hr} ${color orange}ctrl+t${color} -> Nowa zakładka ${color orange}ctrl+w${color} -> Zamknij zakładkę ${color orange},+n${color} -> przejdź do wcześniejszej zakładki ${color orange},+m${color} -> przejdź do następnej zakładki ${hr} ${color orange}Shift+k${color} -> podpowiedzi z pythona ${color orange},+r${color} -> wykonaj kod pythona ]]`

dbriba commented 7 years ago

I test your conky, and for me it work as expected, I have no " unknown variable '$image' " My conky -v

`dominique@host-192-168-1-2 ~$ conky -v conky 1.10.6_pre compiled Mon Feb 20 15:37:19 UTC 2017 for Linux 4.9.3-200.fc25.x86_64 x86_64

Compiled in features:

System config file: /etc/conky/conky.conf Package library path: /usr/lib64/conky

General:

And the conky, with my good path to image

conky.config = { use_spacer = 'left', pad_percents = 3, background = false, double_buffer = true, font = 'Ubuntu Mono:size=12', use_xft = true, alignment = 'top_right', gap_x = 10, gap_y = 40, own_window_argb_visual = true, own_window_argb_value = 0, own_window_type = 'normal', own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky', own_window = true, update_interval = 5.0, }

conky.text = [[ ${color orange}Hostname: ${color}${nodename} ${color orange}Kernel: ${color}${sysname} ${kernel} on ${machine} ${color orange}Uptime: ${color}${uptime} ${hr} ${color orange}Load average: ${color}${loadavg} ${color orange}Processes: ${color}${processes} ${color orange}Running:${color} ${running_processes} ${hr} ${color orange}RAM: ${color}${mem}/${memmax} ${memperc}% ${membar 4} ${memgraph } ${hr} ${color orange}R:${color}${fs_used /}/${fs_size /} ${fs_bar 6 /} ${hr}

${image /home/dominique/Pulpit/12.png -p 20,20 -s 200x200} ${color orange}Skróty vim:${color} ${hr} ${color orange},+f${color} -> NERDTree otwiera tam gdzie plik ${color orange},+t${color} -> NERDTree otwiera drzewo ${hr} ${color orange}ctrl+o${color} -> otwiera ostatnio używane pliki ${hr} ${color orange}ctrl+t${color} -> Nowa zakładka ${color orange}ctrl+w${color} -> Zamknij zakładkę ${color orange},+n${color} -> przejdź do wcześniejszej zakładki ${color orange},+m${color} -> przejdź do następnej zakładki ${hr} ${color orange}Shift+k${color} -> podpowiedzi z pythona ${color orange},+r${color} -> wykonaj kod pythona ]]

a11g0rhythm commented 7 years ago

In my "General:" Imlib2 is missing. from man conky image (-p x,y) (-s WxH) (-n) (-f interval) Renders an image from the path specified using Imlib2.

Maybe it's problem. I'm using ubuntu mate 17.10.

dbriba commented 7 years ago

I think you are right, problem is here. I'm using fedora 26, with Kde, and the conky's package include Imlib2. May be there is another package in ubuntu, like conky-all, with this lib.

dbriba commented 7 years ago

Have you the imlib2 package installed ?

a11g0rhythm commented 7 years ago

yes, It wokrs apt remove conky-std apt install conky-all

dbriba commented 7 years ago

Ok, if that work you can close this thread.