index : archiso32 | |
Archlinux32 iso tools | gitolite user |
summaryrefslogtreecommitdiff |
author | nl6720 <nl6720@gmail.com> | 2022-03-31 19:49:30 +0300 |
---|---|---|
committer | nl6720 <nl6720@gmail.com> | 2022-03-31 19:49:30 +0300 |
commit | b5011af3f4ac63214fdecef442550cce5ae4a971 (patch) | |
tree | 85bdd594a46546f2426ed8ce0fbadd26089b9e23 /configs/releng/airootfs | |
parent | 07d8035624cff64e28f1148ddec9e970e26173da (diff) | |
parent | cec14d8b50f55fd077550f57988de41b0e1b4d63 (diff) |
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}'" diff --git a/configs/releng/airootfs/usr/local/bin/pacman-beep.sh b/configs/releng/airootfs/usr/local/bin/pacman-beep.sh new file mode 100755 index 0000000..8bc1199 --- /dev/null +++ b/configs/releng/airootfs/usr/local/bin/pacman-beep.sh @@ -0,0 +1,3 @@ +#!/bin/sh +# I think I converted this from a wav using https://github.com/tomas-teijeiro/wavtobeep +beep -l 100 -f 15804.2656402 -n -l 25 -f 19.4454364826 -n -l 25 -f 123.470825314 -n -l 50 -f 554.365261954 -n -l 75 -f 138.591315488 -n -l 75 -f 1108.73052391 -n -l 50 -f 19.4454364826 -n -l 75 -f 783.990871963 -n -l 50 -f 19.4454364826 -n -l 75 -f 698.456462866 -n -l 50 -f 195.997717991 -n -l 25 -f 184.997211356 -n -l 50 -f 1108.73052391 -n -l 75 -f 783.990871963 -n -l 100 -f 138.591315488 -n -l 25 -f 155.563491861 -n -l 150 -f 698.456462866 -n -l 125 -f 195.997717991 -n -l 50 -f 554.365261954 -n -l 25 -f 587.329535835 -n -l 50 -f 138.591315488 -n -l 75 -f 1108.73052391 -n -l 50 -f 19.4454364826 -n -l 75 -f 880.0 -n -l 25 -f 38.8908729653 -n -l 25 -f 19.4454364826 -n -l 75 -f 739.988845423 -n -l 75 -f 220.0 -n -l 75 -f 1108.73052391 -n -l 50 -f 880.0 -n -l 25 -f 19.4454364826 -n -l 75 -f 138.591315488 -n -l 25 -f 123.470825314 -n -l 150 -f 739.988845423 -n -l 125 -f 220.0 -n -l 75 -f 554.365261954 -n -l 50 -f 138.591315488 -n -l 75 -f 1108.73052391 -n -l 25 -f 1046.5022612 -n -l 25 -f 1108.73052391 -n -l 25 -f 19.4454364826 -n -l 50 -f 783.990871963 -n -l 25 -f 830.60939516 -n -l 25 -f 19.4454364826 -n -l 25 -f 622.253967444 -n -l 75 -f 698.456462866 -n -l 50 -f 195.997717991 -n -l 25 -f 155.563491861 -n -l 50 -f 1108.73052391 -n -l 75 -f 783.990871963 -n -l 100 -f 138.591315488 -n -l 25 -f 19.4454364826 -n -l 125 -f 698.456462866 -n -l 150 -f 195.997717991 -n -l 50 -f 622.253967444 -n -l 75 -f 698.456462866 -n -l 75 -f 739.988845423 -n -l 25 -f 19.4454364826 -n -l 25 -f 38.8908729653 -n -l 125 -f 739.988845423 -n -l 100 -f 783.990871963 -n -l 25 -f 19.4454364826 -n -l 75 -f 783.990871963 -n -l 150 -f 880.0 -n -l 50 -f 19.4454364826 -n -l 125 -f 1108.73052391 -n -l 75 -f 261.625565301 -n -l 25 -f 277.182630977 -n -l 25 -f 261.625565301 |