{"action":"created","issue":{"url":"https://api.github.com/repos/jaagr/polybar/issues/274","repository_url":"https://api.github.com/repos/jaagr/polybar","labels_url":"https://api.github.com/repos/jaagr/polybar/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/jaagr/polybar/issues/274/comments","events_url":"https://api.github.com/repos/jaagr/polybar/issues/274/events","html_url":"https://github.com/jaagr/polybar/issues/274","id":197626826,"number":274,"title":"i3 show unused workspaces","user":{"login":"eoli3n","id":14223657,"avatar_url":"https://avatars0.githubusercontent.com/u/14223657?v=4","gravatar_id":"","url":"https://api.github.com/users/eoli3n","html_url":"https://github.com/eoli3n","followers_url":"https://api.github.com/users/eoli3n/followers","following_url":"https://api.github.com/users/eoli3n/following{/other_user}","gists_url":"https://api.github.com/users/eoli3n/gists{/gist_id}","starred_url":"https://api.github.com/users/eoli3n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eoli3n/subscriptions","organizations_url":"https://api.github.com/users/eoli3n/orgs","repos_url":"https://api.github.com/users/eoli3n/repos","events_url":"https://api.github.com/users/eoli3n/events{/privacy}","received_events_url":"https://api.github.com/users/eoli3n/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-26T23:30:14Z","updated_at":"2018-03-31T19:03:06Z","closed_at":"2016-12-27T00:59:15Z","author_association":"NONE","body":"In your exemple, i see that you display unused workspaces.\r\nHow to show all i3 workspaces, even unused ?\r\n\r\nhttp://i.imgur.com/A6spiZZ.png"},"comment":{"url":"https://api.github.com/repos/jaagr/polybar/issues/comments/377715642","html_url":"https://github.com/jaagr/polybar/issues/274#issuecomment-377715642","issue_url":"https://api.github.com/repos/jaagr/polybar/issues/274","id":377715642,"user":{"login":"kenogo","id":24212659,"avatar_url":"https://avatars2.githubusercontent.com/u/24212659?v=4","gravatar_id":"","url":"https://api.github.com/users/kenogo","html_url":"https://github.com/kenogo","followers_url":"https://api.github.com/users/kenogo/followers","following_url":"https://api.github.com/users/kenogo/following{/other_user}","gists_url":"https://api.github.com/users/kenogo/gists{/gist_id}","starred_url":"https://api.github.com/users/kenogo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenogo/subscriptions","organizations_url":"https://api.github.com/users/kenogo/orgs","repos_url":"https://api.github.com/users/kenogo/repos","events_url":"https://api.github.com/users/kenogo/events{/privacy}","received_events_url":"https://api.github.com/users/kenogo/received_events","type":"User","site_admin":false},"created_at":"2018-03-31T19:03:06Z","updated_at":"2018-03-31T19:03:06Z","author_association":"NONE","body":"I have a pretty hacky solution that makes this possible without changes to i3. I used the `struct workspace_t`'s `output` entry (I figured displaying different things on different output devices is unnecessary in this use case, so I could just abuse the struct's `output` for something else without having to rewrite tons of code). Basically, I added a function that iterates through an array of set length and checks if the workspace number is equal to the index+1. If it isn't, it adds a workspace at this index and writes `\"empty\"` into `ws.output`. Later on, you can then add a check for this `\"empty\"` and add config options for a new window state called `empty`, which you can edit with `label-empty` and so on. This is needed in order to display a difference between an unfocused workspace and a non-existant workspace.\r\n\r\nI don't think this hacky stuff deserves a pull request. But I can clean up a bit later and put some diffs here if there's interest for it."}}
{"actor":{"display_login":"kenogo"}}