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