File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 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 
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments