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
-
This wrapper script immediately restarts
bpytop
when the config file changes:(This requires the
inotifywait
command, part of thecommunity/inotify-tools
package on Arch)This let me integrate
bpytop
in 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
bpytop
restarts 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