aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2015-07-02 09:58:02 +0200
committerDuncaen <mail@duncano.de>2015-07-02 09:58:02 +0200
commitd60a9e37b960073911d4e1ede61c683175b59f4a (patch)
tree88ceb3cf7c5e87439dd364ba3797a359215f4b09
parentdb8fb2229b7082ee509c98d58f49666491ff58df (diff)
downloaddotfiles-d60a9e37b960073911d4e1ede61c683175b59f4a.tar.gz
add more service files
l---------service/ck-session1
l---------service/dwm1
-rwxr-xr-xsv/ck-session/check4
-rw-r--r--sv/ck-session/down0
-rwxr-xr-xsv/ck-session/finish3
-rwxr-xr-xsv/ck-session/run17
l---------sv/dwm/after/x1
-rw-r--r--sv/dwm/down0
-rw-r--r--sv/dwm/env/PWD1
-rwxr-xr-xsv/dwm/run6
l---------sv/statusbar/after/x1
-rwxr-xr-xsv/statusbar/run0
-rw-r--r--sv/unclutter/after/dwm0
-rwxr-xr-xsv/unclutter/run3
-rw-r--r--sv/x/after/ck-session0
-rw-r--r--sv/x/deps0
-rw-r--r--sv/x/env/DISPLAY1
-rw-r--r--sv/x/env/XAUTHORITY1
-rwxr-xr-xsv/x/run6
19 files changed, 46 insertions, 0 deletions
diff --git a/service/ck-session b/service/ck-session
new file mode 120000
index 0000000..1eb8309
--- /dev/null
+++ b/service/ck-session
@@ -0,0 +1 @@
+/home/duncan/sv/ck-session \ No newline at end of file
diff --git a/service/dwm b/service/dwm
new file mode 120000
index 0000000..73ae249
--- /dev/null
+++ b/service/dwm
@@ -0,0 +1 @@
+/home/duncan/sv/dwm \ No newline at end of file
diff --git a/sv/ck-session/check b/sv/ck-session/check
new file mode 100755
index 0000000..4092ae3
--- /dev/null
+++ b/sv/ck-session/check
@@ -0,0 +1,4 @@
+#!/bin/mksh
+
+[ ! -d "./env/" ] && exit 1
+exit 0
diff --git a/sv/ck-session/down b/sv/ck-session/down
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/sv/ck-session/down
diff --git a/sv/ck-session/finish b/sv/ck-session/finish
new file mode 100755
index 0000000..46bcf42
--- /dev/null
+++ b/sv/ck-session/finish
@@ -0,0 +1,3 @@
+#!/bin/mksh
+
+rm -rf ./env/
diff --git a/sv/ck-session/run b/sv/ck-session/run
new file mode 100755
index 0000000..9fea970
--- /dev/null
+++ b/sv/ck-session/run
@@ -0,0 +1,17 @@
+#!/bin/mksh
+
+[ -d "./env" ] && exit 1
+
+mkdir ./env
+
+save_env() {
+ while IFS= read -r var; do
+ echo "${var#*=}" >> "./env/${var%%=*}"
+ done
+}
+
+/usr/bin/ck-launch-session env \
+ | grep "XDG_SESSION_COOKIE\|XDG_RUNTIME_DIR" \
+ | save_env
+
+exec pause
diff --git a/sv/dwm/after/x b/sv/dwm/after/x
new file mode 120000
index 0000000..b63d97c
--- /dev/null
+++ b/sv/dwm/after/x
@@ -0,0 +1 @@
+/home/duncan/sv/x/ \ No newline at end of file
diff --git a/sv/dwm/down b/sv/dwm/down
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/sv/dwm/down
diff --git a/sv/dwm/env/PWD b/sv/dwm/env/PWD
new file mode 100644
index 0000000..31318f3
--- /dev/null
+++ b/sv/dwm/env/PWD
@@ -0,0 +1 @@
+/home/duncan
diff --git a/sv/dwm/run b/sv/dwm/run
new file mode 100755
index 0000000..93b3af5
--- /dev/null
+++ b/sv/dwm/run
@@ -0,0 +1,6 @@
+#!/bin/mksh
+
+~/bin/s deps "ck-session" "x" || exit 1
+
+exec 2>&1
+exec chpst -e ./env -e ../x/env -e ../ck-session/env dwm
diff --git a/sv/statusbar/after/x b/sv/statusbar/after/x
new file mode 120000
index 0000000..fb79940
--- /dev/null
+++ b/sv/statusbar/after/x
@@ -0,0 +1 @@
+../../x \ No newline at end of file
diff --git a/sv/statusbar/run b/sv/statusbar/run
new file mode 100755
index 0000000..e69de29
--- /dev/null
+++ b/sv/statusbar/run
diff --git a/sv/unclutter/after/dwm b/sv/unclutter/after/dwm
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/sv/unclutter/after/dwm
diff --git a/sv/unclutter/run b/sv/unclutter/run
new file mode 100755
index 0000000..90701ec
--- /dev/null
+++ b/sv/unclutter/run
@@ -0,0 +1,3 @@
+#!/usr/bin/mksh
+
+exec unclutter -noevents -root -visible -jitter 10 -idle 5
diff --git a/sv/x/after/ck-session b/sv/x/after/ck-session
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/sv/x/after/ck-session
diff --git a/sv/x/deps b/sv/x/deps
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/sv/x/deps
diff --git a/sv/x/env/DISPLAY b/sv/x/env/DISPLAY
new file mode 100644
index 0000000..16f4102
--- /dev/null
+++ b/sv/x/env/DISPLAY
@@ -0,0 +1 @@
+:0
diff --git a/sv/x/env/XAUTHORITY b/sv/x/env/XAUTHORITY
new file mode 100644
index 0000000..3661338
--- /dev/null
+++ b/sv/x/env/XAUTHORITY
@@ -0,0 +1 @@
+/home/duncan/.Xauthority
diff --git a/sv/x/run b/sv/x/run
new file mode 100755
index 0000000..7b236bf
--- /dev/null
+++ b/sv/x/run
@@ -0,0 +1,6 @@
+#!/usr/bin/mksh
+
+~/bin/s deps "ck-session" || exit 1
+
+exec 2>&1
+exec chpst -e ./env -e ../ck-session/env ~/bin/runx