You are not logged in.

#1 2015-02-19 01:08:39

gsingh93
Member
Registered: 2013-07-19
Posts: 96

[SOLVED] How to change bell sound with i3

When I was using GNOME3, I could type `echo -e '\a'` in the terminal and I would hear a bell sound. Normally this would be the loud and obnoxious PC speaker beep, but instead GNOME places it's own nice sound (I know where this sound is stored). I recently switched to i3, and now I have that loud PC speaker beep sound. How can I fix this?

If it's relevant at all, I was using pulseaudio with GNOME, because that was the default. When I switched to i3, I started using ALSA/amixer because I don't mind it and I was having issues with pulseaudio.

Last edited by gsingh93 (2015-02-20 07:45:37)

Offline

#2 2015-02-19 01:36:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVED] How to change bell sound with i3

I'm pretty sure* this is an option/feature of some terminal emulators.  What terminal are you now using?

* caveat: I never use that blasted bell.  On every install blacklisting the pcspkr module is the very first thing I do, even before installing vim (which I often say is the first thing I do).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-02-19 02:03:23

gsingh93
Member
Registered: 2013-07-19
Posts: 96

Re: [SOLVED] How to change bell sound with i3

Haha, I know I'm in the minority here when I say I like the sound, but it's not the default pcspkr sound, it's GNOME's glass.ogg or drip.ogg (somewhere in /usr/share/sounds, I don't remember off the top of my head). I'm using terminator (and I was using terminator when I was using GNOME as well, with the exact same settings). The "audible beep" setting is enabled in terminator, and with this setting enabled, one of those OGG sounds used to play, and now it plays the default pcspkr sound.

Offline

#4 2015-02-19 09:33:35

divansantana
Member
Registered: 2011-01-21
Posts: 117

Re: [SOLVED] How to change bell sound with i3

man i3
/bell

You'll see:

Sample xsession.

~/.xsession

# Disable bell
xset -b

That might work, haven't tried it.

Offline

#5 2015-02-19 10:07:49

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] How to change bell sound with i3

Apparently terminator is based on gnome-terminal. Maybe it still has some gnome-specific stuff, but this is only active when it's used in a gnome session? There doesn't seem to be a configuration option for this (unless it's some badly documented gconf thing).

This superuser answer indicates another way using pulseaudio; presumably that would work with any terminal emulator.

Offline

#6 2015-02-20 07:45:21

gsingh93
Member
Registered: 2013-07-19
Posts: 96

Re: [SOLVED] How to change bell sound with i3

Yea, that was it. I had to uncomment the following lines from /etc/pulse/default.pa:

load-sample-lazy x11-bell /usr/share/sounds/freedesktop/stereo/bell.oga
load-module module-x11-bell sample=x11-bell

Offline

Board footer

Powered by FluxBB