More extensive kmscon-launch-gui.sh tweaks, inotifywait
Continuation of #162
Use inotifywait to monitor foreground console change, if available, otherwise fallback to sleep.
Use case for control sequence selectors as it is more compact, elegant, and handy for potential future variant additions.
apply shfmt -s -sr formatting.
Sorry, I pushed to your branch, because I wanted to cleaned-up the commit history, the content should be the same.
The only thing I changed, is I kept the \ at the end of printf '\033Ptmux;\033\033]setBackground\a\033\\'.
The reason is that we want an \ and this must be escaped, it works if you put only one, because it's the last char of the string, but if you want to append some stuff it won't work.
If no other comments, I will merge it.
Corrected a dumb mistake, sorry.