{"action":"created","issue":{"url":"https://api.github.com/repos/awesomeWM/awesome/issues/2120","repository_url":"https://api.github.com/repos/awesomeWM/awesome","labels_url":"https://api.github.com/repos/awesomeWM/awesome/issues/2120/labels{/name}","comments_url":"https://api.github.com/repos/awesomeWM/awesome/issues/2120/comments","events_url":"https://api.github.com/repos/awesomeWM/awesome/issues/2120/events","html_url":"https://github.com/awesomeWM/awesome/issues/2120","id":275751030,"number":2120,"title":"Watch widget gives incorrect output","user":{"login":"RomeuG","id":2325589,"avatar_url":"https://avatars0.githubusercontent.com/u/2325589?v=4","gravatar_id":"","url":"https://api.github.com/users/RomeuG","html_url":"https://github.com/RomeuG","followers_url":"https://api.github.com/users/RomeuG/followers","following_url":"https://api.github.com/users/RomeuG/following{/other_user}","gists_url":"https://api.github.com/users/RomeuG/gists{/gist_id}","starred_url":"https://api.github.com/users/RomeuG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomeuG/subscriptions","organizations_url":"https://api.github.com/users/RomeuG/orgs","repos_url":"https://api.github.com/users/RomeuG/repos","events_url":"https://api.github.com/users/RomeuG/events{/privacy}","received_events_url":"https://api.github.com/users/RomeuG/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-21T15:22:36Z","updated_at":"2017-11-21T15:48:24Z","closed_at":"2017-11-21T15:37:32Z","author_association":"NONE","body":"Output of `awesome --version`:\r\n\r\n```\r\nawesome v4.2-120-ga6613c08 (Human after all)\r\n • Compiled against Lua 5.3.4 (running with Lua 5.3)\r\n • D-Bus support: ✔\r\n • execinfo support: ✔\r\n • xcb-randr version: 1.5\r\n • LGI version: 0.9.2\r\n```\r\n\r\n**How to reproduce the issue:**\r\n\r\n- In the task list, put this line: `awful.widget.watch('curl -s \"https://min-api.cryptocompare.com/data/price?fsym=VTC&tsyms=USD\" | jq -r .USD', 30),`\r\n- Reload AwesomeWM\r\n- See the JSON in the AwesomeWM bar\r\n\r\n**Actual result:**\r\n\r\nA json string appears in the bar `{\"USD\":3.96}` (the number is irrelevant since its always changing).\r\n\r\n**Expected result:**\r\n\r\nOnly the number should appear, since the command itself only gives the number as output, in the command line.\r\n"},"comment":{"url":"https://api.github.com/repos/awesomeWM/awesome/issues/comments/346068663","html_url":"https://github.com/awesomeWM/awesome/issues/2120#issuecomment-346068663","issue_url":"https://api.github.com/repos/awesomeWM/awesome/issues/2120","id":346068663,"user":{"login":"RomeuG","id":2325589,"avatar_url":"https://avatars0.githubusercontent.com/u/2325589?v=4","gravatar_id":"","url":"https://api.github.com/users/RomeuG","html_url":"https://github.com/RomeuG","followers_url":"https://api.github.com/users/RomeuG/followers","following_url":"https://api.github.com/users/RomeuG/following{/other_user}","gists_url":"https://api.github.com/users/RomeuG/gists{/gist_id}","starred_url":"https://api.github.com/users/RomeuG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomeuG/subscriptions","organizations_url":"https://api.github.com/users/RomeuG/orgs","repos_url":"https://api.github.com/users/RomeuG/repos","events_url":"https://api.github.com/users/RomeuG/events{/privacy}","received_events_url":"https://api.github.com/users/RomeuG/received_events","type":"User","site_admin":false},"created_at":"2017-11-21T15:48:24Z","updated_at":"2017-11-21T15:48:24Z","author_association":"NONE","body":"Hey, thanks! It is working.\r\n\r\nI am very sorry. As I was writing this, I noticed that the example in the documentation:\r\n\r\n`awful.widget.watch('bash -c \"sensors | grep temp1\"', 15),`\r\n\r\nYou are actually calling \"bash\". I did not notice that the first time I read it."}}
{"actor":{"display_login":"RomeuG"}}