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

0 Members and 1 Guest are viewing this topic.

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
new Conky syntax beginning from version 1.10
« on: 05. July 2015, 10:20:00 »
After some confusion and searching I finally found out about the new syntax Conky expects from version 1.10
Unfortunately 'man conky' points you to a non-existent directory .
The example file you will find here: /usr/share/doc/conky-1.10.0/conky.conf
Your new conky.config file will look something like
Code: [Select]
conky.config = {
    alignment = 'top_left',
    background = false,
...
}
conky.text = [[
${scroll 16 $nodename - $sysname $kernel on $machine | }
...
]]

wow  8)
Have fun re-writing your Conkies everyone! ;)

Also have a look at this arch-forum thread about current issues with the latest conky release: https://bbs.archlinux.org/viewtopic.php?id=199217
« Last Edit: 05. July 2015, 11:34:22 by oberon »
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline papajoke

  • Vollwertiges Mitglied
  • ***
  • Posts: 135
  • from www.manjaro.fr
  • Branch: stable/testing
  • Desktop: KDE4 and 5 - zsh
  • GPU driver: video-nouveau free
  • Kernel: x64
  • Skill: Intermediate
Re: new Conky syntax beginning from version 1.10
« Reply #1 on: 05. July 2015, 11:57:04 »
thanks,
my 3 conkys  fixed :)

note :
replace "minimum_size" key by minimum_height and minimum_width
for comments : -- is ok in  block config and between blocks but, in bock text is not -- but again  #

Offline CyberWolf2k14

  • Held Mitglied
  • *****
  • Posts: 1184
  • Computers make very fast, very accurate mistakes.
  • Branch: Stable-sysd229-LightDM
  • Desktop: MATE/Cinnamon/GNOME
  • GPU Card: nVidia GeForce GT740
  • GPU driver: nVidia-NF-364.19
  • Kernel: 4.4.9x64 / 4.2.8.9x64 / 4.1.23x64
  • Skill: Intermediate
Re: new Conky syntax beginning from version 1.10
« Reply #2 on: 05. July 2015, 12:18:51 »
And to think, I was going to "learn lua" in THE FUTURE..meaning sometime MUCH further than now.
Oh well, I at least found something that MIGHT be helpful in that link you provided oberon.
And, besides, if all else fails, I can rollback to previous and block updates to it.  ;)
PowerSpec Quad core Intel Core i5-4690K w/ 16GB RAM
Dual Boot = Win 7 Ult x64 and Manjaro 15.12 x64
===================================================
"A computer lets you make more mistakes faster than any invention in human history...
with the possible exceptions of handguns and tequila".

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 #3 on: 05. July 2015, 12:48:06 »
for comments : -- is ok in  block config and between blocks but, in bock text is not -- but again  #
pffff - good to know! ;)  :P
Thank you for pointing that out  ;D
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline CyberWolf2k14

  • Held Mitglied
  • *****
  • Posts: 1184
  • Computers make very fast, very accurate mistakes.
  • Branch: Stable-sysd229-LightDM
  • Desktop: MATE/Cinnamon/GNOME
  • GPU Card: nVidia GeForce GT740
  • GPU driver: nVidia-NF-364.19
  • Kernel: 4.4.9x64 / 4.2.8.9x64 / 4.1.23x64
  • Skill: Intermediate
Re: new Conky syntax beginning from version 1.10
« Reply #4 on: 08. July 2015, 14:23:22 »
Now, if only the online references can get updated to show all the correct syntax and such it would be glorious.
Not to mention down right helpful.
PowerSpec Quad core Intel Core i5-4690K w/ 16GB RAM
Dual Boot = Win 7 Ult x64 and Manjaro 15.12 x64
===================================================
"A computer lets you make more mistakes faster than any invention in human history...
with the possible exceptions of handguns and tequila".

Offline Cubanpit

  • Sr. Mitglied
  • ****
  • Posts: 276
  • Skill: Novice
