How To: Refresh your status bar in response to a hotkey - Desktop Customization & Workflow

Users browsing this thread: 1 Guest(s)
neeasade
Grey Hair Nixers
> This is much more difficult than I expected. How would you update something like - current machine's IP, Weather, BTC price, your inbox from mutt etc? These things do not require frequent updates, but also have no shortcuts to bind them to... I want to hack something for lemonbar, but can't figure out how to make different delay for different functions.

I personally cheat. I have a command cache_output[1] and I'll set the cache time to like 10 minutes for stuff like weather. That way, regardless of panel toggle status, I'm not doing "heavy" things.

[1] https://github.com/neeasade/dotfiles/blo...che_output

edit: see also: https://nixers.net/Thread-My-panel-scripts


Messages In This Thread
RE: How To: Refresh your status bar in response to a hotkey - by neeasade - 03-12-2020, 11:55 AM