{"action":"created","issue":{"url":"https://api.github.com/repos/SirCmpwn/sway/issues/273","labels_url":"https://api.github.com/repos/SirCmpwn/sway/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/SirCmpwn/sway/issues/273/comments","events_url":"https://api.github.com/repos/SirCmpwn/sway/issues/273/events","html_url":"https://github.com/SirCmpwn/sway/pull/273","id":119323752,"number":273,"title":"Fix output configuration","user":{"login":"christophgysin","id":527924,"avatar_url":"https://avatars.githubusercontent.com/u/527924?v=3","gravatar_id":"","url":"https://api.github.com/users/christophgysin","html_url":"https://github.com/christophgysin","followers_url":"https://api.github.com/users/christophgysin/followers","following_url":"https://api.github.com/users/christophgysin/following{/other_user}","gists_url":"https://api.github.com/users/christophgysin/gists{/gist_id}","starred_url":"https://api.github.com/users/christophgysin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christophgysin/subscriptions","organizations_url":"https://api.github.com/users/christophgysin/orgs","repos_url":"https://api.github.com/users/christophgysin/repos","events_url":"https://api.github.com/users/christophgysin/events{/privacy}","received_events_url":"https://api.github.com/users/christophgysin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-28T23:10:02Z","updated_at":"2015-11-29T19:52:59Z","closed_at":"2015-11-29T12:56:25Z","pull_request":{"url":"https://api.github.com/repos/SirCmpwn/sway/pulls/273","html_url":"https://github.com/SirCmpwn/sway/pull/273","diff_url":"https://github.com/SirCmpwn/sway/pull/273.diff","patch_url":"https://github.com/SirCmpwn/sway/pull/273.patch"},"body":"Don't overwrite existing configuration. Previously, the configuration:\r\n\r\noutput WLC-1 position 1680,0\r\noutput WLC-1 background ~/background.png stretch\r\n\r\nWould discard the positioning information.\r\n\r\nThis change fixes this, but removes support for combining different output\r\nsubcommands, to simplify error handling in individual subcommands."},"comment":{"url":"https://api.github.com/repos/SirCmpwn/sway/issues/comments/160460682","html_url":"https://github.com/SirCmpwn/sway/pull/273#issuecomment-160460682","issue_url":"https://api.github.com/repos/SirCmpwn/sway/issues/273","id":160460682,"user":{"login":"christophgysin","id":527924,"avatar_url":"https://avatars.githubusercontent.com/u/527924?v=3","gravatar_id":"","url":"https://api.github.com/users/christophgysin","html_url":"https://github.com/christophgysin","followers_url":"https://api.github.com/users/christophgysin/followers","following_url":"https://api.github.com/users/christophgysin/following{/other_user}","gists_url":"https://api.github.com/users/christophgysin/gists{/gist_id}","starred_url":"https://api.github.com/users/christophgysin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christophgysin/subscriptions","organizations_url":"https://api.github.com/users/christophgysin/orgs","repos_url":"https://api.github.com/users/christophgysin/repos","events_url":"https://api.github.com/users/christophgysin/events{/privacy}","received_events_url":"https://api.github.com/users/christophgysin/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T19:52:58Z","updated_at":"2015-11-29T19:52:58Z","body":"The problem is that if you later set e.g.:\r\n```\r\noutput HDMI-A-1 pos 1920,100\r\n```\r\nIt will reset your resolution.\r\n\r\nAlso, `*` is only supported for backgrounds.\r\n\r\nThis would be a lot easier to fix and correctly document with my proposed change, if you're willing to write your config as:\r\n```\r\noutput DVI-I-1 res 1920x1080\r\noutput DVI-I-1 pos 3840,0\r\noutput DVI-D-1 res 1920x1080\r\noutput DVI-D-1 pos 0,0\r\noutput HDMI-A-1 res 1920x1080\r\noutput HDMI-A-1 pos 1920,0\r\noutput * bg ~/wallpaper.png stretch\r\n```"}}