I need a sound to play when I shutdown. In Kubuntu, there's shutdown sound. But Ubuntu, not anymore
|
|
The "most simple" way would be to automate this process with a small bash script. First, you need to take care of some dependencies by installing the
Next, you have to create the actual script that'll play the shutdown sound: (hint, you can replace
here's the content of the script: #!/bin/sh ## play shutdown sound /usr/bin/mpg123 /path/to/your/shutdown.mp3 make it executable:
Now you have to create a link from this script to
And now you have a shutdown sound. Just make sure you're not going to play a 5 minute mp3 file, since the system won't halt until it finishes streaming the file. |
|||
|
|
|
What I used to do is have a file on my desktop called "Startup.sh" that would run a list of programs I like on startup. I discovered that when the last command in the list is playing a sound with mplayer it will do it right before shutdown OR logout. So, you need to download mplayer first:
Then, make a file called "Startup.sh" on your desktop. The text of the file should read something like this:
You just have to click that file every time you log in. You can add other startup programs you want to the script as well. |
|||
|
|
