diff options
author | Jesse Luehrs <doy@tozt.net> | 2024-02-23 00:33:20 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2024-02-23 00:33:20 -0500 |
commit | 0efe764fbff54f2735ece414f454c2e867d69038 (patch) | |
tree | 9f0140d1bdf8f79dfc8273c07127928a60caf5c7 | |
parent | d75c8ca206b72668fc54cf200767fce494d0b6aa (diff) | |
download | conf-0efe764fbff54f2735ece414f454c2e867d69038.tar.gz conf-0efe764fbff54f2735ece414f454c2e867d69038.zip |
convert xcape to systemd
-rw-r--r-- | xcape/.config/systemd/user/xcape.service | 5 | ||||
-rwxr-xr-x | xcape/.services/available/xcape/log/run | 4 | ||||
-rwxr-xr-x | xcape/.services/available/xcape/run | 3 | ||||
-rw-r--r-- | xcape/Makefile | 9 |
4 files changed, 12 insertions, 9 deletions
diff --git a/xcape/.config/systemd/user/xcape.service b/xcape/.config/systemd/user/xcape.service new file mode 100644 index 0000000..cb0827a --- /dev/null +++ b/xcape/.config/systemd/user/xcape.service @@ -0,0 +1,5 @@ +[Service] +ExecStart=xcape -d -e 'Control_L=Escape;Control_R=Escape' + +[Install] +WantedBy=default.target diff --git a/xcape/.services/available/xcape/log/run b/xcape/.services/available/xcape/log/run deleted file mode 100755 index 06a11f4..0000000 --- a/xcape/.services/available/xcape/log/run +++ /dev/null @@ -1,4 +0,0 @@ -#!/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 deleted file mode 100755 index 42b65b5..0000000 --- a/xcape/.services/available/xcape/run +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -exec xcape -d -e 'Control_L=Escape;Control_R=Escape' >/dev/null 2>&1 diff --git a/xcape/Makefile b/xcape/Makefile index 2a3718f..7d03634 100644 --- a/xcape/Makefile +++ b/xcape/Makefile @@ -1,4 +1,9 @@ include ../Makefile.include -install: $(HOME)/.services/enabled/xcape - @mkdir -p $(HOME)/.log/xcape +install: + @systemctl --user enable xcape + @systemctl --user start xcape + +uninstall: + @systemctl --user stop xcape + @systemctl --user disable xcape |