Style support for status bar#410
Open
ivanmilov wants to merge 2 commits into
Open
Conversation
With this PR you can make statusbar output looks like e.g. powerline. Example there: https://i.redd.it/13a2zz2ifjw31.png New field in config: full_text_pattern Value of this pattern will be parsed and all values surrounded by '%' will be used as parameter keys. Values started with '&' - are references on another parameter keys. Demo config example: ``` command=~/.config/i3/i3blocksScripts/$BLOCK_NAME separator_block_width=0 markup=pango color1=#ffffffa0 color2=#000000a0 background=#000000a0 separator_glyph= full_text_pattern=<span foreground='%gfg%' background='%gbg%'>%separator_glyph%</span><span foreground='%fg%' background='%bg%'>%full_text%</span> gbg=&fg gfg=&bg [foo] command=echo foo bg=&color1 fg=&color2 interval=once [bar] command=echo bar bg=&color2 fg=&color1 interval=once ``` i3 config: ``` bar { position top i3bar_command i3bar -t 0.1 colors{ background #000000a0 } status_command i3blocks -c demo.conf } ```
dllud
pushed a commit
to dllud/i3blocks
that referenced
this pull request
Jan 12, 2024
Adding a weather block
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With this PR you can make statusbar output looks like e.g. powerline.
Example there: https://i.redd.it/13a2zz2ifjw31.png
New field in config: full_text_pattern
Value of this pattern will be parsed and all values surrounded by '%' will be used as parameter keys.
Values started with '&' - are references on another parameter keys.
Demo config example:
i3 config: