diff options
Diffstat (limited to 'xautostart')
-rwxr-xr-x | xautostart | 18 |
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 | |||
3 | once() { | ||
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 | |||
16 | once keepassxc | ||
17 | once nextcloud | ||
18 | once emacs --daemon | ||