Author Topic: new Conky syntax beginning from version 1.10  (Read 9585 times)

0 Members and 1 Guest are viewing this topic.

Offline Fatboy

  • Sr. Mitglied
  • ****
  • Posts: 323
  • "Spiral out. Keep going..."
  • Branch: stable
  • Desktop: Xfce, KDE plasma 5
  • GPU Card: nVidia GeForce 210
  • GPU driver: 340.xx
  • Kernel: Manjaro Kernel 4.4 LTS
  • Skill: Intermediate
Re: new Conky syntax beginning from version 1.10
« Reply #15 on: 29. October 2015, 10:24:57 »
I am using conky-lau (Manjaro XFCE) with a conky I created in Ubuntu a few months ago and is working fine.
"I'm reaching for the random or whatever will bewilder me. Whatever will bewilder me."

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: new Conky syntax beginning from version 1.10
« Reply #16 on: 29. October 2015, 11:58:42 »
Well Conky 1.10 has a built in feature to 'translate' older configs, just in many cases it fails and then complains about 'no text' ... ;)
@Strit, maybe you are just lucky with the way your config look like, or Conky's backward compatability has improved...

@Fatboy: Conky-lua is still at 1.9 and ONLY the old syntax will work with that one... 8)
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline Fatboy

  • Sr. Mitglied
  • ****
  • Posts: 323
  • "Spiral out. Keep going..."
  • Branch: stable
  • Desktop: Xfce, KDE plasma 5
  • GPU Card: nVidia GeForce 210
  • GPU driver: 340.xx
  • Kernel: Manjaro Kernel 4.4 LTS
  • Skill: Intermediate
Re: new Conky syntax beginning from version 1.10
« Reply #17 on: 29. October 2015, 12:27:26 »
@oberon Ohhh, I see. Thanks :)
"I'm reaching for the random or whatever will bewilder me. Whatever will bewilder me."

Offline Strit

  • Maintainer
  • ***
  • Posts: 746
  • Manjaro Torrent Maintainer
    • Strits.dk
  • Branch: Stable
  • Desktop: XFCE
  • GPU Card: GTX 760 OC
  • GPU driver: Non-free nvidia 361
  • Kernel: 4.4.8-1-MANJARO
  • Skill: Intermediate
Re: new Conky syntax beginning from version 1.10
« Reply #18 on: 29. October 2015, 12:42:29 »
Well Conky 1.10 has a built in feature to 'translate' older configs, just in many cases it fails and then complains about 'no text' ... ;)
@Strit, maybe you are just lucky with the way your config look like, or Conky's backward compatability has improved...

@Fatboy: Conky-lua is still at 1.9 and ONLY the old syntax will work with that one... 8)

Yeah. I use pretty simple configs, compared to some of the shiny ones out there.
Desktop PC: Manjaro XFCE 15.12 (stable, kernel 4.4)
Private Laptop: Manjaro Strit 16.03 (unstable, kernel 4.6)
Work Laptop: Manjaro Strit 16.03 (stable, kernel 4.4)
Netbook: Arch Linux XFCE/LXqt (i686, kernel 4.0)

Offline nadal80

  • Neuling
  • *
  • Posts: 9
  • I'm new. Be nice!
  • Skill: Novice
Re: new Conky syntax beginning from version 1.10
« Reply #19 on: 23. March 2016, 11:12:32 »
Hi to all,
I managed to translate my old conky config file and now it's working.
However conky complain some error:

Code: [Select]
conky: invalid setting of type 'number'
conky: invalid setting of type 'number'
conky: invalid setting of type 'number'
conky: invalid setting of type 'number'
conky: unknown variable '$'
The last error in loop.
Here is my config:
Code: [Select]
conky.config = {
background = false,
update_interval = 1.0,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
text_buffer_size = 2048,
temperature_unit = 'celsius',
own_window_class = 'Conky',
own_window = true,
own_window_type = 'desktop',
own_window_transparent = true,
own_window_hints = 'undecorated','sticky','skip_taskbar','skip_pager','below',
border_inner_margin = 0,
border_outer_margin = 0,
minimum_height = 520,
minimum_width = 600,
maximum_width = 520,
alignment = 'top_right',
gap_x = 0,
gap_y = 100,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
default_color = 'gray',
default_shade_color = 'red',
default_outline_color = 'green',
use_xft = true,
override_utf8_locale = true,
font = 'Play:normal:size=7',
xftalpha = 0.9,
uppercase =false,
default_color = '333333',
color0 = 'FFFFFF',
color1 = 'FFFFFF',
color2 = '1994D1',
lua_load = './rings-v1.3.1.lua',
lua_draw_hook_pre = 'conky_main',
own_window_argb_visual = false,
own_window_argb_value = 0,
own_window_colour = '000000',
}

