summaryrefslogtreecommitdiffstats
path: root/xcape
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-10-08 12:09:20 -0400
committerJesse Luehrs <doy@tozt.net>2023-10-08 12:59:10 -0400
commit49570c8dd03448240897b37b68567352b790f16f (patch)
tree6c192a52046d5d0dd1b84a838befd8e777cfeafb /xcape
parent66939c71da756c1d9e07a88a4a8ea2a018650060 (diff)
downloadconf-49570c8dd03448240897b37b68567352b790f16f.tar.gz
conf-49570c8dd03448240897b37b68567352b790f16f.zip
convert to stow
Diffstat (limited to 'xcape')
-rwxr-xr-xxcape/.services/available/xcape/log/run4
-rwxr-xr-xxcape/.services/available/xcape/run3
-rw-r--r--xcape/Makefile4
3 files changed, 11 insertions, 0 deletions
diff --git a/xcape/.services/available/xcape/log/run b/xcape/.services/available/xcape/log/run
new file mode 100755
index 0000000..06a11f4
--- /dev/null
+++ b/xcape/.services/available/xcape/log/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -eu
+
+exec multilog t s16777215 "$HOME/.log/xcape"
diff --git a/xcape/.services/available/xcape/run b/xcape/.services/available/xcape/run
new file mode 100755
index 0000000..42b65b5
--- /dev/null
+++ b/xcape/.services/available/xcape/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec xcape -d -e 'Control_L=Escape;Control_R=Escape' >/dev/null 2>&1
diff --git a/xcape/Makefile b/xcape/Makefile
new file mode 100644
index 0000000..2a3718f
--- /dev/null
+++ b/xcape/Makefile
@@ -0,0 +1,4 @@
+include ../Makefile.include
+
+install: $(HOME)/.services/enabled/xcape
+ @mkdir -p $(HOME)/.log/xcape