{"action":"opened","issue":{"url":"https://api.github.com/repos/enkore/i3pystatus/issues/315","repository_url":"https://api.github.com/repos/enkore/i3pystatus","labels_url":"https://api.github.com/repos/enkore/i3pystatus/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/enkore/i3pystatus/issues/315/comments","events_url":"https://api.github.com/repos/enkore/i3pystatus/issues/315/events","html_url":"https://github.com/enkore/i3pystatus/issues/315","id":132259182,"number":315,"title":"Generic update in background","user":{"login":"teto","id":886074,"avatar_url":"https://avatars.githubusercontent.com/u/886074?v=3","gravatar_id":"","url":"https://api.github.com/users/teto","html_url":"https://github.com/teto","followers_url":"https://api.github.com/users/teto/followers","following_url":"https://api.github.com/users/teto/following{/other_user}","gists_url":"https://api.github.com/users/teto/gists{/gist_id}","starred_url":"https://api.github.com/users/teto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teto/subscriptions","organizations_url":"https://api.github.com/users/teto/orgs","repos_url":"https://api.github.com/users/teto/repos","events_url":"https://api.github.com/users/teto/events{/privacy}","received_events_url":"https://api.github.com/users/teto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-08T21:18:54Z","updated_at":"2016-02-08T21:18:54Z","closed_at":null,"body":"Hi,\r\nI am very happy with how https://github.com/enkore/i3pystatus/issues/311 works and I consider extending this to all modules, ie, display an \"in progress\" message upon background tasks:\r\n- when clicking on the date, I want to sync my calendars (caldav) \r\n- when clicking on my mailbox, I want to sync my mailbox \r\n- etc...\r\n\r\nIn order for the module to know to display this \"In progress\" message whiule waiting for the job to finish, you need to give the module a hint. It could be via checking the callback against a specifc type ?\r\non_leftclick=BackgroundCallback ()\r\nor \r\non_leftclick=[\"background_command\", ]\r\n\r\nWhat do you think ?"}}