Topic: Logout sound?

I had one with ubuntu, but now its gone in #!...is this on purpose? Is there a way to get it back?

Re: Logout sound?

It is on purpose, I believe the only sound in a standard #! installation is the 'crunch' at login.

You'll have to wait for someone more knowledgeable than me to tell you how to add a logout sound.

Re: Logout sound?

There is no logout sound provided with CrunchBang, except maybe the sound of silence as your system's fans shutoff! big_smile

You could maybe edit your GDM configuration files to included one?

Re: Logout sound?

corenominal wrote:

There is no logout sound provided with CrunchBang, except maybe the sound of silence as your system's fans shutoff! big_smile

I have a Dell Mini...I have no fans lol

Re: Logout sound?

You cannot win 'em all! lol

Re: Logout sound?

Is there a way to add a logout sound in openbox?

while ( ! ( succeed = try() ) );

Re: Logout sound?

I am not sure about this, as I have not tested it, but in theory it should be possible to string a few commands together like so:

play /path/to/logout.wav > /dev/null 2>&1 && gdm-control --shutdown && openbox --exit

^ would require sox package for audio playback.

Re: Logout sound?

If it's a wav file you can use aplay instead of play. It comes with alsa, so you've probably got it already.

John
------------------------
( a boring Japan blog , and idle twitterings )
“Good morning sir, which way up would you like your reality today?”  "As it comes, Jeeves, as it comes..."

Re: Logout sound?

If it's not a WAV file, it can be translittered into a WAV.  I just tried aplay in a terminal, and apparently it just needs the filename & path; it doesn't need any redirect at the end.

EDIT:  Here's what's working for me on my Mini.  The purple sounds are in #! by default (part of Pidgin I think?)

    # Shutdown
    def shutdown(self, widget):
        os.system("gdm-control --shutdown && openbox --exit && aplay /usr/share/sounds/purple/logout.wav")

I tried it with the aplay command at the front of the string, but that caused the logout dialog to hang on the screen until the logout sound had finished playing.  The way it's written above, the sound plays while the shutdown splash starts.  I suppose technically aplay should have a -q switch, but since it isn't running in a terminal...

Last edited by pvsage (2010-02-25 06:51:28)

while ( ! ( succeed = try() ) );

Re: Logout sound?

Install espeak and you can have a shutdown message

espeak "goodbye $(whoami)"

or something...
(Jaunty's espeak needs a bug workaround though: http://crunchbanglinux.org/forums/post/43321/#p43321 )

John
------------------------
( a boring Japan blog , and idle twitterings )
“Good morning sir, which way up would you like your reality today?”  "As it comes, Jeeves, as it comes..."