about summary refs log tree commit diff stats
path: root/xautostart
diff options
context:
space:
mode:
authorCase Duckworth2024-05-30 12:47:11 -0500
committerCase Duckworth2024-05-30 12:47:11 -0500
commit22bc1e1879da0d99e5e1d79b10742b8cc9fd0521 (patch)
treecd813c6d8bfeebe83901b2d749ce97f1231dd547 /xautostart
downloaddots-22bc1e1879da0d99e5e1d79b10742b8cc9fd0521.tar.gz
dots-22bc1e1879da0d99e5e1d79b10742b8cc9fd0521.zip
Initial commit
Diffstat (limited to 'xautostart')
-rwxr-xr-xxautostart18
1 files changed, 18 insertions, 0 deletions
diff --git a/xautostart b/xautostart new file mode 100755 index 0000000..321101c --- /dev/null +++ b/xautostart
@@ -0,0 +1,18 @@
1#!/bin/sh
2
3once() {
4 printf '%s ... ' "$*"
5 if pgrep -x "$1"
6 then
7 echo up
8 else
9 "$@" 2>&1 |
10 sed "s/.*/$1\t&/g" \
11 >> ~/.local/share/xorg/autostart.log &
12 echo ok
13 fi
14}
15
16once keepassxc
17once nextcloud
18once emacs --daemon