Automatically restart bpytop when settings change (to toggle dark/light theme) #368
Hubro
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This wrapper script immediately restarts
bpytopwhen the config file changes:(This requires the
inotifywaitcommand, part of thecommunity/inotify-toolspackage on Arch)This let me integrate
bpytopin my day/night theme toggling script:bpytop-theme-toggle-demo.mp4
Granted, it's a little jumpy, and all the graphs are reset, but at least it works!
If I was more knowledgeable with the shell, I could probably freeze STDOUT for a second while
bpytoprestarts to avoid the flashing text. If anybody has any tips on that I would appreciate it.Beta Was this translation helpful? Give feedback.
All reactions