about summary refs log tree commit diff stats
path: root/xautostart
blob: fd56ce7f63e1c34af07fc40c5102b3e471b53b23 (plain)
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