summaryrefslogtreecommitdiffstats
path: root/laptop
diff options
context:
space:
mode:
Diffstat (limited to 'laptop')
-rw-r--r--laptop/.config/systemd/user/watch-kbd.service6
-rw-r--r--laptop/Makefile9
2 files changed, 15 insertions, 0 deletions
diff --git a/laptop/.config/systemd/user/watch-kbd.service b/laptop/.config/systemd/user/watch-kbd.service
new file mode 100644
index 0000000..415d8fb
--- /dev/null
+++ b/laptop/.config/systemd/user/watch-kbd.service
@@ -0,0 +1,6 @@
+[Service]
+ExecStart=%h/.bin/%H/watch-kbd
+Restart=always
+
+[Install]
+WantedBy=default.target
diff --git a/laptop/Makefile b/laptop/Makefile
new file mode 100644
index 0000000..a16e3bc
--- /dev/null
+++ b/laptop/Makefile
@@ -0,0 +1,9 @@
+include ../Makefile.include
+
+install:
+ @systemctl --user enable watch-kbd
+ @systemctl --user start watch-kbd
+
+uninstall:
+ @systemctl --user stop watch-kbd
+ @systemctl --user disable watch-kbd