Re: new Conky syntax beginning from version 1.10
« Reply #5 on: 09. July 2015, 22:12:52 »
Setting document as Lua script in mousepad helped me a lot in modifying my old conky.conf  :D
Laptop: Lenovo Ideapad Flex 14 (2013) // Graphics: Intel HD Haswell - Free Driver // DE: KDE Plasma 5 // Kernel: Linux 4.6 // Branch: Testing
PC: Graphics: ATI Radeon X1600 PRO - Free Driver // WM: i3 // Kernel: Linux 4.4 // Branch: Stable

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 #6 on: 09. July 2015, 22:58:26 »
That's a good idea!
And the format of the file seems to be important.
Do you know more about that?
I just realized that an identical looking config written in Mousepad without the Lua-Script setting gives weird errors while it looks exactly the same ... ???
It gives
Code: [Select]
'}' expected (to close '{' at line 1) near '=') while reading config file.while line 1 looks like this:
Code: [Select]
conky.config = {and line 30 after all the settings like that:
Code: [Select]
}Opening and saving the file again with Mousepad and the Lua-Settings renders the file usable  :o What's the secret behind that??
That's weird!
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline Cubanpit

  • Sr. Mitglied
  • ****
  • Posts: 276
  • Skill: Novice
Re: new Conky syntax beginning from version 1.10
« Reply #7 on: 10. July 2015, 00:13:17 »
I haven't tried "with and without", but I can say that this error happened also to me, because I haven't notice that the config lines must end with a comma.
So conky thinks that the config part should end after the first line without comma, and ask you to close config definition.
Laptop: Lenovo Ideapad Flex 14 (2013) // Graphics: Intel HD Haswell - Free Driver // DE: KDE Plasma 5 // Kernel: Linux 4.6 // Branch: Testing
PC: Graphics: ATI Radeon X1600 PRO - Free Driver // WM: i3 // Kernel: Linux 4.4 // Branch: Stable

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 #8 on: 10. July 2015, 01:04:05 »
Hm. The comma thing was correct and, as I say, I didn't change anything but the (whatever) format and I removed some tabs and it worked. I had copied the original config in from the forum, so don't know what formatting was already in there - anyway it was not visible - that makes it a bit difficult ???
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 #9 on: 10. July 2015, 09:53:43 »
The error here seems to have been caused simply by a line commented out the old way with '#' instead of the lua-way '--'
...  ::)
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline markmarques

  • Jr. Mitglied
  • **
  • Posts: 75
  • Branch: Manjaro Testing
  • Desktop: Xfce / OpenBox / I3
  • GPU Card: AMD ATi 6850HD
  • GPU driver: free
  • Kernel: linux4.4 - Latest X64
  • Skill: Novice
Re: new Conky syntax beginning from version 1.10
« Reply #10 on: 23. August 2015, 11:09:37 »
Thanks for the fast reply...

But I have already seen the forum tread and changed my .conkyrc file accordinly ...
So If I call conky latest version it does launch with the correct syntax ( LUA script I think... )

(With the latest fiddling with the system I realize that my "freezing" problems perhaps are not conky related )   

Still reading the conky documentation details in order to find the option to reuse the char display ...

Although, as I wrote before, still do not know how to launch a terminal by default at xfce startup ...
Any ideas :) ?

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 #11 on: 29. October 2015, 09:02:24 »
It seems that conky 1.10 is backwards compatible or something.
I still use the old syntax in my conky's and they show just fine with conky 1.10 installed.
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 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 #12 on: 29. October 2015, 09:10:24 »
Are you sure you're not using Conky-lua?
What's your
Code: [Select]
pacman -Q conky?
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: new Conky syntax beginning from version 1.10
« Reply #13 on: 29. October 2015, 09:35:22 »
Conky-cli at least is. It complains about old syntax on startup and displays info happily after that. I could not get the new syntax working, so I just use the old.

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 #14 on: 29. October 2015, 09:49:45 »
Are you sure you're not using Conky-lua?
What's your
Code: [Select]
pacman -Q conky?

On my laptops:
Code: [Select]
pacman -Q conky
conky 1.10.0-5

On my desktop I am using conky-lua, but that was for testing out a lua conky at some point.
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)