
Cronos (Shutdown script)
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
This script allows Amarok to shutdown your computer. Who does not like to fell asleep while listening music? We like it. Do you remember Nightingale? So this is Nightingale for Amarok 2. With cronos you could set when you want your computer to shutdown. Actually cronos supports two shutdown methods. Shutdown your computer after a period of time o after you have listened a concret amount of tracks.
11 years ago
Maybe you have tried cronos, but didn't work. That could be because file shutdown.sh must be executable.
You only need to do
[quote]chmod +x ~/.kde/share/apps/amarok/scripts/cronos/shutdown.sh[/quote]
11 years ago
Maybe you have tried cronos, but didn't work. That could be because file shutdown.sh must be executable.
You only need to do
[quote]chmod +x ~/.kde/share/apps/amarok/scripts/cronos/shutdown.sh[/quote]
TommyHLW
11 years ago
Report
TommyHLW
11 years ago
Report
shotokanroig
11 years ago
yes, you have to modify the shutdown.sh script. It seams that you cannot use ksmserver because it doesn't support that.
You could use hal instead, here is a page explaining how (http://linux-tipps.blogspot.com/2008/08/standbysuspend-to-ram-with-dbus-in-kde.html)
Report
TommyHLW
11 years ago
now I use the following commands
for hibernate:
qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Hibernate
for suspend:
qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Suspend
Report