dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit d60a9e37b960073911d4e1ede61c683175b59f4a
parent db8fb2229b7082ee509c98d58f49666491ff58df
Author: Duncaen <mail@duncano.de>
Date:   Thu,  2 Jul 2015 09:58:02 +0200

add more service files

Diffstat:
service/ck-session | 2++
service/dwm | 2++
sv/ck-session/check | 4++++
sv/ck-session/down | 0
sv/ck-session/finish | 3+++
sv/ck-session/run | 17+++++++++++++++++
sv/dwm/after/x | 2++
sv/dwm/down | 0
sv/dwm/env/PWD | 1+
sv/dwm/run | 6++++++
sv/statusbar/after/x | 2++
sv/statusbar/run | 0
sv/unclutter/after/dwm | 0
sv/unclutter/run | 3+++
sv/x/after/ck-session | 0
sv/x/deps | 0
sv/x/env/DISPLAY | 1+
sv/x/env/XAUTHORITY | 1+
sv/x/run | 6++++++
19 files changed, 50 insertions(+), 0 deletions(-)

diff --git a/service/ck-session 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 @@ -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 @@ -0,0 +1,4 @@ +#!/bin/mksh + +[ ! -d "./env/" ] && exit 1 +exit 0 diff --git a/sv/ck-session/down b/sv/ck-session/down diff --git a/sv/ck-session/finish 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 @@ -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 @@ -0,0 +1 @@ +/home/duncan/sv/x/+ \ No newline at end of file diff --git a/sv/dwm/down b/sv/dwm/down diff --git a/sv/dwm/env/PWD b/sv/dwm/env/PWD @@ -0,0 +1 @@ +/home/duncan diff --git a/sv/dwm/run 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 @@ -0,0 +1 @@ +../../x+ \ No newline at end of file diff --git a/sv/statusbar/run b/sv/statusbar/run diff --git a/sv/unclutter/after/dwm b/sv/unclutter/after/dwm diff --git a/sv/unclutter/run 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 diff --git a/sv/x/deps b/sv/x/deps diff --git a/sv/x/env/DISPLAY b/sv/x/env/DISPLAY @@ -0,0 +1 @@ +:0 diff --git a/sv/x/env/XAUTHORITY b/sv/x/env/XAUTHORITY @@ -0,0 +1 @@ +/home/duncan/.Xauthority diff --git a/sv/x/run 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