Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions airootfs/etc/X11/xinit/xinitrc.d/50-no-bell.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
# Disable X11 bell
# This script runs when X11 sessions start
# Part of the Arch Linux without beeps project

if [ -x /usr/bin/xset ]; then
/usr/bin/xset -b
fi
8 changes: 8 additions & 0 deletions airootfs/etc/X11/xorg.conf.d/50-no-bell.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Disable keyboard bell in X11
# Part of the Arch Linux without beeps project

Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "BellTypeSoundOff" "1"
EndSection
13 changes: 13 additions & 0 deletions airootfs/etc/systemd/system/no-console-beep.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=Disable virtual console beeps
Documentation=https://github.com/Githubguy132010/Arch-Linux-without-the-beeps
After=multi-user.target

[Service]
Type=oneshot
RemainAfterExit=yes
# Disable console beeps for all virtual terminals
ExecStart=/usr/bin/bash -c 'for tty in /dev/tty[0-9]*; do if [ -w "$tty" ]; then setterm -blength 0 > $tty; fi; done'

[Install]
WantedBy=multi-user.target