# Helper fuction to only spawn a program when no instance of it is running # already, so init can be re-run without all widgets being duplicated. function spawn_once { pgrep -f "${1}" > /dev/null || riverctl spawn "${*}" }