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

[Feature request] Support for powerline in swaybar #511

Closed
her001 opened this issue Mar 15, 2016 · 10 comments
Closed

[Feature request] Support for powerline in swaybar #511

her001 opened this issue Mar 15, 2016 · 10 comments

Comments

@her001
Copy link
Contributor

her001 commented Mar 15, 2016

Powerline is a status line plugin with support for a modded i3bar, among other things. It does not support mainline i3bar. The main requirement, as far as I know, is to have support for background colors and fallback fonts (the latter of which might be in swaybar already).

Powerline in i3

Edit: Fallback fonts are not even required, as Powerline can use themes that do not use their special characters

@SethBarberee
Copy link
Contributor

Fallback fonts are supported in swaybar but I don't know about background colors. Powerline is kinda what I'm doing with my status bar in sway but mine has only has the arrow tips in it

@mikkeloscar
Copy link
Collaborator

Swaybar has support for background colors through the i3bar protocol.

To do the arrows like that, swaybar would need to support per block separators with different fg/bg color by extending the i3bar protocol.

An alternative would be to add support for another protocol which is not aware of blocks like the protocol used in LemonBoy/bar (Which is the preferred way to do a powerline status bar in i3, it seems).

@kigerpunk
Copy link

This is slightly irrelevant, but does swaybar support arbitrary input like i3blocks?

@mikkeloscar
Copy link
Collaborator

@ke7ofi you can pass it an arbitrary line of text if that is what you mean? You won't get colors that way though.

@ddevault
Copy link
Contributor

Feel free to keep having a discussion, but I'm not sure there's something actionable here so I'm going to close the issue.

@her001
Copy link
Contributor Author

her001 commented Mar 18, 2016

@SirCmpwn If someone were to submit a pull request that implemented support for powerline, do you think it would be appropriate to add that feature to swaybar?

@ddevault
Copy link
Contributor

It depends on what's necessary to support it. What would have to change?

@her001
Copy link
Contributor Author

her001 commented Mar 18, 2016

I am not 100% sure as I have not gone through the code, https://github.com/s-ol/i3bgbar is the old fork of i3bar that supports it.

This issue powerline/powerline#145 (comment) on the Powerline github has some details on how it was implemented. Looks like it was mostly adding a key to the json input for background-color and making sure it actually changed the background color for that text.

On Thu, Mar 17, 2016 at 10:24 PM, Drew DeVault notifications@github.com
wrote:

It depends on what's necessary to support it. What would have to change?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#511 (comment)

Andrew Conrad
aconrad103@gmail.com

@ddevault
Copy link
Contributor

That sounds like it's supported by i3-gaps and falls under the scope of #307

@her001
Copy link
Contributor Author

her001 commented Mar 18, 2016

Oh, wow... I never saw that issue. It does look like it should work, if
Powerline was modified. Thank you for pointing me in the right direction.

On Thu, Mar 17, 2016 at 10:35 PM, Drew DeVault notifications@github.com
wrote:

That sounds like it's supported by i3-gaps and falls under the scope of
#307 #307


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#511 (comment)

Andrew Conrad
aconrad103@gmail.com

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

No branches or pull requests

5 participants