summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-10 20:48:31 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-10 20:48:31 -0500
commite382a7ebb656db844f7f694af6aee747f188c957 (patch)
tree724c8a06f290882e4dc2a313f5bc67e39f81db15 /services
parent0ae35ecf116896001fafe1aa310c308ac5b06583 (diff)
downloadconf-e382a7ebb656db844f7f694af6aee747f188c957.tar.gz
conf-e382a7ebb656db844f7f694af6aee747f188c957.zip
reconfigure my keyboard whenever it gets plugged in or unplugged
Diffstat (limited to 'services')
-rwxr-xr-xservices/available/watch-kbd/log/run3
-rwxr-xr-xservices/available/watch-kbd/run5
2 files changed, 8 insertions, 0 deletions
diff --git a/services/available/watch-kbd/log/run b/services/available/watch-kbd/log/run
new file mode 100755
index 0000000..41c1a23
--- /dev/null
+++ b/services/available/watch-kbd/log/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec multilog t s16777215 $HOME/.log/watch-kbd
diff --git a/services/available/watch-kbd/run b/services/available/watch-kbd/run
new file mode 100755
index 0000000..10816ec
--- /dev/null
+++ b/services/available/watch-kbd/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -eu
+set -o pipefail
+
+exec watch-kbd