{"action":"created","issue":{"url":"https://api.github.com/repos/mattr-/slate/issues/57","labels_url":"https://api.github.com/repos/mattr-/slate/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/mattr-/slate/issues/57/comments","events_url":"https://api.github.com/repos/mattr-/slate/issues/57/events","html_url":"https://github.com/mattr-/slate/issues/57","id":120360398,"number":57,"title":"Is there a way to don't move window across monitors ?","user":{"login":"jeanlaurent","id":197016,"avatar_url":"https://avatars.githubusercontent.com/u/197016?v=3","gravatar_id":"","url":"https://api.github.com/users/jeanlaurent","html_url":"https://github.com/jeanlaurent","followers_url":"https://api.github.com/users/jeanlaurent/followers","following_url":"https://api.github.com/users/jeanlaurent/following{/other_user}","gists_url":"https://api.github.com/users/jeanlaurent/gists{/gist_id}","starred_url":"https://api.github.com/users/jeanlaurent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeanlaurent/subscriptions","organizations_url":"https://api.github.com/users/jeanlaurent/orgs","repos_url":"https://api.github.com/users/jeanlaurent/repos","events_url":"https://api.github.com/users/jeanlaurent/events{/privacy}","received_events_url":"https://api.github.com/users/jeanlaurent/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-04T09:07:15Z","updated_at":"2015-12-07T17:10:55Z","closed_at":"2015-12-07T17:10:55Z","body":"I hooked a monitor to my laptop.\r\n\r\nLet's say I got the minimal configuration here :\r\n```\r\nconfig defaultToCurrentScreen true\r\nbind 1:alt,cmd move 0;0 screenSizeX/2;screenSizeY\r\n```\r\nWith my current understanding, should make the current window goes to the top left and take half the screen size whenever I press ALT-CMD-1\r\n\r\nit works flawlessly on the monitor or when I am using only the laptop without the external monitor ( the one with the menu bar in the mac preference panel )\r\n\r\nBut If I do the same thing on a window on the laptop screen while having the monitor hooked to the laptop, then the window is moved on the monitor...\r\n\r\nI played quite a bit with the various combination, but can I make the same keystroke work and that it apply it to the current screen only ?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mattr-/slate/issues/comments/162595896","html_url":"https://github.com/mattr-/slate/issues/57#issuecomment-162595896","issue_url":"https://api.github.com/repos/mattr-/slate/issues/57","id":162595896,"user":{"login":"mattr-","id":77174,"avatar_url":"https://avatars.githubusercontent.com/u/77174?v=3","gravatar_id":"","url":"https://api.github.com/users/mattr-","html_url":"https://github.com/mattr-","followers_url":"https://api.github.com/users/mattr-/followers","following_url":"https://api.github.com/users/mattr-/following{/other_user}","gists_url":"https://api.github.com/users/mattr-/gists{/gist_id}","starred_url":"https://api.github.com/users/mattr-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattr-/subscriptions","organizations_url":"https://api.github.com/users/mattr-/orgs","repos_url":"https://api.github.com/users/mattr-/repos","events_url":"https://api.github.com/users/mattr-/events{/privacy}","received_events_url":"https://api.github.com/users/mattr-/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T17:10:55Z","updated_at":"2015-12-07T17:10:55Z","body":"This will do what you want:\r\n```\r\nmove screenOriginX;screenOriginY screenSizeX/2;screenSizeY\r\n```\r\n\r\n`screenOriginX` and `screenOriginY` take into account the current screen that you're on. Slate maps all the screens based on how they're presented by OS X and so `0;0` always ends up being the on the primary display (which is the display with the menu bar on it). "}}