Cronos (Shutdown script)

Amarok 2.x Scripts

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

1
5.0
Description:

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.
Last changelog:

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

are u going to add hibernate and suspend in your script?

Report

TommyHLW

11 years ago

I have just to change "shutdown.sh", right?

Report

C

shotokanroig

11 years ago

Hi!,

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

this code didn't work

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

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]

12345678910
Be the first to comment
TijoloAzul
Feb 02 2010
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.1
updated Sep 24 2009
added Sep 24 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0
System Tags addon