geommer / yabar

A modern and lightweight status bar for X window managers.
MIT License
679 stars 49 forks source link

Inter-Process Communication #116

Open RyanScottLewis opened 8 years ago

RyanScottLewis commented 8 years ago

It would be really nice to run a daemon in the background and send the information to yabar from that, rather than executing a bunch of processes and showing their output on every update.

Just a thought, keep up the good work!

RIscRIpt commented 8 years ago

I guess it is already implemented with the type equal to persist.

persistent where the command/script runs in a persistent way like xtitle

Is that what you wanted?

RyanScottLewis commented 8 years ago

My roadblock here is this: I have a "weather" script which works great, but when I go fullscreen with a video, the text disappears and the block is filled with blank space.

I would like to setup a keybinding in my window manager to tell yabar to force a refresh, rather than waiting the hour it takes for the script to update it's output and appear again.

Even just a signal to send to the process would be great. I may fork and attempt to implement that or something similar.

jacksgt commented 8 years ago

Well, the text disappearing after fullscreen is actually a standalone issue (#71) (and hence this would be a very hacky workaround).

Personally, I think everything else than signaling is currently a bit over the top for yabar.

RyanScottLewis commented 8 years ago

There can be other uses for IPC, for example toggling a set of blocks via a key binding.

NBonaparte commented 7 years ago

The refreshing issue should be fixed now, but I'll leave this open because IPC by itself could be a feature.