#!/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 nextcloud once emacs --daemon