summaryrefslogtreecommitdiff
path: root/profile.d
diff options
context:
space:
mode:
authorroot <root@ehjlap>2012-08-29 08:08:54 +0200
committerroot <root@ehjlap>2012-08-29 08:08:54 +0200
commit24e06204467dc4d85409e277d34069b3e4452054 (patch)
treec2bbcd88485bec087b62e059a006503aa3ef7894 /profile.d
parentc8363c2b61fece6d9e51a1bdf263b9005330b14a (diff)
Add shell profile and xsession snippets to kill hardware beeps.
Diffstat (limited to 'profile.d')
-rw-r--r--profile.d/local-kill-beep.sh8
1 files changed, 8 insertions, 0 deletions
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: <http://www.debian-administration.org/articles/110>
+
+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