From 24e06204467dc4d85409e277d34069b3e4452054 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 29 Aug 2012 08:08:54 +0200 Subject: Add shell profile and xsession snippets to kill hardware beeps. --- X11/Xsession.d/90-kill-beep | 8 ++++++++ profile.d/local-kill-beep.sh | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 X11/Xsession.d/90-kill-beep create mode 100644 profile.d/local-kill-beep.sh diff --git a/X11/Xsession.d/90-kill-beep b/X11/Xsession.d/90-kill-beep new file mode 100644 index 0000000..c5e6db1 --- /dev/null +++ b/X11/Xsession.d/90-kill-beep @@ -0,0 +1,8 @@ +# Turn off hardware beep, or make them less annoying +# origin: + +if [ -e /etc/kill-beep ] || [ -e $HOME/.kill-beep ]; then + xset b off +else + xset b 10 100 50 +fi diff --git a/profile.d/local-kill-beep.sh b/profile.d/local-kill-beep.sh new file mode 100644 index 0000000..396d016 --- /dev/null +++ b/profile.d/local-kill-beep.sh @@ -0,0 +1,8 @@ +# Turn off hardware beep, or make them less annoying +# origin: + +if [ -e /etc/kill-beep ] || [ -e $HOME/.kill-beep ]; then + setterm -blength 0 +else + /bin/echo -e "\33[10;25]\33[11;10]" #bell: 25Hz 10ms +fi -- cgit v1.2.3