{"action":"created","issue":{"url":"https://api.github.com/repos/ch11ng/exwm/issues/321","repository_url":"https://api.github.com/repos/ch11ng/exwm","labels_url":"https://api.github.com/repos/ch11ng/exwm/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/ch11ng/exwm/issues/321/comments","events_url":"https://api.github.com/repos/ch11ng/exwm/issues/321/events","html_url":"https://github.com/ch11ng/exwm/issues/321","id":269212445,"number":321,"title":"XF86* keys don't work if on a non-Emacs buffer","user":{"login":"deech","id":76703,"avatar_url":"https://avatars2.githubusercontent.com/u/76703?v=4","gravatar_id":"","url":"https://api.github.com/users/deech","html_url":"https://github.com/deech","followers_url":"https://api.github.com/users/deech/followers","following_url":"https://api.github.com/users/deech/following{/other_user}","gists_url":"https://api.github.com/users/deech/gists{/gist_id}","starred_url":"https://api.github.com/users/deech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deech/subscriptions","organizations_url":"https://api.github.com/users/deech/orgs","repos_url":"https://api.github.com/users/deech/repos","events_url":"https://api.github.com/users/deech/events{/privacy}","received_events_url":"https://api.github.com/users/deech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-27T19:33:38Z","updated_at":"2018-04-18T18:51:02Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI have code to control the brightness/volume like:\r\n```\r\n    (exwm-input-set-key (kbd \"<XF86MonBrightnessUp>\")\r\n                        (lambda ()\r\n                          (interactive)\r\n                          (start-process-shell-command  \"light -A 5\" nil \"light -A 5\")))\r\n```\r\nIf focus is on an Emacs buffer it works fine but on any window (eg. Firefox/Chrome) it appears the application swallows it.\r\n\r\nI have verified that this gets evaluated before `(exwm-enable)`. I'm installing from Melpa, the versions are `exwm-0.14` and `xelb-0.12`.\r\n\r\nThanks for a great window manager!\r\n"},"comment":{"url":"https://api.github.com/repos/ch11ng/exwm/issues/comments/382491253","html_url":"https://github.com/ch11ng/exwm/issues/321#issuecomment-382491253","issue_url":"https://api.github.com/repos/ch11ng/exwm/issues/321","id":382491253,"user":{"login":"dakra","id":574659,"avatar_url":"https://avatars0.githubusercontent.com/u/574659?v=4","gravatar_id":"","url":"https://api.github.com/users/dakra","html_url":"https://github.com/dakra","followers_url":"https://api.github.com/users/dakra/followers","following_url":"https://api.github.com/users/dakra/following{/other_user}","gists_url":"https://api.github.com/users/dakra/gists{/gist_id}","starred_url":"https://api.github.com/users/dakra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dakra/subscriptions","organizations_url":"https://api.github.com/users/dakra/orgs","repos_url":"https://api.github.com/users/dakra/repos","events_url":"https://api.github.com/users/dakra/events{/privacy}","received_events_url":"https://api.github.com/users/dakra/received_events","type":"User","site_admin":false},"created_at":"2018-04-18T18:51:02Z","updated_at":"2018-04-18T18:51:02Z","author_association":"NONE","body":"@IQubic I have a similar function in my config but for easier maintainance I\r\n[packaged it](https://github.com/dakra/xbacklight) and bind the keys with use-package.\r\n\r\n``` emacs-lisp\r\n(use-package xbacklight\r\n  :bind ((\"<XF86MonBrightnessUp>\" . xbacklight-increase)\r\n         (\"<XF86MonBrightnessDown>\" . xbacklight-decrease)\r\n         :map exwm-mode-map\r\n         (\"<XF86MonBrightnessUp>\" . xbacklight-increase)\r\n         (\"<XF86MonBrightnessDown>\" . xbacklight-decrease)))\r\n```\r\n\r\nThis works for me in all buffers.\r\n"}}
{"actor":{"display_login":"dakra"}}