{"action":"created","comment":{"url":"https://api.github.com/repos/SirCmpwn/sway/pulls/comments/49947643","id":49947643,"diff_hunk":"@@ -94,6 +94,31 @@ Commands\n \tworkspace (or current workspace), and _current_ changes gaps for the current\n \tview or workspace.\n \n+**input** <identifier> tap <enabled|disabled>:\n+\tEnables or disables tap for specified input device.\n+\n+**input** <identifier> drag_lock <enabled|disabled>:\n+\tEnables or disables drag lock for specified input device.\n+\n+**input** <identifier> dwt <enabled|disabled>:\n+\tEnables or disables disable-while-typing for the specified input device.\n+\n+**input** <identifier> events <enable|disabled>:\n+\tEnables or disables send_events for specified input device.\n+\t(Disabling  send_events disables the input device)\n+\n+**input** <identifier> click_method <none|button_areas|clickfinger>:\n+\tChanges the click method for the specified device.\n+\n+**input** <identifier> middle_emulation <enabled|disabled>:\n+\tEnables or disables middle click emulation.\n+\n+**input** <identifier> scroll_method <none|two_finger|edge|on_button_down>:\n+\tChanges the scroll method for the specified input device.\n+\n+**input** <identifier> natural_scroll <enabled|disabled>:\n+\tEnables or disables natural scrolling for the specified input device.\n+","path":"sway/sway.5.txt","position":28,"original_position":28,"commit_id":"2e6b879e6e4e156d15e7e79e13c75a8170f1440b","original_commit_id":"2e6b879e6e4e156d15e7e79e13c75a8170f1440b","user":{"login":"SirCmpwn","id":1310872,"avatar_url":"https://avatars.githubusercontent.com/u/1310872?v=3","gravatar_id":"","url":"https://api.github.com/users/SirCmpwn","html_url":"https://github.com/SirCmpwn","followers_url":"https://api.github.com/users/SirCmpwn/followers","following_url":"https://api.github.com/users/SirCmpwn/following{/other_user}","gists_url":"https://api.github.com/users/SirCmpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/SirCmpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirCmpwn/subscriptions","organizations_url":"https://api.github.com/users/SirCmpwn/orgs","repos_url":"https://api.github.com/users/SirCmpwn/repos","events_url":"https://api.github.com/users/SirCmpwn/events{/privacy}","received_events_url":"https://api.github.com/users/SirCmpwn/received_events","type":"User","site_admin":false},"body":"Also, please note the defaults here.","created_at":"2016-01-17T15:25:23Z","updated_at":"2016-01-17T15:25:23Z","html_url":"https://github.com/SirCmpwn/sway/pull/448#discussion_r49947643","pull_request_url":"https://api.github.com/repos/SirCmpwn/sway/pulls/448","_links":{"self":{"href":"https://api.github.com/repos/SirCmpwn/sway/pulls/comments/49947643"},"html":{"href":"https://github.com/SirCmpwn/sway/pull/448#discussion_r49947643"},"pull_request":{"href":"https://api.github.com/repos/SirCmpwn/sway/pulls/448"}}},"pull_request":{"url":"https://api.github.com/repos/SirCmpwn/sway/pulls/448","id":56276861,"html_url":"https://github.com/SirCmpwn/sway/pull/448","diff_url":"https://github.com/SirCmpwn/sway/pull/448.diff","patch_url":"https://github.com/SirCmpwn/sway/pull/448.patch","issue_url":"https://api.github.com/repos/SirCmpwn/sway/issues/448","number":448,"state":"open","locked":false,"title":"libinput configuration","user":{"login":"colemickens","id":327028,"avatar_url":"https://avatars.githubusercontent.com/u/327028?v=3","gravatar_id":"","url":"https://api.github.com/users/colemickens","html_url":"https://github.com/colemickens","followers_url":"https://api.github.com/users/colemickens/followers","following_url":"https://api.github.com/users/colemickens/following{/other_user}","gists_url":"https://api.github.com/users/colemickens/gists{/gist_id}","starred_url":"https://api.github.com/users/colemickens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colemickens/subscriptions","organizations_url":"https://api.github.com/users/colemickens/orgs","repos_url":"https://api.github.com/users/colemickens/repos","events_url":"https://api.github.com/users/colemickens/events{/privacy}","received_events_url":"https://api.github.com/users/colemickens/received_events","type":"User","site_admin":false},"body":"I went with replacing spaces with underscores. I don't think it's too bad. I didn't implement the category config with specific overrides yet, just enabled specific identifiers for now.\r\n\r\nExample configuration lines:\r\n```\r\ninput 0:0:Atmel_maXTouch_Touchscreen events disabled\r\ninput 0:0:Atmel_maXTouch_Touchpad tap disabled\r\ninput 0:0:Atmel_maXTouch_Touchpad dwt enabled\r\ninput 0:0:Atmel_maXTouch_Touchpad click_method clickfinger\r\ninput 0:0:Atmel_maXTouch_Touchpad natural_scroll enabled\r\ninput 0:0:Atmel_maXTouch_Touchpad scroll_method two_finger\r\n```\r\n\r\nThere's a new `get_inputs` over swaymsg. Some example output: \r\n\r\n```\r\n[\r\n  {\r\n    \"identifier\": \"0:1:Power_Button\"\r\n  },\r\n  {\r\n    \"identifier\": \"0:1:Power_Button\"\r\n  },\r\n  {\r\n    \"identifier\": \"4176:1031:Yubico_Yubikey_4_OTP+U2F\"\r\n  },\r\n  {\r\n    \"identifier\": \"8754:24577:NC\"\r\n  },\r\n  {\r\n    \"identifier\": \"0:0:Atmel_maXTouch_Touchpad\"\r\n  },\r\n  {\r\n    \"identifier\": \"0:0:Atmel_maXTouch_Touchscreen\"\r\n  },\r\n  {\r\n    \"identifier\": \"1:1:AT_Translated_Set_2_keyboard\"\r\n  }\r\n]\r\n```\r\n\r\nAddresses #365.","created_at":"2016-01-17T12:39:51Z","updated_at":"2016-01-17T15:25:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"665b0dff720f87f43a42494f45fd98375155fb37","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SirCmpwn/sway/pulls/448/commits","review_comments_url":"https://api.github.com/repos/SirCmpwn/sway/pulls/448/comments","review_comment_url":"https://api.github.com/repos/SirCmpwn/sway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SirCmpwn/sway/issues/448/comments","statuses_url":"https://api.github.com/repos/SirCmpwn/sway/statuses/2e6b879e6e4e156d15e7e79e13c75a8170f1440b","head":{"label":"colemickens:libinput","ref":"libinput","sha":"2e6b879e6e4e156d15e7e79e13c75a8170f1440b","user":{"login":"colemickens","id":327028,"avatar_url":"https://avatars.githubusercontent.com/u/327028?v=3","gravatar_id":"","url":"https://api.github.com/users/colemickens","html_url":"https://github.com/colemickens","followers_url":"https://api.github.com/users/colemickens/followers","following_url":"https://api.github.com/users/colemickens/following{/other_user}","gists_url":"https://api.github.com/users/colemickens/gists{/gist_id}","starred_url":"https://api.github.com/users/colemickens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colemickens/subscriptions","organizations_url":"https://api.github.com/users/colemickens/orgs","repos_url":"https://api.github.com/users/colemickens/repos","events_url":"https://api.github.com/users/colemickens/events{/privacy}","received_events_url":"https://api.github.com/users/colemickens/received_events","type":"User","site_admin":false},"repo":{"id":48674614,"name":"sway","full_name":"colemickens/sway","owner":{"login":"colemickens","id":327028,"avatar_url":"https://avatars.githubusercontent.com/u/327028?v=3","gravatar_id":"","url":"https://api.github.com/users/colemickens","html_url":"https://github.com/colemickens","followers_url":"https://api.github.com/users/colemickens/followers","following_url":"https://api.github.com/users/colemickens/following{/other_user}","gists_url":"https://api.github.com/users/colemickens/gists{/gist_id}","starred_url":"https://api.github.com/users/colemickens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colemickens/subscriptions","organizations_url":"https://api.github.com/users/colemickens/orgs","repos_url":"https://api.github.com/users/colemickens/repos","events_url":"https://api.github.com/users/colemickens/events{/privacy}","received_events_url":"https://api.github.com/users/colemickens/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/colemickens/sway","description":"i3-compatible window manager for Wayland (WIP)","fork":true,"url":"https://api.github.com/repos/colemickens/sway","forks_url":"https://api.github.com/repos/colemickens/sway/forks","keys_url":"https://api.github.com/repos/colemickens/sway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/colemickens/sway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/colemickens/sway/teams","hooks_url":"https://api.github.com/repos/colemickens/sway/hooks","issue_events_url":"https://api.github.com/repos/colemickens/sway/issues/events{/number}","events_url":"https://api.github.com/repos/colemickens/sway/events","assignees_url":"https://api.github.com/repos/colemickens/sway/assignees{/user}","branches_url":"https://api.github.com/repos/colemickens/sway/branches{/branch}","tags_url":"https://api.github.com/repos/colemickens/sway/tags","blobs_url":"https://api.github.com/repos/colemickens/sway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/colemickens/sway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/colemickens/sway/git/refs{/sha}","trees_url":"https://api.github.com/repos/colemickens/sway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/colemickens/sway/statuses/{sha}","languages_url":"https://api.github.com/repos/colemickens/sway/languages","stargazers_url":"https://api.github.com/repos/colemickens/sway/stargazers","contributors_url":"https://api.github.com/repos/colemickens/sway/contributors","subscribers_url":"https://api.github.com/repos/colemickens/sway/subscribers","subscription_url":"https://api.github.com/repos/colemickens/sway/subscription","commits_url":"https://api.github.com/repos/colemickens/sway/commits{/sha}","git_commits_url":"https://api.github.com/repos/colemickens/sway/git/commits{/sha}","comments_url":"https://api.github.com/repos/colemickens/sway/comments{/number}","issue_comment_url":"https://api.github.com/repos/colemickens/sway/issues/comments{/number}","contents_url":"https://api.github.com/repos/colemickens/sway/contents/{+path}","compare_url":"https://api.github.com/repos/colemickens/sway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/colemickens/sway/merges","archive_url":"https://api.github.com/repos/colemickens/sway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/colemickens/sway/downloads","issues_url":"https://api.github.com/repos/colemickens/sway/issues{/number}","pulls_url":"https://api.github.com/repos/colemickens/sway/pulls{/number}","milestones_url":"https://api.github.com/repos/colemickens/sway/milestones{/number}","notifications_url":"https://api.github.com/repos/colemickens/sway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/colemickens/sway/labels{/name}","releases_url":"https://api.github.com/repos/colemickens/sway/releases{/id}","created_at":"2015-12-28T04:58:51Z","updated_at":"2016-01-13T08:58:54Z","pushed_at":"2016-01-17T11:34:36Z","git_url":"git://github.com/colemickens/sway.git","ssh_url":"git@github.com:colemickens/sway.git","clone_url":"https://github.com/colemickens/sway.git","svn_url":"https://github.com/colemickens/sway","homepage":"http://swaywm.org/","size":3682,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"libinput"}},"base":{"label":"SirCmpwn:master","ref":"master","sha":"25973212367848e25c538301985ad2b1fd03ea02","user":{"login":"SirCmpwn","id":1310872,"avatar_url":"https://avatars.githubusercontent.com/u/1310872?v=3","gravatar_id":"","url":"https://api.github.com/users/SirCmpwn","html_url":"https://github.com/SirCmpwn","followers_url":"https://api.github.com/users/SirCmpwn/followers","following_url":"https://api.github.com/users/SirCmpwn/following{/other_user}","gists_url":"https://api.github.com/users/SirCmpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/SirCmpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirCmpwn/subscriptions","organizations_url":"https://api.github.com/users/SirCmpwn/orgs","repos_url":"https://api.github.com/users/SirCmpwn/repos","events_url":"https://api.github.com/users/SirCmpwn/events{/privacy}","received_events_url":"https://api.github.com/users/SirCmpwn/received_events","type":"User","site_admin":false},"repo":{"id":40217904,"name":"sway","full_name":"SirCmpwn/sway","owner":{"login":"SirCmpwn","id":1310872,"avatar_url":"https://avatars.githubusercontent.com/u/1310872?v=3","gravatar_id":"","url":"https://api.github.com/users/SirCmpwn","html_url":"https://github.com/SirCmpwn","followers_url":"https://api.github.com/users/SirCmpwn/followers","following_url":"https://api.github.com/users/SirCmpwn/following{/other_user}","gists_url":"https://api.github.com/users/SirCmpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/SirCmpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirCmpwn/subscriptions","organizations_url":"https://api.github.com/users/SirCmpwn/orgs","repos_url":"https://api.github.com/users/SirCmpwn/repos","events_url":"https://api.github.com/users/SirCmpwn/events{/privacy}","received_events_url":"https://api.github.com/users/SirCmpwn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SirCmpwn/sway","description":"i3-compatible window manager for Wayland (WIP)","fork":false,"url":"https://api.github.com/repos/SirCmpwn/sway","forks_url":"https://api.github.com/repos/SirCmpwn/sway/forks","keys_url":"https://api.github.com/repos/SirCmpwn/sway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SirCmpwn/sway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SirCmpwn/sway/teams","hooks_url":"https://api.github.com/repos/SirCmpwn/sway/hooks","issue_events_url":"https://api.github.com/repos/SirCmpwn/sway/issues/events{/number}","events_url":"https://api.github.com/repos/SirCmpwn/sway/events","assignees_url":"https://api.github.com/repos/SirCmpwn/sway/assignees{/user}","branches_url":"https://api.github.com/repos/SirCmpwn/sway/branches{/branch}","tags_url":"https://api.github.com/repos/SirCmpwn/sway/tags","blobs_url":"https://api.github.com/repos/SirCmpwn/sway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SirCmpwn/sway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SirCmpwn/sway/git/refs{/sha}","trees_url":"https://api.github.com/repos/SirCmpwn/sway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SirCmpwn/sway/statuses/{sha}","languages_url":"https://api.github.com/repos/SirCmpwn/sway/languages","stargazers_url":"https://api.github.com/repos/SirCmpwn/sway/stargazers","contributors_url":"https://api.github.com/repos/SirCmpwn/sway/contributors","subscribers_url":"https://api.github.com/repos/SirCmpwn/sway/subscribers","subscription_url":"https://api.github.com/repos/SirCmpwn/sway/subscription","commits_url":"https://api.github.com/repos/SirCmpwn/sway/commits{/sha}","git_commits_url":"https://api.github.com/repos/SirCmpwn/sway/git/commits{/sha}","comments_url":"https://api.github.com/repos/SirCmpwn/sway/comments{/number}","issue_comment_url":"https://api.github.com/repos/SirCmpwn/sway/issues/comments{/number}","contents_url":"https://api.github.com/repos/SirCmpwn/sway/contents/{+path}","compare_url":"https://api.github.com/repos/SirCmpwn/sway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SirCmpwn/sway/merges","archive_url":"https://api.github.com/repos/SirCmpwn/sway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SirCmpwn/sway/downloads","issues_url":"https://api.github.com/repos/SirCmpwn/sway/issues{/number}","pulls_url":"https://api.github.com/repos/SirCmpwn/sway/pulls{/number}","milestones_url":"https://api.github.com/repos/SirCmpwn/sway/milestones{/number}","notifications_url":"https://api.github.com/repos/SirCmpwn/sway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SirCmpwn/sway/labels{/name}","releases_url":"https://api.github.com/repos/SirCmpwn/sway/releases{/id}","created_at":"2015-08-05T01:31:45Z","updated_at":"2016-01-17T10:40:15Z","pushed_at":"2016-01-17T12:39:52Z","git_url":"git://github.com/SirCmpwn/sway.git","ssh_url":"git@github.com:SirCmpwn/sway.git","clone_url":"https://github.com/SirCmpwn/sway.git","svn_url":"https://github.com/SirCmpwn/sway","homepage":"http://swaywm.org/","size":3732,"stargazers_count":813,"watchers_count":813,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":63,"mirror_url":null,"open_issues_count":30,"forks":63,"open_issues":30,"watchers":813,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SirCmpwn/sway/pulls/448"},"html":{"href":"https://github.com/SirCmpwn/sway/pull/448"},"issue":{"href":"https://api.github.com/repos/SirCmpwn/sway/issues/448"},"comments":{"href":"https://api.github.com/repos/SirCmpwn/sway/issues/448/comments"},"review_comments":{"href":"https://api.github.com/repos/SirCmpwn/sway/pulls/448/comments"},"review_comment":{"href":"https://api.github.com/repos/SirCmpwn/sway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SirCmpwn/sway/pulls/448/commits"},"statuses":{"href":"https://api.github.com/repos/SirCmpwn/sway/statuses/2e6b879e6e4e156d15e7e79e13c75a8170f1440b"}}}}