diff options
author | root <root@ehjlap> | 2012-08-29 08:08:54 +0200 |
---|---|---|
committer | root <root@ehjlap> | 2012-08-29 08:08:54 +0200 |
commit | 24e06204467dc4d85409e277d34069b3e4452054 (patch) | |
tree | c2bbcd88485bec087b62e059a006503aa3ef7894 | |
parent | c8363c2b61fece6d9e51a1bdf263b9005330b14a (diff) |
Add shell profile and xsession snippets to kill hardware beeps.
-rw-r--r-- | X11/Xsession.d/90-kill-beep | 8 | ||||
-rw-r--r-- | profile.d/local-kill-beep.sh | 8 |
2 files changed, 16 insertions, 0 deletions
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: <http://www.debian-administration.org/articles/110> + +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: <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 |