Image 01
profile-image

KNCH

Egor K. , Germany
Amarok 1.x Scripts
Plasma Color Schemes
System Software
MouseSense

System Software 2 comments

by KNCH
Score 63.3%
Mar 07 2012
Added.. ;) - Mar 06 2012
SleepyKNCH

Amarok 1.x Scripts 2 comments

by KNCH
Score 58.0%
Jun 21 2011
You're welcome!

Well, I haven't done it because it was only changed for using without HAL, that isn't a real need for everyone who uses the script. And the GUI was changed (just a little bit though), that also wouldn't be useful for everyone.

Here is the patch for "action.js" for using the script without HAL:

Quote:

--- sleepy/action.js 2011-06-21 16:55:44.711041919 +0200
+++ sleepyKNCH/action.js 2011-06-21 03:58:55.242503560 +0200
@@ -12,6 +12,8 @@
//
//You should have received a copy of the GNU General Public License
//along with Amarok. If not, see <http://www.gnu.org/licenses/>.
+//
+// edited by KNCH

Importer.loadQtBinding( "qt.core" );

@@ -22,22 +24,22 @@
this.execute = execute;
this.pause = pause;
this.stop = stop;
- this.quit = quit;
- this.turnOffScreen = turnOffScreen;
+ this.quit = quit;
+ this.turnOffScreen = turnOffScreen;
}

function suspend() {
- var suspend = "qdbus --system org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Suspend 1";
+ var suspend = "qdbus org.freedesktop.PowerManagement /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.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 org.freedesktop.PowerManagement /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.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 org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout 1 2 2";
this.execute(shutdown);
}

- Jun 21 2011
Amarok

Audioplayers
by amarok

Score 77.0%
9   Jun 21 2011
sleepy (shutdown script)

Amarok 2.x Scripts
by tmske

Score 58.0%
9   Jun 21 2011
VK_search

Amarok 2.x Scripts
by alternativshik

Score 78.3%
9   Jun 20 2011
Cute Klava

Office Apps
by linuxoidoz

Score 63.3%
9   Apr 04 2011