{"action":"closed","number":2087,"pull_request":{"url":"https://api.github.com/repos/swaywm/sway/pulls/2087","id":192171895,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMTcxODk1","html_url":"https://github.com/swaywm/sway/pull/2087","diff_url":"https://github.com/swaywm/sway/pull/2087.diff","patch_url":"https://github.com/swaywm/sway/pull/2087.patch","issue_url":"https://api.github.com/repos/swaywm/sway/issues/2087","number":2087,"state":"closed","locked":false,"title":"Refactor cmd_output to use config_subcommand","user":{"login":"RedSoxFan","id":2997061,"node_id":"MDQ6VXNlcjI5OTcwNjE=","avatar_url":"https://avatars3.githubusercontent.com/u/2997061?v=4","gravatar_id":"","url":"https://api.github.com/users/RedSoxFan","html_url":"https://github.com/RedSoxFan","followers_url":"https://api.github.com/users/RedSoxFan/followers","following_url":"https://api.github.com/users/RedSoxFan/following{/other_user}","gists_url":"https://api.github.com/users/RedSoxFan/gists{/gist_id}","starred_url":"https://api.github.com/users/RedSoxFan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedSoxFan/subscriptions","organizations_url":"https://api.github.com/users/RedSoxFan/orgs","repos_url":"https://api.github.com/users/RedSoxFan/repos","events_url":"https://api.github.com/users/RedSoxFan/events{/privacy}","received_events_url":"https://api.github.com/users/RedSoxFan/received_events","type":"User","site_admin":false},"body":"**This is forked from #2070 so that needs to be merged first**\r\n\r\n@emersion requested that the output command be refactored to use subcommands in #2070. This PR does that\r\n\r\nThis also fixes setting a solid color background. In master, there are two issues:\r\n1. There is a logic issue that prevents the `solid_color` branch from executing (it is checking against argument before -- the color).\r\n2. `#` needs to be quoted or escaped when included in a shell command (ie swaybg). I decided to go with quoting the argument.","created_at":"2018-06-02T01:20:08Z","updated_at":"2018-06-03T17:48:01Z","closed_at":"2018-06-03T17:48:01Z","merged_at":"2018-06-03T17:48:01Z","merge_commit_sha":"0549fd027bee17d2ee904ccf7e6447a8f79d9f7f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/swaywm/sway/pulls/2087/commits","review_comments_url":"https://api.github.com/repos/swaywm/sway/pulls/2087/comments","review_comment_url":"https://api.github.com/repos/swaywm/sway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swaywm/sway/issues/2087/comments","statuses_url":"https://api.github.com/repos/swaywm/sway/statuses/51fa988be9203dd81fd0897611a854ef9f4b4f5f","head":{"label":"RedSoxFan:output-subcommand","ref":"output-subcommand","sha":"51fa988be9203dd81fd0897611a854ef9f4b4f5f","user":{"login":"RedSoxFan","id":2997061,"node_id":"MDQ6VXNlcjI5OTcwNjE=","avatar_url":"https://avatars3.githubusercontent.com/u/2997061?v=4","gravatar_id":"","url":"https://api.github.com/users/RedSoxFan","html_url":"https://github.com/RedSoxFan","followers_url":"https://api.github.com/users/RedSoxFan/followers","following_url":"https://api.github.com/users/RedSoxFan/following{/other_user}","gists_url":"https://api.github.com/users/RedSoxFan/gists{/gist_id}","starred_url":"https://api.github.com/users/RedSoxFan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedSoxFan/subscriptions","organizations_url":"https://api.github.com/users/RedSoxFan/orgs","repos_url":"https://api.github.com/users/RedSoxFan/repos","events_url":"https://api.github.com/users/RedSoxFan/events{/privacy}","received_events_url":"https://api.github.com/users/RedSoxFan/received_events","type":"User","site_admin":false},"repo":{"id":127593983,"node_id":"MDEwOlJlcG9zaXRvcnkxMjc1OTM5ODM=","name":"sway","full_name":"RedSoxFan/sway","owner":{"login":"RedSoxFan","id":2997061,"node_id":"MDQ6VXNlcjI5OTcwNjE=","avatar_url":"https://avatars3.githubusercontent.com/u/2997061?v=4","gravatar_id":"","url":"https://api.github.com/users/RedSoxFan","html_url":"https://github.com/RedSoxFan","followers_url":"https://api.github.com/users/RedSoxFan/followers","following_url":"https://api.github.com/users/RedSoxFan/following{/other_user}","gists_url":"https://api.github.com/users/RedSoxFan/gists{/gist_id}","starred_url":"https://api.github.com/users/RedSoxFan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedSoxFan/subscriptions","organizations_url":"https://api.github.com/users/RedSoxFan/orgs","repos_url":"https://api.github.com/users/RedSoxFan/repos","events_url":"https://api.github.com/users/RedSoxFan/events{/privacy}","received_events_url":"https://api.github.com/users/RedSoxFan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RedSoxFan/sway","description":"i3-compatible Wayland compositor","fork":true,"url":"https://api.github.com/repos/RedSoxFan/sway","forks_url":"https://api.github.com/repos/RedSoxFan/sway/forks","keys_url":"https://api.github.com/repos/RedSoxFan/sway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RedSoxFan/sway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RedSoxFan/sway/teams","hooks_url":"https://api.github.com/repos/RedSoxFan/sway/hooks","issue_events_url":"https://api.github.com/repos/RedSoxFan/sway/issues/events{/number}","events_url":"https://api.github.com/repos/RedSoxFan/sway/events","assignees_url":"https://api.github.com/repos/RedSoxFan/sway/assignees{/user}","branches_url":"https://api.github.com/repos/RedSoxFan/sway/branches{/branch}","tags_url":"https://api.github.com/repos/RedSoxFan/sway/tags","blobs_url":"https://api.github.com/repos/RedSoxFan/sway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RedSoxFan/sway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RedSoxFan/sway/git/refs{/sha}","trees_url":"https://api.github.com/repos/RedSoxFan/sway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RedSoxFan/sway/statuses/{sha}","languages_url":"https://api.github.com/repos/RedSoxFan/sway/languages","stargazers_url":"https://api.github.com/repos/RedSoxFan/sway/stargazers","contributors_url":"https://api.github.com/repos/RedSoxFan/sway/contributors","subscribers_url":"https://api.github.com/repos/RedSoxFan/sway/subscribers","subscription_url":"https://api.github.com/repos/RedSoxFan/sway/subscription","commits_url":"https://api.github.com/repos/RedSoxFan/sway/commits{/sha}","git_commits_url":"https://api.github.com/repos/RedSoxFan/sway/git/commits{/sha}","comments_url":"https://api.github.com/repos/RedSoxFan/sway/comments{/number}","issue_comment_url":"https://api.github.com/repos/RedSoxFan/sway/issues/comments{/number}","contents_url":"https://api.github.com/repos/RedSoxFan/sway/contents/{+path}","compare_url":"https://api.github.com/repos/RedSoxFan/sway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RedSoxFan/sway/merges","archive_url":"https://api.github.com/repos/RedSoxFan/sway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RedSoxFan/sway/downloads","issues_url":"https://api.github.com/repos/RedSoxFan/sway/issues{/number}","pulls_url":"https://api.github.com/repos/RedSoxFan/sway/pulls{/number}","milestones_url":"https://api.github.com/repos/RedSoxFan/sway/milestones{/number}","notifications_url":"https://api.github.com/repos/RedSoxFan/sway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RedSoxFan/sway/labels{/name}","releases_url":"https://api.github.com/repos/RedSoxFan/sway/releases{/id}","deployments_url":"https://api.github.com/repos/RedSoxFan/sway/deployments","created_at":"2018-04-01T03:38:35Z","updated_at":"2018-04-01T03:38:37Z","pushed_at":"2018-06-03T14:29:52Z","git_url":"git://github.com/RedSoxFan/sway.git","ssh_url":"git@github.com:RedSoxFan/sway.git","clone_url":"https://github.com/RedSoxFan/sway.git","svn_url":"https://github.com/RedSoxFan/sway","homepage":"http://swaywm.org/","size":23064,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"swaywm:master","ref":"master","sha":"ebe0b668c9749dcd857f2b6b248b3f6cb3322b8f","user":{"login":"swaywm","id":32400794,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNDAwNzk0","avatar_url":"https://avatars1.githubusercontent.com/u/32400794?v=4","gravatar_id":"","url":"https://api.github.com/users/swaywm","html_url":"https://github.com/swaywm","followers_url":"https://api.github.com/users/swaywm/followers","following_url":"https://api.github.com/users/swaywm/following{/other_user}","gists_url":"https://api.github.com/users/swaywm/gists{/gist_id}","starred_url":"https://api.github.com/users/swaywm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swaywm/subscriptions","organizations_url":"https://api.github.com/users/swaywm/orgs","repos_url":"https://api.github.com/users/swaywm/repos","events_url":"https://api.github.com/users/swaywm/events{/privacy}","received_events_url":"https://api.github.com/users/swaywm/received_events","type":"Organization","site_admin":false},"repo":{"id":40217904,"node_id":"MDEwOlJlcG9zaXRvcnk0MDIxNzkwNA==","name":"sway","full_name":"swaywm/sway","owner":{"login":"swaywm","id":32400794,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNDAwNzk0","avatar_url":"https://avatars1.githubusercontent.com/u/32400794?v=4","gravatar_id":"","url":"https://api.github.com/users/swaywm","html_url":"https://github.com/swaywm","followers_url":"https://api.github.com/users/swaywm/followers","following_url":"https://api.github.com/users/swaywm/following{/other_user}","gists_url":"https://api.github.com/users/swaywm/gists{/gist_id}","starred_url":"https://api.github.com/users/swaywm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swaywm/subscriptions","organizations_url":"https://api.github.com/users/swaywm/orgs","repos_url":"https://api.github.com/users/swaywm/repos","events_url":"https://api.github.com/users/swaywm/events{/privacy}","received_events_url":"https://api.github.com/users/swaywm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/swaywm/sway","description":"i3-compatible Wayland compositor","fork":false,"url":"https://api.github.com/repos/swaywm/sway","forks_url":"https://api.github.com/repos/swaywm/sway/forks","keys_url":"https://api.github.com/repos/swaywm/sway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swaywm/sway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swaywm/sway/teams","hooks_url":"https://api.github.com/repos/swaywm/sway/hooks","issue_events_url":"https://api.github.com/repos/swaywm/sway/issues/events{/number}","events_url":"https://api.github.com/repos/swaywm/sway/events","assignees_url":"https://api.github.com/repos/swaywm/sway/assignees{/user}","branches_url":"https://api.github.com/repos/swaywm/sway/branches{/branch}","tags_url":"https://api.github.com/repos/swaywm/sway/tags","blobs_url":"https://api.github.com/repos/swaywm/sway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swaywm/sway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swaywm/sway/git/refs{/sha}","trees_url":"https://api.github.com/repos/swaywm/sway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swaywm/sway/statuses/{sha}","languages_url":"https://api.github.com/repos/swaywm/sway/languages","stargazers_url":"https://api.github.com/repos/swaywm/sway/stargazers","contributors_url":"https://api.github.com/repos/swaywm/sway/contributors","subscribers_url":"https://api.github.com/repos/swaywm/sway/subscribers","subscription_url":"https://api.github.com/repos/swaywm/sway/subscription","commits_url":"https://api.github.com/repos/swaywm/sway/commits{/sha}","git_commits_url":"https://api.github.com/repos/swaywm/sway/git/commits{/sha}","comments_url":"https://api.github.com/repos/swaywm/sway/comments{/number}","issue_comment_url":"https://api.github.com/repos/swaywm/sway/issues/comments{/number}","contents_url":"https://api.github.com/repos/swaywm/sway/contents/{+path}","compare_url":"https://api.github.com/repos/swaywm/sway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swaywm/sway/merges","archive_url":"https://api.github.com/repos/swaywm/sway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swaywm/sway/downloads","issues_url":"https://api.github.com/repos/swaywm/sway/issues{/number}","pulls_url":"https://api.github.com/repos/swaywm/sway/pulls{/number}","milestones_url":"https://api.github.com/repos/swaywm/sway/milestones{/number}","notifications_url":"https://api.github.com/repos/swaywm/sway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swaywm/sway/labels{/name}","releases_url":"https://api.github.com/repos/swaywm/sway/releases{/id}","deployments_url":"https://api.github.com/repos/swaywm/sway/deployments","created_at":"2015-08-05T01:31:45Z","updated_at":"2018-06-03T17:46:52Z","pushed_at":"2018-06-03T17:48:01Z","git_url":"git://github.com/swaywm/sway.git","ssh_url":"git@github.com:swaywm/sway.git","clone_url":"https://github.com/swaywm/sway.git","svn_url":"https://github.com/swaywm/sway","homepage":"http://swaywm.org/","size":23369,"stargazers_count":3959,"watchers_count":3959,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":253,"mirror_url":null,"archived":false,"open_issues_count":216,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":253,"open_issues":216,"watchers":3959,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/swaywm/sway/pulls/2087"},"html":{"href":"https://github.com/swaywm/sway/pull/2087"},"issue":{"href":"https://api.github.com/repos/swaywm/sway/issues/2087"},"comments":{"href":"https://api.github.com/repos/swaywm/sway/issues/2087/comments"},"review_comments":{"href":"https://api.github.com/repos/swaywm/sway/pulls/2087/comments"},"review_comment":{"href":"https://api.github.com/repos/swaywm/sway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swaywm/sway/pulls/2087/commits"},"statuses":{"href":"https://api.github.com/repos/swaywm/sway/statuses/51fa988be9203dd81fd0897611a854ef9f4b4f5f"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"emersion","id":506932,"node_id":"MDQ6VXNlcjUwNjkzMg==","avatar_url":"https://avatars1.githubusercontent.com/u/506932?v=4","gravatar_id":"","url":"https://api.github.com/users/emersion","html_url":"https://github.com/emersion","followers_url":"https://api.github.com/users/emersion/followers","following_url":"https://api.github.com/users/emersion/following{/other_user}","gists_url":"https://api.github.com/users/emersion/gists{/gist_id}","starred_url":"https://api.github.com/users/emersion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emersion/subscriptions","organizations_url":"https://api.github.com/users/emersion/orgs","repos_url":"https://api.github.com/users/emersion/repos","events_url":"https://api.github.com/users/emersion/events{/privacy}","received_events_url":"https://api.github.com/users/emersion/received_events","type":"User","site_admin":false},"comments":2,"review_comments":2,"maintainer_can_modify":false,"commits":2,"additions":374,"deletions":267,"changed_files":12}}
{"actor":{"display_login":"emersion"}}