statbar
statbar copied to clipboard
A Linux status bar, supporting multiple lightweight clients (multi-head)
Running another python process (or few?) might take up more mem than I'd like. But perhaps better aggregation of system stats: https://psutil.readthedocs.io/en/latest/#system-related-functions
Pros - no more `statbar` checking for and launching `statd` - fix bug where shmem file exists, but statd is dead and statbar hangs doing nothing - possibly no more...
When killing stat(d|bar) via `kill`, some processes that are blocked on a read are not cleaned up. This is usually the `bspwm subscribe` and the mocp music listener
Sometimes, on crashes, `/dev/shm/statbar` is left behind, and not appropriately detected as "dead" on next run. Client will hang waiting for data
`datetime` is probably good enough. Only wakes up during minute change. `network` can probably be pinged by events. E.g. onconnect, ondisconnect events of network manager can send SIGUSR2 or something...
Currently fixed at Y=32 due to `conkup`. Should be relative to click, since the status bar may not always be at the very top. If it's actually hugging the bottom,...
Should probably write man pages for `statbar` and `statd`. Even though current calling conventions are limited, future could be different. Add in a usage string `-h` and `--help` are good...