{"action":"created","issue":{"url":"https://api.github.com/repos/baskerville/bspwm/issues/814","repository_url":"https://api.github.com/repos/baskerville/bspwm","labels_url":"https://api.github.com/repos/baskerville/bspwm/issues/814/labels{/name}","comments_url":"https://api.github.com/repos/baskerville/bspwm/issues/814/comments","events_url":"https://api.github.com/repos/baskerville/bspwm/issues/814/events","html_url":"https://github.com/baskerville/bspwm/issues/814","id":333503664,"node_id":"MDU6SXNzdWUzMzM1MDM2NjQ=","number":814,"title":"Reset monocle mode after last window closed","user":{"login":"Jumblemuddle","id":3629343,"node_id":"MDQ6VXNlcjM2MjkzNDM=","avatar_url":"https://avatars3.githubusercontent.com/u/3629343?v=4","gravatar_id":"","url":"https://api.github.com/users/Jumblemuddle","html_url":"https://github.com/Jumblemuddle","followers_url":"https://api.github.com/users/Jumblemuddle/followers","following_url":"https://api.github.com/users/Jumblemuddle/following{/other_user}","gists_url":"https://api.github.com/users/Jumblemuddle/gists{/gist_id}","starred_url":"https://api.github.com/users/Jumblemuddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jumblemuddle/subscriptions","organizations_url":"https://api.github.com/users/Jumblemuddle/orgs","repos_url":"https://api.github.com/users/Jumblemuddle/repos","events_url":"https://api.github.com/users/Jumblemuddle/events{/privacy}","received_events_url":"https://api.github.com/users/Jumblemuddle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-19T03:07:22Z","updated_at":"2018-06-19T03:29:26Z","closed_at":null,"author_association":"NONE","body":"I've been trying to implement a way to reset monocle mode after all windows in a desktop have been closed, but I can't seem to find a way to do it without modifying the source.\r\n\r\nIf someone can implement this feature, great, otherwise, I'll try to implement it and create a PR when I have more time."},"comment":{"url":"https://api.github.com/repos/baskerville/bspwm/issues/comments/398263146","html_url":"https://github.com/baskerville/bspwm/issues/814#issuecomment-398263146","issue_url":"https://api.github.com/repos/baskerville/bspwm/issues/814","id":398263146,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODI2MzE0Ng==","user":{"login":"yrkv","id":11140316,"node_id":"MDQ6VXNlcjExMTQwMzE2","avatar_url":"https://avatars1.githubusercontent.com/u/11140316?v=4","gravatar_id":"","url":"https://api.github.com/users/yrkv","html_url":"https://github.com/yrkv","followers_url":"https://api.github.com/users/yrkv/followers","following_url":"https://api.github.com/users/yrkv/following{/other_user}","gists_url":"https://api.github.com/users/yrkv/gists{/gist_id}","starred_url":"https://api.github.com/users/yrkv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yrkv/subscriptions","organizations_url":"https://api.github.com/users/yrkv/orgs","repos_url":"https://api.github.com/users/yrkv/repos","events_url":"https://api.github.com/users/yrkv/events{/privacy}","received_events_url":"https://api.github.com/users/yrkv/received_events","type":"User","site_admin":false},"created_at":"2018-06-19T03:29:26Z","updated_at":"2018-06-19T03:29:26Z","author_association":"NONE","body":"I just made this because it seemed like a nice feature. I'm a bit of a beginner with this kind of stuff but I think it works as expected. Just stick this in ~/.bin or something, and call it (with &)  in your bspwmrc. There are probably better ways to do this than this script.\r\n\r\n`\r\n#!/bin/zsh\r\n\r\nbspc subscribe | while read line; do\r\n    DESK=\"$(echo $line | grep -Eo 'F[^:]+' | cut -c2- )\"\r\n    if [ \"$DESK\" != \"\" ]; then\r\n        bspc desktop \"$DESK\" --layout tiled\r\n    fi\r\ndone\r\n`"}}
{"actor":{"display_login":"yrkv"}}