You are not logged in.
Pages: 1
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
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.
Offline
Ensure you have sox installed and add
play /my/greeting/sound
in your .bash_profile.
Offline
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
Thanks you guys!
It solved my problem when I edited .bash_profiles
Offline
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
Offline
It solved my problem when I edited .bash_profiles
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
pappbox wrote:It solved my problem when I edited .bash_profiles
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
I had copied someone elses .Xdefaults so the option "loginshell" was set to true...
It also work if somebody log in with SSH
Last edited by pappbox (2008-10-12 23:41:27)
Offline
Pages: 1