Detect terminal background color and determine light/dark theme
Rust library for terminal background color detection
termbg
$ termbg
$ termbg -v
$ if termbg | grep -q dark; then echo 'Dark mode'; fi