about summary refs log tree commit diff stats
path: root/xautostart
blob: 321101cfc13ba86e2008d6245e10cf9a1899b57e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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