Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i3 pin-workspaces behaviour, but by defining a different output. #1625

Open
ldjb1g15 opened this issue Jan 24, 2019 · 5 comments · May be fixed by #2797
Open

i3 pin-workspaces behaviour, but by defining a different output. #1625

ldjb1g15 opened this issue Jan 24, 2019 · 5 comments · May be fixed by #2797
Assignees
Labels

Comments

@ldjb1g15
Copy link

Is your feature request related to a problem? Please describe.

This is what I am trying to achieve. I have a 3-monitor setup and I would like individual bars for each monitor with the "pin-workspaces" behavior, but all displayed on the central monitor.

Why does polybar need this feature?

This would allow for much more freedom in the display of workspaces. This would be a benefit both functionally and aesthetically.

Describe the solution you'd like

Define different variables for the input and output displays for the i3 module. Alternatively, specify which workspaces a module can display.

Describe alternatives you've considered

I am still relatively new in the world of linux, i3 and polybar. So I do not know if some solution/workaround already exists. As far as I can see, the current option allows for only displaying all i3 workspaces within a single module, or only those on the monitor on which the bar is displayed. I cant see a way of achieving this.

Additional context

End goal:
A central bar, on the central monitor, which displays only the workspaces on the central monitor (normal pin-workspaces behavior). Two additional bars, still on the central monitor and on either side of the central bar, which display the workspaces shown on the left and right monitors.

@patrick96
Copy link
Member

This could probably be done in an unobtrusive way by allowing all the functionality to specify monitors that exists in the bar section in the i3 module as well and fall back to the bar monitor when it's not specified. I have added it onto our TODO list.

@ldjb1g15
Copy link
Author

Im happy to hear that! Thanks.

@stupidus89
Copy link

This feature request is very interesting. Years ago, I found a workaround for a similar problem using a python script. It does not do exactly what you want, as it displays all the workspaces grouped by monitor in the same instance of polybar instead of different instances.

Anyhow, in case you want to adapt my workaround in the meantime, I uploaded the script here: https://gist.github.com/stupidus89/69efd906d68fb2cfa3d6378361091738

@sumebrius
Copy link

Hi, I think I can provide a fairly simple PR for this feature - would this be something you'd consider pulling in?

I'm thinking it would just add an optional configuration string such as pin-output to work in tandem with the current pin-workspaces configuration. If specified, the module would show workspaces i3 reports for the output specified, otherwise falls back to the current behaviour.

@patrick96
Copy link
Member

@sumebrius Sure, go for it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants