{"action":"created","issue":{"url":"https://api.github.com/repos/jaagr/polybar/issues/298","repository_url":"https://api.github.com/repos/jaagr/polybar","labels_url":"https://api.github.com/repos/jaagr/polybar/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/jaagr/polybar/issues/298/comments","events_url":"https://api.github.com/repos/jaagr/polybar/issues/298/events","html_url":"https://github.com/jaagr/polybar/issues/298","id":198409670,"number":298,"title":"how to not exec script module if 'condition'","user":{"login":"eoli3n","id":14223657,"avatar_url":"https://avatars.githubusercontent.com/u/14223657?v=3","gravatar_id":"","url":"https://api.github.com/users/eoli3n","html_url":"https://github.com/eoli3n","followers_url":"https://api.github.com/users/eoli3n/followers","following_url":"https://api.github.com/users/eoli3n/following{/other_user}","gists_url":"https://api.github.com/users/eoli3n/gists{/gist_id}","starred_url":"https://api.github.com/users/eoli3n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eoli3n/subscriptions","organizations_url":"https://api.github.com/users/eoli3n/orgs","repos_url":"https://api.github.com/users/eoli3n/repos","events_url":"https://api.github.com/users/eoli3n/events{/privacy}","received_events_url":"https://api.github.com/users/eoli3n/received_events","type":"User","site_admin":false},"labels":[{"id":381818727,"url":"https://api.github.com/repos/jaagr/polybar/labels/configuration","name":"configuration","color":"c2e0c6","default":false},{"id":379117690,"url":"https://api.github.com/repos/jaagr/polybar/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2017-01-03T04:44:48Z","updated_at":"2017-01-10T09:50:48Z","closed_at":"2017-01-10T02:04:27Z","body":"I want to add a script module which check if openvpn is running\r\n\r\n```\r\n[module/vpncheck]\r\ntype = custom/script\r\n\r\ninterval = 10\r\nformat = <label>\r\nlabel = \" vpn\"\r\nexec = \"pgrep openvpn | wc -l\"\r\n```\r\n\r\nIs there a way to run the module only if \"exec\" >= \"1\" ?\r\nI dont just want to \"not display the information if openvpn is not running\", leaving an anormal blank space between 2 (right and left) modules."},"comment":{"url":"https://api.github.com/repos/jaagr/polybar/issues/comments/271531905","html_url":"https://github.com/jaagr/polybar/issues/298#issuecomment-271531905","issue_url":"https://api.github.com/repos/jaagr/polybar/issues/298","id":271531905,"user":{"login":"eoli3n","id":14223657,"avatar_url":"https://avatars.githubusercontent.com/u/14223657?v=3","gravatar_id":"","url":"https://api.github.com/users/eoli3n","html_url":"https://github.com/eoli3n","followers_url":"https://api.github.com/users/eoli3n/followers","following_url":"https://api.github.com/users/eoli3n/following{/other_user}","gists_url":"https://api.github.com/users/eoli3n/gists{/gist_id}","starred_url":"https://api.github.com/users/eoli3n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eoli3n/subscriptions","organizations_url":"https://api.github.com/users/eoli3n/orgs","repos_url":"https://api.github.com/users/eoli3n/repos","events_url":"https://api.github.com/users/eoli3n/events{/privacy}","received_events_url":"https://api.github.com/users/eoli3n/received_events","type":"User","site_admin":false},"created_at":"2017-01-10T09:50:48Z","updated_at":"2017-01-10T09:50:48Z","body":"hm, that's the same, but you're previous idea has benefit to be more logical.\r\n\r\nstatic informations with conditional run => ``custom/text``\r\ndynamic informations with conditional run => ``custom/script``"}}
{"actor":{"display_login":"eoli3n"}}