OK, I am strange I know. I like to go to sleep listening to music, but I like to stop the music after a while too.
Because of this I run
sleep 20m; amarok -s; exit before get up from my seat.
This script allows you to shutdown/hibernate/suspend the PC after the N song or after N minutes. I love this!
EDIT: The author released 0.7.1 which include my patch.
Tags: arch linux, kde