summaryrefslogtreecommitdiff
path: root/xmonad/single-startup.sh
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2019-05-26 22:41:06 +0200
committerMiguel <m.i@gmx.at>2019-05-26 22:41:06 +0200
commit533d9d859d8c47832233b5241eb21c79a00502e4 (patch)
treedcea5b948ea2dd624dd2c15778cbc8b47b4e2581 /xmonad/single-startup.sh
parent15a411ba2b8723b279f4f66a36ee6255d4e298e5 (diff)
added some x stuff
Diffstat (limited to 'xmonad/single-startup.sh')
-rwxr-xr-xxmonad/single-startup.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/xmonad/single-startup.sh b/xmonad/single-startup.sh
new file mode 100755
index 0000000..19053ca
--- /dev/null
+++ b/xmonad/single-startup.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+if pgrep -x $1
+then
+ echo "process $1 already running! bailing out..."
+else
+ #. /home/miguel/.bashrc
+ export NNTPSERVER="nntp.aioe.org" # we need this for slrn (can not source from .bashrc?)
+ #echo server = $NNTPSERVER
+ echo "start process $1 ..."
+ eval $1
+fi
+