Skip to content

Commit 8547f6a

Browse files
Merge pull request #125 from Githubguy132010/fix-issue-118-additional-systemd-services
Add additional systemd services for complete beep silencing
2 parents e9cdfe9 + 408d918 commit 8547f6a

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
# Disable X11 bell
3+
# This script runs when X11 sessions start
4+
# Part of the Arch Linux without beeps project
5+
6+
if [ -x /usr/bin/xset ]; then
7+
/usr/bin/xset -b
8+
fi
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Disable keyboard bell in X11
2+
# Part of the Arch Linux without beeps project
3+
4+
Section "InputClass"
5+
Identifier "Keyboard Defaults"
6+
MatchIsKeyboard "yes"
7+
Option "BellTypeSoundOff" "1"
8+
EndSection
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Unit]
2+
Description=Disable virtual console beeps
3+
Documentation=https://github.com/Githubguy132010/Arch-Linux-without-the-beeps
4+
After=multi-user.target
5+
6+
[Service]
7+
Type=oneshot
8+
RemainAfterExit=yes
9+
# Disable console beeps for all virtual terminals
10+
ExecStart=/usr/bin/bash -c 'for tty in /dev/tty[0-9]*; do if [ -w "$tty" ]; then setterm -blength 0 > $tty; fi; done'
11+
12+
[Install]
13+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)