From 6c802d0ae4851d899432efc1fc431c699efe6bac Mon Sep 17 00:00:00 2001 From: Asmir A Date: Mon, 18 Mar 2024 19:37:46 +0100 Subject: [PATCH] systemd: add service --- makefile | 6 ++++++ zremap-start | 5 +++++ zremap.service | 13 +++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 makefile create mode 100755 zremap-start create mode 100644 zremap.service diff --git a/makefile b/makefile new file mode 100644 index 0000000..5b75523 --- /dev/null +++ b/makefile @@ -0,0 +1,6 @@ + +install: + cp ./zremap.service /etc/systemd/system + cp ./zremap-start /usr/local/bin + systemctl daemon-reload + systemctl enable zremap.service diff --git a/zremap-start b/zremap-start new file mode 100755 index 0000000..6482a01 --- /dev/null +++ b/zremap-start @@ -0,0 +1,5 @@ +#!/bin/sh +sleep 1 +zremap /dev/input/by-path/platform-i8042-serio-0-event-kbd + + diff --git a/zremap.service b/zremap.service new file mode 100644 index 0000000..0bd9d86 --- /dev/null +++ b/zremap.service @@ -0,0 +1,13 @@ +[Unit] +Description=zremap keyboard remapping service +After=system.slice sysinit.target basic.target systemd-journald.socket +Before=shutdown.target multi-user.target +StartLimitIntervalSec=0 + +[Service] +Type=simple +Restart=no +ExecStart=/usr/local/bin/zremap-start + +[Install] +WantedBy=multi-user.target