conky.text = [[
${font Play:normal:size=7}${voffset 16}${color1}${goto 120}${freq_g cpu0} Ghz${alignr 330}${acpitemp} °C
${font Play:normal:size=7}${voffset 0}${goto 120}${color1}CPU 1 ${alignr 330}${color1}${cpu cpu0}%
${font Play:normal:size=7}${voffset 2}${goto 120}${color1}CPU 2${alignr 330}${color1}${cpu cpu1}%
${font Play:normal:size=7}${voffset 2}${goto 120}${color1}CPU 3${alignr 330}${color1}${cpu cpu2}%
${font Play:normal:size=7}${voffset 2}${goto 120}${color1}CPU 4${alignr 330}${color1}${cpu cpu3}%
${goto 50}${voffset 16}${font Play:normal:size=7}${color1}${top name 1}${alignr 306}${top cpu 1}%
${goto 50}${font Play:normal:size=7}${color1}${top name 2}${alignr 306}${top cpu 2}%
${goto 50}${font Play:normal:size=7}${color1}${top name 3}${alignr 306}${top cpu 3}%
${font Michroma:size=10}${color0}${goto 80}${voffset 4}CPU
${font Michroma:size=10}${color0}${goto 394}${voffset 44}MEMORY
${goto 324}${voffset -6}${font Play:normal:size=7}${color1}${top_mem name 1}${alignr 40}${top_mem mem 1}%
${goto 324}${font Play:normal:size=7}${color1}${top_mem name 2}${alignr 40}${top_mem mem 2}%
${goto 324}${font Play:normal:size=7}${color1}${top_mem name 3}${alignr 40}${top_mem mem 3}%
${font Play:normal:size=7}${voffset 14}${goto 348}${color1}SWAP${alignr 40}${color1}${swap} / ${color1}${swapmax}
${font Play:normal:size=7}${voffset 4}${goto 348}${color1}RAM ${alignr 40}${color1}${mem} / ${color1}${memmax}
${font Play:normal:size=7}${goto 80}${voffset -68}Root${color1}${alignr 310}${fs_used /} / ${fs_size /}
${font Play:normal:size=7}${goto 80}${voffset 0}Home${alignr 310}${color1}${fs_used /home} / ${fs_size /home}
${font Play:normal:size=7}${goto 80}${voffset 0}Usr${alignr 310}${color1}${fs_used /usr} / ${fs_size /usr}
${font Michroma:size=10}${color0}${goto 66}${voffset 10}HARD  DRIVE
${font Michroma:size=10}${color0}${voffset 26}${goto 324}INTERNET  INFO
${if_existing /proc/net/route enp4s0}${font Play:normal:size=7}${color1}${alignr 54}${voffset -8}WiFi  ${color1}${wireless_essid enp4s0}
${font Play:normal:size=7}${color1}${goto 298}${voffset 2}Up${goto 370}${color1}${totalup enp4s0} / ${color1}${upspeed enp4s0}
${font Play:normal:size=7}${goto 298}${color1}Down${goto 370}${color1}${totaldown enp4s0} / ${color1}${downspeed enp4s0}
${font Play:normal:size=8}${goto 300}${voffset 2}Local IP${goto 370}${addr enp4s0}
${font Play:normal:size=8}${goto 300}${voffset 1}Public IP${goto 370}${execi 3600 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
${font Michroma:size=9}${goto 90}${voffset -42}${color0}${time %a} ${color0}${time %x}
${font Michroma:size=18}${goto 118}${color1}${voffset -4}${time %H}:${time %M}
${font Michroma:size=8}${color0}${goto 296}${voffset 18}BATTERIE
${font Play:size=8}${color0}${goto 278}${voffset 5}${color1}${battery_percent BAT1}%
${else}${if_existing /proc/net/route enp4s0}${font Play:normal:size=7}${color1}${goto 298}${voffset 6}Up${goto 370}${color1}${totalup enp4s0} / ${color1}${upspeed enp4s0}
${font Play:normal:size=7}${goto 298}${color1}Down${goto 370}${color1}${totaldown enp4s0} / ${color1}${downspeed enp4s0}
${font Play:normal:size=8}${goto 300}${voffset 2}Local IP${goto 370}${addr enp4s0}
${font Play:normal:size=8}${goto 300}${voffset 1}Public IP${goto 370}${execi 3600 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
${font Michroma:size=9}${alignr 298}${voffset -42}${color0}${time %a} ${color0}${time %x}
${font Michroma:size=18}${goto 118}${color1}${voffset -4}${time %H}:${time %M}
${font Michroma:size=8}${color0}${goto 296}${voffset 18}BATTERIE
${font Play:size=8}${color0}${goto 278}${voffset 4}${color1}${battery_percent BAT1}%${endif}${endif}
${font Play:normal:size=7}${goto 180}Uptime${color1}${alignr 100}${uptime_short}
${font Michroma:size=11}${color0}${voffset 150}${alignr 150}  ${machine}
]]

Any idea?
« Last Edit: 23. March 2016, 11:16:45 by nadal80 »

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: new Conky syntax beginning from version 1.10
« Reply #20 on: 23. March 2016, 14:28:18 »
Try like that:
Code: [Select]
own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',
The variable error must be somewhere in the text block ;) I didn't have time now to check through everything...
But you'll find it! ;) 8)
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: new Conky syntax beginning from version 1.10
« Reply #21 on: 23. March 2016, 14:37:45 »
I don't get the $ error when I use your config.
The reason must be somewhere in your .lua file...
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin