{"action":"created","issue":{"url":"https://api.github.com/repos/baskerville/bspwm/issues/273","labels_url":"https://api.github.com/repos/baskerville/bspwm/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/baskerville/bspwm/issues/273/comments","events_url":"https://api.github.com/repos/baskerville/bspwm/issues/273/events","html_url":"https://github.com/baskerville/bspwm/issues/273","id":88912347,"number":273,"title":"Is it possible to WINDOW_SEL second biggest window?","user":{"login":"Chrysostomus","id":12002226,"avatar_url":"https://avatars.githubusercontent.com/u/12002226?v=3","gravatar_id":"","url":"https://api.github.com/users/Chrysostomus","html_url":"https://github.com/Chrysostomus","followers_url":"https://api.github.com/users/Chrysostomus/followers","following_url":"https://api.github.com/users/Chrysostomus/following{/other_user}","gists_url":"https://api.github.com/users/Chrysostomus/gists{/gist_id}","starred_url":"https://api.github.com/users/Chrysostomus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chrysostomus/subscriptions","organizations_url":"https://api.github.com/users/Chrysostomus/orgs","repos_url":"https://api.github.com/users/Chrysostomus/repos","events_url":"https://api.github.com/users/Chrysostomus/events{/privacy}","received_events_url":"https://api.github.com/users/Chrysostomus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-17T05:00:06Z","updated_at":"2015-12-22T19:16:51Z","closed_at":null,"body":"I'd like to create an external rule that would transplant new windows in the second biggest window of the desktop. How would one go about doing that?"},"comment":{"url":"https://api.github.com/repos/baskerville/bspwm/issues/comments/166707259","html_url":"https://github.com/baskerville/bspwm/issues/273#issuecomment-166707259","issue_url":"https://api.github.com/repos/baskerville/bspwm/issues/273","id":166707259,"user":{"login":"blendi-93","id":4957651,"avatar_url":"https://avatars.githubusercontent.com/u/4957651?v=3","gravatar_id":"","url":"https://api.github.com/users/blendi-93","html_url":"https://github.com/blendi-93","followers_url":"https://api.github.com/users/blendi-93/followers","following_url":"https://api.github.com/users/blendi-93/following{/other_user}","gists_url":"https://api.github.com/users/blendi-93/gists{/gist_id}","starred_url":"https://api.github.com/users/blendi-93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blendi-93/subscriptions","organizations_url":"https://api.github.com/users/blendi-93/orgs","repos_url":"https://api.github.com/users/blendi-93/repos","events_url":"https://api.github.com/users/blendi-93/events{/privacy}","received_events_url":"https://api.github.com/users/blendi-93/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T19:16:51Z","updated_at":"2015-12-22T19:16:51Z","body":"u can use this script.\r\nfor eample, this would focus the second biggest window:\r\n\r\n    bspc window -f $(./list_windows_by_size.sh 2)\r\n\r\nor to use this in ur external rules.\r\n\r\n\techo window=$(~/list_windows_by_size.sh 2)\r\n\r\npls install [jshon](https://github.com/keenerd/jshon) to use the script.\r\n\r\nhttps://gist.github.com/blendi-93/b2038896ac29037353af"}}