{"action":"created","issue":{"url":"https://api.github.com/repos/jaagr/lemonbuddy/issues/131","repository_url":"https://api.github.com/repos/jaagr/lemonbuddy","labels_url":"https://api.github.com/repos/jaagr/lemonbuddy/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/jaagr/lemonbuddy/issues/131/comments","events_url":"https://api.github.com/repos/jaagr/lemonbuddy/issues/131/events","html_url":"https://github.com/jaagr/lemonbuddy/issues/131","id":185791972,"number":131,"title":"Lemonbuddy crashed on click of a custom script.","user":{"login":"contactgsuraj","id":16733744,"avatar_url":"https://avatars.githubusercontent.com/u/16733744?v=3","gravatar_id":"","url":"https://api.github.com/users/contactgsuraj","html_url":"https://github.com/contactgsuraj","followers_url":"https://api.github.com/users/contactgsuraj/followers","following_url":"https://api.github.com/users/contactgsuraj/following{/other_user}","gists_url":"https://api.github.com/users/contactgsuraj/gists{/gist_id}","starred_url":"https://api.github.com/users/contactgsuraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contactgsuraj/subscriptions","organizations_url":"https://api.github.com/users/contactgsuraj/orgs","repos_url":"https://api.github.com/users/contactgsuraj/repos","events_url":"https://api.github.com/users/contactgsuraj/events{/privacy}","received_events_url":"https://api.github.com/users/contactgsuraj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-27T22:04:17Z","updated_at":"2016-10-28T10:24:48Z","closed_at":null,"body":"I have a custom scrip as follows\r\n\r\n[module/dropbox]                                                                        \r\ntype = custom/script\r\nexec = echo \"%{A1:command}`script`%{A}\"\r\nformat-underline = #458588\r\ninterval=10\r\n\r\nClicking on this crashes lemonbuddy, after which killing it is the only option."},"comment":{"url":"https://api.github.com/repos/jaagr/lemonbuddy/issues/comments/256887694","html_url":"https://github.com/jaagr/lemonbuddy/issues/131#issuecomment-256887694","issue_url":"https://api.github.com/repos/jaagr/lemonbuddy/issues/131","id":256887694,"user":{"login":"contactgsuraj","id":16733744,"avatar_url":"https://avatars.githubusercontent.com/u/16733744?v=3","gravatar_id":"","url":"https://api.github.com/users/contactgsuraj","html_url":"https://github.com/contactgsuraj","followers_url":"https://api.github.com/users/contactgsuraj/followers","following_url":"https://api.github.com/users/contactgsuraj/following{/other_user}","gists_url":"https://api.github.com/users/contactgsuraj/gists{/gist_id}","starred_url":"https://api.github.com/users/contactgsuraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contactgsuraj/subscriptions","organizations_url":"https://api.github.com/users/contactgsuraj/orgs","repos_url":"https://api.github.com/users/contactgsuraj/repos","events_url":"https://api.github.com/users/contactgsuraj/events{/privacy}","received_events_url":"https://api.github.com/users/contactgsuraj/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T10:24:48Z","updated_at":"2016-10-28T10:24:48Z","body":"Sure thing. This is a tiny script I wrote to indicate the status of dropbox\r\n\r\n~~~\r\n#!/bin/bash\r\n#Dropbox Status outputs\r\n#Dropbox isn't enabled : \"Dropbox\"\r\n#Dropbox is startin: \"Starting...\"\r\n#Dropbox is Syncing: \"Syncing ...\"\r\n#Dropbox is running: \"Up to date...\"\r\nSTATUS=\"$(echo `dropbox status` | awk '{print $1;}')\"\r\nC_status=#fbf1c7\r\nDROPBOX_ICON=\"\"\r\nif [[ $STATUS == *\"Dropbox\"* ]]; then\r\n  C_status=#fb4934\r\nelif [[ $STATUS == *\"Starting\"* ]]; then\r\n  #statements\r\n  ICON=\r\nelif [[ $STATUS == *\"Syncing\"* ]]; then\r\n  DROPBOX_ICON=\r\nelse\r\n  I=1\r\nfi\r\necho \"%{F$C_status}$DROPBOX_ICON%{F}$ICON\"\r\n#echo \"%{A:dropbox start}$DROPBOX_ICON $ICON%{A}\"\r\n~~~\r\n\r\nThe commented echo is what crashes the bar, and I intended on making the click action on the icon one that triggers dropbox\r\n\r\nThe module in my lemonbuddy config is as follows.\r\n\r\n~~~\r\n[module/dropbox]\r\ntype = custom/script\r\nexec = echo \"`~/github/Scripts/dropboxStatus.sh`\"\r\nformat-underline = #458588\r\ninterval=5\r\n~~~\r\n\r\nAs a side note, I think the wiki should have something about clickable buttons, I am completely new to this so I am horrendously lost."}}
{"actor":{"display_login":"contactgsuraj"}}