# spawn once -rw-r--r-- 226 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
# 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 "${*}"
}