
Originally Posted by
hackson99
Another question: i want to add the logout sound event. How can i do? Hope you can give me an answer.
This one is a little tougher, but this should work.
1. Create a script to play the file:
Code:
gksudo mousepad /usr/local/bin/logout_sound
...with the following content:
Code:
canberra-gtk-play -V 0.1 -f </path/to/logout/sound/file> &
...change </path/to/logout/sound/file> to point to a valid sound file. Save and then make that file executable:
Code:
sudo chmod +x /path/to/logout/sound/file
2. Configure lightdm and enable the session-cleanup-script:
Code:
gksudo mousepad /etc/lightdm/lightdm.conf
...and add to the botton of the file:
Code:
session-cleanup-script=/usr/local/bin/logout_sound
...and save the file.
3. Logout and back in again to test.
Bookmarks