{"action":"created","issue":{"url":"https://api.github.com/repos/brndnmtthws/conky/issues/253","repository_url":"https://api.github.com/repos/brndnmtthws/conky","labels_url":"https://api.github.com/repos/brndnmtthws/conky/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/brndnmtthws/conky/issues/253/comments","events_url":"https://api.github.com/repos/brndnmtthws/conky/issues/253/events","html_url":"https://github.com/brndnmtthws/conky/issues/253","id":153876804,"number":253,"title":"New 1.10 Config Issues","user":{"login":"awilliamson","id":621477,"avatar_url":"https://avatars.githubusercontent.com/u/621477?v=3","gravatar_id":"","url":"https://api.github.com/users/awilliamson","html_url":"https://github.com/awilliamson","followers_url":"https://api.github.com/users/awilliamson/followers","following_url":"https://api.github.com/users/awilliamson/following{/other_user}","gists_url":"https://api.github.com/users/awilliamson/gists{/gist_id}","starred_url":"https://api.github.com/users/awilliamson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awilliamson/subscriptions","organizations_url":"https://api.github.com/users/awilliamson/orgs","repos_url":"https://api.github.com/users/awilliamson/repos","events_url":"https://api.github.com/users/awilliamson/events{/privacy}","received_events_url":"https://api.github.com/users/awilliamson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-09T21:42:36Z","updated_at":"2016-05-18T08:53:14Z","closed_at":null,"body":"New 1.10 proves troublesome for me due to the different syntax and configuration API changes.\r\n\r\nI've managed to figure out TEXT, but it's floating away from the bar and not aligned properly at all.\r\n\r\n![Misaligned](https://dl.dropboxusercontent.com/1/view/4fijx8g4hpgr8pa/Apps/Shutter/Selection_146.png)\r\n\r\nWhat would the be current equivalent of \r\n```\r\n{ \"full_text\" , \" RAM ${mem}/${memmax} \" , \"color\", ${if_match ${memperc} 90}\"\\#ffffff\"${else}\"\\#ff0    000\"${endif} },\r\n```\r\n\r\nI had a row of values, right-aligned, on my i3 bar, and did conditional coloring. So far I've only been able to put in basic text and command outputs.\r\n\r\nI understand this may not exactly be an issue with the platform but rather my misunderstanding of the latest changes. But I feel this may not be an isolated incident, users ( as they start to upgrade ) will slowly begin to realise the configuration change and seek the documentation. Whilst provided, it doesn't ( in a concise way ) lay out the power of the old config, or their current alternatives.\r\n\r\nPerhaps it could be suggested to have a simple 'common' use-case, comparing old-for-new. Making it easier for users to migrate?\r\n\r\nI look forward to your response.\r\n"},"comment":{"url":"https://api.github.com/repos/brndnmtthws/conky/issues/comments/219965386","html_url":"https://github.com/brndnmtthws/conky/issues/253#issuecomment-219965386","issue_url":"https://api.github.com/repos/brndnmtthws/conky/issues/253","id":219965386,"user":{"login":"BelladonnavGF","id":19425080,"avatar_url":"https://avatars.githubusercontent.com/u/19425080?v=3","gravatar_id":"","url":"https://api.github.com/users/BelladonnavGF","html_url":"https://github.com/BelladonnavGF","followers_url":"https://api.github.com/users/BelladonnavGF/followers","following_url":"https://api.github.com/users/BelladonnavGF/following{/other_user}","gists_url":"https://api.github.com/users/BelladonnavGF/gists{/gist_id}","starred_url":"https://api.github.com/users/BelladonnavGF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BelladonnavGF/subscriptions","organizations_url":"https://api.github.com/users/BelladonnavGF/orgs","repos_url":"https://api.github.com/users/BelladonnavGF/repos","events_url":"https://api.github.com/users/BelladonnavGF/events{/privacy}","received_events_url":"https://api.github.com/users/BelladonnavGF/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T08:53:14Z","updated_at":"2016-05-18T08:53:14Z","body":"Hi awilliamson and Nooby! I think you guys are right: this conky update is more than just an update. On one of my boxes (an pre historic netbook) I notice that conky 1.10 is using a lot more resources than the old 1.9 version did. For now I pinned it on 1.9 while figuring out how to tackle it (or whether it is me being confused).\r\nAs for the lua syntax: I adapted my conkies while checking out v1.10 and found that the main difference is in the config section. I'm sure purists and tweakers will call me blasphemous, others will tell me the internal \"translater\" will make an old style conky work, but then again, a quick check while updating is always welcome.\r\n\r\nI found that operators are the same, the syntax is different. Here is my 5 cents:\r\n\r\n```\r\n--[[\t===========================================================\r\n\tCONKY EXAMPLE\r\n\tYour notes here\r\n\t===========================================================]]\r\n\r\nconky.config = {\r\n\talignment = 'top_right',\r\n\tbackground = true,\r\n\tborder_width = 0,\r\n\tcpu_avg_samples = 2,\r\n\tdouble_buffer = true,\r\n\tdraw_borders = false,\r\n\tdraw_graph_borders = false,\r\n\tdraw_outline = false,\r\n\tdraw_shades = true,\r\n\textra_newline = false,\r\n\tfont = 'Ubuntu:size=8',\r\n\tgap_x = 10,\r\n\tgap_y = 20,\r\n\timlib_cache_size = 0,\r\n\tminimum_height = 800,\r\n\tminimum_width = 240,\r\n\t\tmaximum_width = 240,\r\n\tno_buffers = true,\r\n\tout_to_console = false,\r\n\tout_to_stderr = false,\r\n\town_window = true,\r\n\town_window_argb_visual = false,\r\n\town_window_class = 'Conky',\r\n\town_window_hints = \"undecorated,below,sticky,skip_taskbar,skip_pager\",\r\n\town_window_transparent = true,\r\n\town_window_type = 'desktop',\r\n\ttext_buffer_size = 2048,\r\n\toverride_utf8_locale = true,\r\n\ttotal_run_times = 0,\r\n\tuppercase = false,\r\n\tupdate_interval = 1,\r\n\tuse_xft = true,\r\n\txftalpha = 1,\r\n\r\n-- Belladonna COLOUR DEFINITION Examples\r\n\tdefault_shade_color ='190101',\r\n\tdefault_outline_color = '828282',\r\n\tdefault_color = 'FFFFFF',\r\n\tcolor1 = '8C0202',-- My colour def 1\r\n\tcolor2 = 'BE0623',-- My colour def 2\r\n\tcolor3 = 'FF0000',-- My colour def 3\r\n\tcolor4 = '40F80D',-- My colour def 4\r\n\tcolor5 = 'FF0000',-- My colour def 5\r\n\tcolor6 = 'B2BCCA',-- My colour def 6\r\n\tcolor7 = 'D56501',-- My colour def 7\r\n\r\n-- Belladonna TEMPLATES\r\ntemplate0 = '${color orange}${font Ubuntu Mono:size=12:BOLD}',\r\ntemplate1 = '${font}\\n${voffset -9}$color2}${hr}${color}${font}${voffset -2}',\r\ntemplate2 = '${voffset -5}${color6}${stippled_hr}${color}',\r\n--- More templates here if you want to\r\n}\r\n\r\nconky.text = [[\r\n# Put the TEXT component of your old conky here\r\n${color6}${hr}\r\n${alignr}This is a new syntax conky by ${color}YOU\r\n]]\r\n```\r\n\r\nBTW Nooby I saw your discussion on the #! forum and resulting conky 1.10 design on DeviantArt -- which was absolutely stunning and lovely! Can I ask you something about that one? I saw you used the conkybanshee excellent script by kaivalagi, but not as it was configured originally (placing scripts in /usr/bin/... /usr/share/... and so on). I found that the old kaivalagi way of making conkybanshee work doesn't work anymore with 1.10. Can you tell us what you did? I mean, I think I saw in your conky scripts that you still call conkybanshee --datatype= in conky itself, but how/ what/ where did you do with the conkybanshee scripts/ code to make it work?"}}