diff options
author | Case Duckworth | 2024-05-30 12:47:11 -0500 |
---|---|---|
committer | Case Duckworth | 2024-05-30 12:47:11 -0500 |
commit | 22bc1e1879da0d99e5e1d79b10742b8cc9fd0521 (patch) | |
tree | cd813c6d8bfeebe83901b2d749ce97f1231dd547 /xautostart | |
download | dots-22bc1e1879da0d99e5e1d79b10742b8cc9fd0521.tar.gz dots-22bc1e1879da0d99e5e1d79b10742b8cc9fd0521.zip |
Initial commit
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 | ||