Comments (7)
+1 for this feature, this could be really useful.
from i3blocks.
+1 I made something like this in #90, which let you set a custom color when you exit with urgent
, but i3bar almost immediately updated to break it.
from i3blocks.
I would like to see this in the i3 config with the rest of the bar colors.
from i3blocks.
Feel free to modify the included iface script. Just change line 38:
echo \#FF0000 # color
The included scripts give a great starting point but i3blocks has always aimed primarily to provide a simple framework for writing custom scripts and a set of commonly used example scripts to get started. If you haven't done so, consider copying the scripts to something like ~/bin/i3blocks/
so you can modify them as desired.
A custom down colour would better meet people's needs but would require adding a flag or option to the script; something that the project is trying to avoid. Adding options means more documentation and a messier example config to demonstrate what is possible.
A global isn't actually possible given i3blocks' architecture. i3blocks is a very thin codec between STDOUT and i3bar.json. Each parameter maps identically to an i3bar protocol field. For example, this is why a custom separator isn't possible (however, the i3bar config section has an option to change this). i3bar implements this so the best that can be done given the protocol is to turn off the separator for every block and add a block for each separator. Same with urgent colour. The protocol only allows us to send a true or a false for urgency (not a colour, font scheme like underlining or bold, or a message for libnotify).
Oh, a few people want to know how to set a custom urgent colour. i3bar uses the style provided by the i3 config bar{colors{urgent_workspace}}
command.
Just modify the following (border isn't used by i3bar):
bar{
...
colors{
...
# class border backgr. text
urgent_workspace #dc322f #dc322f #eee8d5
}}
from i3blocks.
Thank you very much!
from i3blocks.
Note that this obviously also changes the way urgent workspace buttons look.
The name urgent_workspace
isn't entirely correct anymore due to this, but introducing a separate directive for it would have been overkill. And anything else isn't compatible with previous versions.
from i3blocks.
I'm closing this issue since such an option would diverge too much from the i3bar protocol. Thanks for your input on the issue guys!
from i3blocks.
Related Issues (20)
- Enable utf-8 string in i3blocks
- Persistent command does not actually persist HOT 3
- How do I tell i3blocks to refresh all blocks? HOT 2
- block freezing my status bar HOT 2
- battery regexp breaks with two batteries HOT 1
- `autogen.sh` Generates a `configure` File that Tries to Call Autoconf macro `PKG_CHECK_MODULES` HOT 1
- [Feature Request] Add ticker support
- I'm having trouble getting fixed-width strings to work on i3blocks. HOT 1
- Block's character will turn into "[" character after clicked and turn normal after sway is reloaded. HOT 1
- Can't use the config variable when running the script using i3-msg -q exec myscript HOT 4
- Simple way to display title of focused window in i3blocks HOT 2
- i3blocks does not show anything except datetime HOT 3
- dmenu hang when called from i3blocks with -fn option
- Battery regex in example doesn't handle 100% HOT 2
- Trouble with setting a label with emoji via the json format HOT 1
- Any script with a 'for' loop doesn't produce any output
- How to get back monochrome icons / emojis? Weird font issue!
- Question: is running a secondary command when clicking a button with an interval possible? HOT 1
- Change the color of borders from within a script
- If I launch a graphical program from a block and restart i3, the program dies even if disowned. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i3blocks.