You are not logged in.

#1 2008-10-11 18:37:37

pappbox
Member
From: Norway
Registered: 2008-01-04
Posts: 42

Login sound

Hey, I want to set a login sound when I login to arch. (not when starting Xserver)

It would be cool using festival to say something like "Welcome" or whatever...

I've tryed google and the forum with no luck...
Thanks !

Last edited by pappbox (2008-10-12 16:19:31)

Offline

#2 2008-10-11 21:51:24

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: Login sound

It would depend on your DE/WM.

If you're using GNOME, try 'System -> Preferences -> Sound -> Login' (i think).

In KDE, I believe it's under 'Sound & Multimedia -> System Notifications'

In OpenBox it's a bit more complicated.
If you don't have it installed already, install sox.

pacman -S sox

Then add the following to your ~/.config/openbox/autostart.sh

play "/path/to/sound/file"&

Good luck! Let me know how those work, or if you are using a DE/WM that I didn't cover.


.:[My Blog] || [My GitHub]:.

Offline

#3 2008-10-11 22:27:37

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: Login sound

Ensure you have sox installed and add

play /my/greeting/sound

in your .bash_profile.

Offline

#4 2008-10-11 22:39:45

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: Login sound

sounds a lot like what i said... tongue


.:[My Blog] || [My GitHub]:.

Offline

#5 2008-10-12 13:03:22

farkus888
Member
Registered: 2007-10-31
Posts: 31

Re: Login sound

except that adding it to his .bash_profile will play it when he logs in from the command line. your method will have it play when he logs in graphically. not trying to put you down but worth noting the difference for the guy who asked the question. some of us login from from a prompt and start our WM/DM of choice from the shell, if you are one of those people pappbox, b-con's method is the one you want. if you always boot directly to a graphical desktop use ghost1227's method.

Offline

#6 2008-10-12 14:47:30

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: Login sound

Good point cool


.:[My Blog] || [My GitHub]:.

Offline

#7 2008-10-12 15:58:34

pappbox
Member
From: Norway
Registered: 2008-01-04
Posts: 42

Re: Login sound

Thanks you guys!
It solved my problem when I edited .bash_profiles smile

Offline

#8 2008-10-12 16:19:11

pappbox
Member
From: Norway
Registered: 2008-01-04
Posts: 42

Re: Login sound

Hmm, but now the sound plays of every time i start a terminal like urxvt. I only want it to play when I login in the commandline for the first time tongue

Offline

#9 2008-10-12 17:23:01

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: Login sound

pappbox wrote:

It solved my problem when I edited .bash_profiles smile

When you say ".bash_profiles" do you mean you added it to both ~/.bash_profile and ~/.bashrc?  If so, remove it from ~/.bashrc and leave it in ~/.bash_profile only.

If that's not the case, did you enable the loginShell option of urxvt?


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

#10 2008-10-12 23:41:05

pappbox
Member
From: Norway
Registered: 2008-01-04
Posts: 42

Re: Login sound

creslin wrote:
pappbox wrote:

It solved my problem when I edited .bash_profiles smile

When you say ".bash_profiles" do you mean you added it to both ~/.bash_profile and ~/.bashrc?  If so, remove it from ~/.bashrc and leave it in ~/.bash_profile only.

If that's not the case, did you enable the loginShell option of urxvt?

Ahh, thank you ! You saved me from a night of Googling wink

I had copied someone elses .Xdefaults so the option "loginshell" was set to true...

It also work if somebody log in with SSH smile

Last edited by pappbox (2008-10-12 23:41:27)

Offline

Board footer

Powered by FluxBB