{"action":"created","issue":{"url":"https://api.github.com/repos/awesomeWM/awesome/issues/492","labels_url":"https://api.github.com/repos/awesomeWM/awesome/issues/492/labels{/name}","comments_url":"https://api.github.com/repos/awesomeWM/awesome/issues/492/comments","events_url":"https://api.github.com/repos/awesomeWM/awesome/issues/492/events","html_url":"https://github.com/awesomeWM/awesome/issues/492","id":109319162,"number":492,"title":"Extend the clipboard API","user":{"login":"Elv13","id":340384,"avatar_url":"https://avatars.githubusercontent.com/u/340384?v=3","gravatar_id":"","url":"https://api.github.com/users/Elv13","html_url":"https://github.com/Elv13","followers_url":"https://api.github.com/users/Elv13/followers","following_url":"https://api.github.com/users/Elv13/following{/other_user}","gists_url":"https://api.github.com/users/Elv13/gists{/gist_id}","starred_url":"https://api.github.com/users/Elv13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elv13/subscriptions","organizations_url":"https://api.github.com/users/Elv13/orgs","repos_url":"https://api.github.com/users/Elv13/repos","events_url":"https://api.github.com/users/Elv13/events{/privacy}","received_events_url":"https://api.github.com/users/Elv13/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/awesomeWM/awesome/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-01T15:06:24Z","updated_at":"2015-10-01T15:11:50Z","closed_at":null,"body":"This issue is just some idea for some improvements to the clipboard selection API\r\n\r\n* The the selection buffer (aka, middle click paste buffer)\r\n* The the secondary clipboard buffer\r\n* Have a signal then the clipboard selection change\r\n* Be able to set the selection\r\n* Get the mime type(s)\r\n\r\nI had an `xsel` command wrapper at some point to do this, but a native API would be nicer. This would also make possible to have a clipboard overview widget. I might do this at some point, but if anyone have other ideas, please comment here."},"comment":{"url":"https://api.github.com/repos/awesomeWM/awesome/issues/comments/144756979","html_url":"https://github.com/awesomeWM/awesome/issues/492#issuecomment-144756979","issue_url":"https://api.github.com/repos/awesomeWM/awesome/issues/492","id":144756979,"user":{"login":"psychon","id":89482,"avatar_url":"https://avatars.githubusercontent.com/u/89482?v=3","gravatar_id":"","url":"https://api.github.com/users/psychon","html_url":"https://github.com/psychon","followers_url":"https://api.github.com/users/psychon/followers","following_url":"https://api.github.com/users/psychon/following{/other_user}","gists_url":"https://api.github.com/users/psychon/gists{/gist_id}","starred_url":"https://api.github.com/users/psychon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psychon/subscriptions","organizations_url":"https://api.github.com/users/psychon/orgs","repos_url":"https://api.github.com/users/psychon/repos","events_url":"https://api.github.com/users/psychon/events{/privacy}","received_events_url":"https://api.github.com/users/psychon/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T15:11:50Z","updated_at":"2015-10-01T15:11:50Z","body":"Can the API be asynchronous? This selections stuff just isn't synchronous and currently `selection()` kind-of starts its own main loop (but ignores everything except the XCB connection). Events are still handled normally and so lua could call `selection()` again in response to some other event. The result won't be pretty (it would be good if only the responses were mixed up; I guess instead this will never return to the normal main loop)."}}