-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (2) .- Knowledge Base  . 

sleepy (shutdown script)

   0.9.3  

Amarok 2.0 Script

Score 84%
sleepy (shutdown script)
zoom


Homepage:  Link
Downloads:  417
Submitted:  Oct 18 2009
Updated:  Aug 23 2010

Description:

Sleep script like the old Nightingale. At the moment sleepy supports suspend, hibernate, shutdown and stopping amarok.
Also supports to turn off the screen when enabled. This option will lock the screen and turn it off after 10 seconds.




Changelog:

0.9.3
Added dutch and czech translations
0.9.2
Made translations possible and added french translation
0.9.1
Fixed some typos (thanks bashlnx!)
0.9
- Use Hal now to suspend, hibernate and shutdown. This means (hopefully) that sleepy also works for users who don't have a full kde installation.
- Added the option to quit Amarok.
- There are 2 categories of actions now: General and Amarok actions, both can be set independly.
0.8.2
fixed the pause function before shutting down.
0.8.1
fixed a bug in turn the screen off.
0.8
added the option to turn off the screen.
0.7.1
support for stopping amarok
custom messages for each action
0.7
support for shutdown
0.6
support for suspend and hibernate
triggers are: time based, songs played, play stopped.




LicenseGPL
other(sleepy0.9.3)
Send to a friend
Subscribe
Other  Apps  from tmske
Report inappropriate content



-

 add Stop/Pause to triggers

 
 by bashlnx on: Oct 21 2009
 
Score 50%
bashlnxbashlnx
Arch Linux / KDE
Home

Hi, nice script but can you add "Amarok Stop" or "Amarok Pause" to triggers? :)
thanks


Reply to this

-

 Re: add Stop/Pause to triggers

 
 by bashlnx on: Oct 21 2009
 
Score 50%
bashlnxbashlnx
Arch Linux / KDE
Home

Done ^^

--- sleepy/action.js~ 2009-10-18 14:09:24.000000000 +0200
+++ sleepy/action.js 2009-10-21 02:21:18.214389001 +0200
@@ -58,6 +58,7 @@
this.suspend = suspend;
this.hibernate = hibernate;
this.shutdown = shutdown;
+ this.stop = stop;
this.execute = execute;
}

@@ -76,6 +77,11 @@
this.execute(shutdown);
}

+function stop(p) {
+ var stop = "Amarok.Engine.Stop(true)";
+ this.execute(stop);
+}
+
function execute(p) {
//print("execute:::");
//print(p);
--- sleepy/gui.js~ 2009-10-18 14:06:54.000000000 +0200
+++ sleepy/gui.js 2009-10-21 02:23:58.954369985 +0200
@@ -80,7 +80,11 @@
if (this.dialog.actionBox.action.currentIndex == 1) {
a = function() {x.action.hibernate();};
} else {
- a = function() {x.action.shutdown();};
+ if (this.dialog.actionBox.action.currentIndex == 2) {
+ a = function() {x.action.shutdown();};
+ } else {
+ a = function() {x.action.stop();};
+ }
}
}
this.track.setAction(a);
--- sleepy/gui.ui~ 2009-10-18 14:06:12.000000000 +0200
+++ sleepy/gui.ui 2009-10-21 02:16:29.954417689 +0200
@@ -215,6 +215,11 @@
<string>Shutdown</string>
</property>
</item>
+ <item>
+ <property name="text">
+ <string>Amarok Stop</string>
+ </property>
+ </item>
</widget>
</widget>
<widget class="QLabel" name="infoDisabled">


Reply to this

-

 Re: Re: add Stop/Pause to triggers

 
 by tmske on: Oct 21 2009
 
Score 50%

Thanks for the patch, I applied it with some minor changes.
I also added custom messages for each action.
If you have other requests you can always ask them and I'll see what I can do.


Reply to this

-

 Re: Re: Re: add Stop/Pause to triggers

 
 by bashlnx on: Oct 21 2009
 
Score 50%
bashlnxbashlnx
Arch Linux / KDE
Home

Thanks!


Reply to this

-

 Translation

 
 by pamputt on: Nov 8 2009
 
Score 50%

Do you plan to translate your script?


Reply to this

-

 Re: Translation

 
 by tmske on: Nov 9 2009
 
Score 50%

I have no idea how to do translations for a script, but I can take a look at it if you like. What translations do you want?


Reply to this

-

 Re: Re: Translation

 
 by pamputt on: Nov 9 2009
 
Score 50%

I am French, so I would like use this script in french. If you want, I can send you translation of your script by email.


Reply to this

-

 Re: Re: Re: Translation

 
 by tmske on: Nov 9 2009
 
Score 50%

Ok, I'll try to take a look at translations, but it probably won't be this week because I'm very busy at the moment. You can find my email on the homepage of sleepy.


Reply to this

-
.

 Re: Re: Re: Re: Translation

 
 by martosurf on: May 9 2010
 
Score 50%

Tell us when you're ready to add translations and I'll submit one for Español de Argentina (Castellano)


Reply to this

-

 Re: Re: Re: Re: Re: Translation

 
 by tmske on: Aug 23 2010
 
Score 50%

Added french translation, if you want, add some other translations and mail them to me.


Reply to this

-
.

 Re: Re: Re: Re: Re: Re: Translation

 
 by martosurf on: Aug 23 2010
 
Score 50%

Sure, but I need a template...



-

 Re: Re: Re: Re: Re: Re: Translation

 
 by tmske on: Aug 26 2010
 
Score 50%

You can find a template here: http://gitorious.org/sleepy/sleepy/trees/master/translations



-

 Hal is going deprecated

 
 by poomerang on: Sep 14 2011
 
Score 50%

Hi,
are you still mantaining this script?
It should be updated as hal is getting deprecated: it's no more in use in KDE 4.6 (so for instance Kubuntu 11.04 doesn't install hal) in Gnome and in Xfce 4.8.
Major distributions are planning to drop or have already dropped it (see http://wiki.debian.org/HALRemoval https://wiki.ubuntu.com/Halsectomy http://fedoraproject.org/wiki/Features/HalRemoval)

ConsoleKit might be a replacement but i'm not quite sure

Greetings, and thanks for the script anyways!


Reply to this

-

 Re: Hal is going deprecated

 
 by poomerang on: Sep 14 2011
 
Score 50%

consolekit should work at least for shutdown/restart, see http://www.freedesktop.org/software/ConsoleKit/doc/ConsoleKit.html#Manager

no clues about suspend/hibernate though


Reply to this

-

 Re: Re: Hal is going deprecated

 
 by poomerang on: Sep 14 2011
 
Score 50%

the solution for suspend/hibernate should be Upower http://upower.freedesktop.org/docs/UPower.html


Reply to this

-

 Re: Re: Re: Hal is going deprecated

 
 by poomerang on: Sep 15 2011
 
Score 50%

and my soliloquy ends (finally) with the patch needed:

--- action.js 2010-08-23 16:25:33.000000000 +0200
+++ action2.js 2011-09-15 12:19:23.932470146 +0200
@@ -27,17 +27,17 @@
}

function suspend() {
- var suspend = "qdbus --system org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Suspend 1";
+ var suspend = "qdbus --system org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend";
this.execute(suspend);
}

function hibernate() {
- var hibernate = "qdbus --system org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Hibernate";
+ var hibernate = "qdbus --system org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Hibernate";
this.execute(hibernate);
}

function shutdown() {
- var shutdown = "qdbus --system org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Shutdown";
+ var shutdown = "qdbus --system org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop";
this.execute(shutdown);
}


check to have consolekit and upower installed in order for this to work (this should be default in all "modern" distros)

cheers


Reply to this

-

 Enable by default

 
 by evilblade on: Mar 30 2014
 
Score 50%

Is there ANY way to make this script enabled automatically on amarok's startup? Please, I really need it :)


Reply to this

Add commentBack






-
-
Do you like or dislike Ubuntu Unity?
 Yes, unity is alien technology!
 It is less confusing than Gnome 3 default, shell.
 Granny thinks it is much more usable than Gnome 2
 Canonical is embarrasing itself with this split project
 Gnome 3 default shell is much better
 I dislike Unity, Gnome 3 default shell is alien technology!
 None of the above, I like the 2Gb for free and Apple alike behavior. Will post a comment instead

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.