Using btop as a status indicator command #801
godalming123
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can understand why this might be out-of-scope for this project, but let me make an argument for being able to use btop to print the status of a system, for example the command:
Would output the following to stdout:
This could be useful for a bar program like poly-bar or eww. Note that the
--update-15s
option makes the command not exit, and instead reprint the status every 15 seconds on a newline for something like swaybar.My arguments are as follows:
This command would work on every system. It doesn't matter which OS is being used; windows, linux, freeBSD, or mac - they could all work perfectly with a simple command. This allows for example a neovim setup that works well on every OS.
This is one command, and not a complex, unreliable script. My current script to update my swaybar is as follows:
This script is much harder to understand, and also much less reliable:
cat: /sys/class/thermal/thermal_zone0/temp: No data available
(the temperature works fine on btop).BAT0
, and this script just wouldn't work with this scriptI'm sure that these issues are easy to fix, but btop just works ® much more reliably then this script.
Just an idea
Beta Was this translation helpful? Give feedback.
All reactions