Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/configs/releng/airootfs/etc
diff options
context:
space:
mode:
authorAlexander Epaneshnikov <aarnaarn2@gmail.com>2022-03-29 18:24:16 +0300
committerAlexander Epaneshnikov <aarnaarn2@gmail.com>2022-03-29 19:31:14 +0300
commitcec14d8b50f55fd077550f57988de41b0e1b4d63 (patch)
treeb1fe340dbf08125cf2c83b232accc6af8bcc55be /configs/releng/airootfs/etc
parente5bdf0c6ab960a351353f97981a0f2151c3f1b93 (diff)
add needed files
this fixes #167
Diffstat (limited to 'configs/releng/airootfs/etc')
-rw-r--r--configs/releng/airootfs/etc/systemd/system/pacmanbeeper.service13
l---------configs/releng/airootfs/etc/systemd/system/sound.target.wants/pacmanbeeper.service1
-rw-r--r--configs/releng/airootfs/etc/sysusers.d/beep.conf2
-rw-r--r--configs/releng/airootfs/etc/udev/rules.d/90-pcspkr-beep.rules2
4 files changed, 18 insertions, 0 deletions
diff --git a/configs/releng/airootfs/etc/systemd/system/pacmanbeeper.service b/configs/releng/airootfs/etc/systemd/system/pacmanbeeper.service
new file mode 100644
index 0000000..8a6a41e
--- /dev/null
+++ b/configs/releng/airootfs/etc/systemd/system/pacmanbeeper.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Play pacman tune
+# for playing alert tunes via the built-in PC speaker (KDMKTONE, KIOCSOUND)
+Wants=modprobe@pcspkr.service
+After=modprobe@pcspkr.service
+
+[Service]
+User=beep
+Type=oneshot
+ExecStart=/usr/local/bin/pacman-beep.sh
+
+[Install]
+WantedBy=sound.target
diff --git a/configs/releng/airootfs/etc/systemd/system/sound.target.wants/pacmanbeeper.service b/configs/releng/airootfs/etc/systemd/system/sound.target.wants/pacmanbeeper.service
new file mode 120000
index 0000000..fc5ade0
--- /dev/null
+++ b/configs/releng/airootfs/etc/systemd/system/sound.target.wants/pacmanbeeper.service
@@ -0,0 +1 @@
+../pacmanbeeper.service \ No newline at end of file
diff --git a/configs/releng/airootfs/etc/sysusers.d/beep.conf b/configs/releng/airootfs/etc/sysusers.d/beep.conf
new file mode 100644
index 0000000..c7d10ca
--- /dev/null
+++ b/configs/releng/airootfs/etc/sysusers.d/beep.conf
@@ -0,0 +1,2 @@
+#Type Name ID GECOS Home directory Shell
+u beep - beepuser - -
diff --git a/configs/releng/airootfs/etc/udev/rules.d/90-pcspkr-beep.rules b/configs/releng/airootfs/etc/udev/rules.d/90-pcspkr-beep.rules
new file mode 100644
index 0000000..12a3a61
--- /dev/null
+++ b/configs/releng/airootfs/etc/udev/rules.d/90-pcspkr-beep.rules
@@ -0,0 +1,2 @@
+# Add write access to the PC speaker for the "beep" group
+ACTION=="add", SUBSYSTEM=="input", ATTRS{name}=="PC Speaker", ENV{DEVNAME}!="", RUN+="/usr/bin/setfacl -m u:beep:w '$env{DEVNAME}'"