{"action":"created","issue":{"url":"https://api.github.com/repos/enkore/i3pystatus/issues/235","labels_url":"https://api.github.com/repos/enkore/i3pystatus/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/enkore/i3pystatus/issues/235/comments","events_url":"https://api.github.com/repos/enkore/i3pystatus/issues/235/events","html_url":"https://github.com/enkore/i3pystatus/pull/235","id":100115604,"number":235,"title":"added the alert_command option","user":{"login":"plumps","id":13000278,"avatar_url":"https://avatars.githubusercontent.com/u/13000278?v=3","gravatar_id":"","url":"https://api.github.com/users/plumps","html_url":"https://github.com/plumps","followers_url":"https://api.github.com/users/plumps/followers","following_url":"https://api.github.com/users/plumps/following{/other_user}","gists_url":"https://api.github.com/users/plumps/gists{/gist_id}","starred_url":"https://api.github.com/users/plumps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plumps/subscriptions","organizations_url":"https://api.github.com/users/plumps/orgs","repos_url":"https://api.github.com/users/plumps/repos","events_url":"https://api.github.com/users/plumps/events{/privacy}","received_events_url":"https://api.github.com/users/plumps/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-10T16:56:44Z","updated_at":"2015-08-11T20:34:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/enkore/i3pystatus/pulls/235","html_url":"https://github.com/enkore/i3pystatus/pull/235","diff_url":"https://github.com/enkore/i3pystatus/pull/235.diff","patch_url":"https://github.com/enkore/i3pystatus/pull/235.patch"},"body":"running a shell command before the battery is completely discharged (~1% left).\r\nYou just need to add \r\n\r\nalert_command=\"<path_to_program> [$@]\" \r\n\r\ne.g. alert_command=\"/usr/bin/systemctl hibernate\""},"comment":{"url":"https://api.github.com/repos/enkore/i3pystatus/issues/comments/130058701","html_url":"https://github.com/enkore/i3pystatus/pull/235#issuecomment-130058701","issue_url":"https://api.github.com/repos/enkore/i3pystatus/issues/235","id":130058701,"user":{"login":"Arvedui","id":6455223,"avatar_url":"https://avatars.githubusercontent.com/u/6455223?v=3","gravatar_id":"","url":"https://api.github.com/users/Arvedui","html_url":"https://github.com/Arvedui","followers_url":"https://api.github.com/users/Arvedui/followers","following_url":"https://api.github.com/users/Arvedui/following{/other_user}","gists_url":"https://api.github.com/users/Arvedui/gists{/gist_id}","starred_url":"https://api.github.com/users/Arvedui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arvedui/subscriptions","organizations_url":"https://api.github.com/users/Arvedui/orgs","repos_url":"https://api.github.com/users/Arvedui/repos","events_url":"https://api.github.com/users/Arvedui/events{/privacy}","received_events_url":"https://api.github.com/users/Arvedui/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T20:34:47Z","updated_at":"2015-08-11T20:34:47Z","body":"I thought it to be kind of default functionality of tools like tlp.\r\nBut obviously I was wrong …\r\n\r\nCould you add an config option for the threshold value?\r\nThere may be conditions where 1% is not enough and I can imagine that some people are just not comfortable with walking that close to the edge."}}