{"action":"created","issue":{"url":"https://api.github.com/repos/erroneousboat/slack-term/issues/107","repository_url":"https://api.github.com/repos/erroneousboat/slack-term","labels_url":"https://api.github.com/repos/erroneousboat/slack-term/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/erroneousboat/slack-term/issues/107/comments","events_url":"https://api.github.com/repos/erroneousboat/slack-term/issues/107/events","html_url":"https://github.com/erroneousboat/slack-term/pull/107","id":301877470,"number":107,"title":"Add optional desktop notifications for incoming messages","user":{"login":"geomaster","id":968875,"avatar_url":"https://avatars1.githubusercontent.com/u/968875?v=4","gravatar_id":"","url":"https://api.github.com/users/geomaster","html_url":"https://github.com/geomaster","followers_url":"https://api.github.com/users/geomaster/followers","following_url":"https://api.github.com/users/geomaster/following{/other_user}","gists_url":"https://api.github.com/users/geomaster/gists{/gist_id}","starred_url":"https://api.github.com/users/geomaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geomaster/subscriptions","organizations_url":"https://api.github.com/users/geomaster/orgs","repos_url":"https://api.github.com/users/geomaster/repos","events_url":"https://api.github.com/users/geomaster/events{/privacy}","received_events_url":"https://api.github.com/users/geomaster/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-02T19:26:05Z","updated_at":"2018-04-15T10:51:58Z","closed_at":"2018-04-14T16:15:31Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/erroneousboat/slack-term/pulls/107","html_url":"https://github.com/erroneousboat/slack-term/pull/107","diff_url":"https://github.com/erroneousboat/slack-term/pull/107.diff","patch_url":"https://github.com/erroneousboat/slack-term/pull/107.patch"},"body":"This PR adds a `notify` option in the config JSON file, which, if set to true, enables desktop notifications for incoming Slack messages. The notifications will have the channel the message originates from in the title, and the message content in the text.\r\n\r\n**Rationale:** Since I'm running slack-term in a separate gnome-terminal tab (not using screen/tmux), I'd like to somehow be notified when new messages arrive. The aim is to avoid running Slack in the browser as I've found that switching terminal tabs is less disruptive to my workflow than switching to a browser window and then tab. Further, the Slack desktop app is Electron-based and consumes ridiculous amounts of memory, so I'm avoiding running it too. However, when running slack-term only, I'm not notified of new messages as they arrive, which is an important feature for me that both the web and desktop clients provide.\r\n\r\n**Implementation details:** The library used is [`0xAX/notificator`](https://github.com/0xAX/notificator), which seems to support Windows, Linux and OS X via different backends. I've tested only on Linux, and everything appears to be working smoothly. It'd be helpful if someone could test on these other systems. For more detailed info about the changes, see the body of the commits included in the PR."},"comment":{"url":"https://api.github.com/repos/erroneousboat/slack-term/issues/comments/381397038","html_url":"https://github.com/erroneousboat/slack-term/pull/107#issuecomment-381397038","issue_url":"https://api.github.com/repos/erroneousboat/slack-term/issues/107","id":381397038,"user":{"login":"geomaster","id":968875,"avatar_url":"https://avatars1.githubusercontent.com/u/968875?v=4","gravatar_id":"","url":"https://api.github.com/users/geomaster","html_url":"https://github.com/geomaster","followers_url":"https://api.github.com/users/geomaster/followers","following_url":"https://api.github.com/users/geomaster/following{/other_user}","gists_url":"https://api.github.com/users/geomaster/gists{/gist_id}","starred_url":"https://api.github.com/users/geomaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geomaster/subscriptions","organizations_url":"https://api.github.com/users/geomaster/orgs","repos_url":"https://api.github.com/users/geomaster/repos","events_url":"https://api.github.com/users/geomaster/events{/privacy}","received_events_url":"https://api.github.com/users/geomaster/received_events","type":"User","site_admin":false},"created_at":"2018-04-15T10:51:58Z","updated_at":"2018-04-15T10:51:58Z","author_association":"NONE","body":"@erroneousboat Would you please give a reasoning on why this PR was closed? If there are any problems with it, I'm happy to fix them."}}
{"actor":{"display_login":"geomaster"}}