Comments (6)
If you don't want something to actively check, then use threading to run the script. Many i3pystatus modules already do this. The threading target can simply update self.output
when it has new info, and changes will be reflected in the status bar the next time the interval passes.
from i3pystatus.
I don't understand what you just wrote, but I want changes to be reflected immediately.
This issue is the reason that I'm migrating to i3blocks.
from i3pystatus.
Without more details, and with that kind of attitude, you're not likely to get much help.
From what I can understand, from the little information you've provided, this seems like something that the shell
module is not well-suited for.
If you'd like to provide a more detailed feature request, perhaps someone can take a look.
from i3pystatus.
On https://github.com/vivien/i3blocks#interval, you can read
The interval value persist (or -3) expects the command to be an infinite loop. Each line of the output will trigger an update of the block.
I want this.
from i3pystatus.
@enkore Functionality like this may be useful, specifically for the shell
module. However, i3pystatus.core would still end up attempting to execute the module's run
function when the interval has passed, and negative intervals would probably mess with i3pystatus.core.threading. What do you think?
from i3pystatus.
Because I was frustrated by all existing i3bar/swaybar status programs, I created my own i3bar/swaybar scripting system.
https://codeberg.org/amano.kenji/j3blocks is more difficult to use, but it is very flexible.
from i3pystatus.
Related Issues (20)
- battery module can't read /sys/class/power_supply/BAT0/uevent
- Support for pipewire
- handle over width
- fontawesome icons are not rendered correctly in status bar HOT 1
- Feelslike not working
- i3pystatus shows json output in statusbar
- Lots of "invalid option" when running under python3.10 HOT 3
- format_up doesn't recognise {network_graph_recv} in network module. HOT 2
- Weather Underground has deprecated API v2 HOT 2
- module mouse hover events
- scroll the entire line
- I provide this library with my blender add-on and when I enable my add-on I get this error HOT 5
- Registering a module within a Group: AttributeError: 'Group' object has no attribute 'default_hints' HOT 1
- WUnderground weather module returns 401 Unauthorized
- solaar: upstream change - removal of device ID numbers
- item overflowing gets whole bar colored HOT 2
- Empty color string floods ~/.xsession-errors HOT 3
- Add Python3.12 support HOT 1
- Python 3.12 Removed the imp package which __init__.py includes 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 i3pystatus.