1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/bin/sh once() { printf '%s ... ' "$*" if pgrep -x "$1" then echo up else "$@" 2>&1 | sed "s/.*/$1\t&/g" \ >> ~/.local/share/xorg/autostart.log & echo ok fi } once keepassxc once dunst once nextcloud #once emacs --daemon