-
 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  .- Knowledge Base  . 

screensaverpauser

   0.5  

Amarok Script

Score 70%
Link:  http://
Downloads:  1257
Submitted:  Apr 23 2005
Updated:  Apr 3 2007

Description:

pauses amarok on activating the kde screensaver

actually this alwyas works, if your screen is locked




Changelog:

Now even works with gnome, thanks again to scott!

Now works with 1.4.5 again, thanks to scottmuz77

Changed the things aalcock mentioned ;)




LicenseGPL
Send to a friend
Subscribe
Other  Apps  from hurra
Report inappropriate content



-

 nice worrk

 
 by hurra on: Apr 26 2005
 
Score 50%

Very nice ;)


Reply to this

-

 Heavy CPU use

 
 by aalcock on: May 10 2005
 
Score 50%

Very useful script - It works fine for me.

Two improvements:

  1. The "sleep 1" is a bit quick for a script, I've upped it to 5 seconds,
  2. There is a loop while the screen saver is on with no sleep at all. I changed mine to:



      b2=$(dcop kdesktop KScreensaverIface isBlanked)

      while [ $b2 = "true" ];

      do

            b2=$(dcop kdesktop KScreensaverIface isBlanked)

            sleep 2

      done


Reply to this

-

 Re: Heavy CPU use

 
 by hurra on: May 18 2005
 
Score 50%

Thanks, i made a new version, with the changes ;)


Reply to this

-

 Amarok 1.4.5 change

 
 by scottmuz77 on: Feb 12 2007
 
Score 50%

This script is great but it stopped
working for me when I upgraded
to amarok 1.4.5.

Replacing both occurences of
dcop amarok player pause
with
dcop amarok player playPause
fixes the problem.


Reply to this

-

 Re: Amarok 1.4.5 change

 
 by hurra on: Feb 15 2007
 
Score 50%

Thanks, i made a new version.


Reply to this

-

 Adding Gnome support

 
 by scottmuz77 on: Apr 2 2007
 
Score 50%

I've recently had to use Amarok
under Gnome.

I've updated the script to work with Gnome
which involved some slight refactoring.

Since amarok seems to popular with Gnome users I expect others would benefit from this.

Hurra if you are happy with this can you
check it still works in KDE as I don't have access to KDE.

Here it is inline as attachments don't seem to be supported (indentation seem to be lost also)
<<
#!/bin/bash

isScreenSaverBlanked () {
# Check if GNOME is running
if [ $GNOME_DESKTOP_SESSION_ID ]; then
isBlanked=$(dbus-send --reply-timeout=2000 --print-reply --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.GetActive 2>&1 | grep boolean | grep true)
if [ -n "$isBlanked" ];then
return 1
fi
else # assume KDE
if [ $(dcop kdesktop KScreensaverIface isBlanked) = "true" ];then
return 1
fi
fi

return 0
}

while [ true ];
do
isScreenSaverBlanked
if [ $? = 1 ];then

play_status=$(dcop amarok player status)

if [ $play_status = 2 ];then
$(dcop amarok player playPause)
fi

isScreenSaverBlanked
while [ $? = 1 ];
do
sleep 2
isScreenSaverBlanked
done

if [ $play_status = 2 ];then
$(dcop amarok player playPause)
fi

fi
sleep 5
done
>>


Reply to this

-

 kde4

 
 by webrat on: Aug 17 2009
 
Score 50%

to get the script working with kde4 and amarok 1.4 you need to change line 11 to
Quote:

if [ $(qdbus org.kde.krunner /ScreenSaver org.freedesktop.ScreenSaver.GetActive) = "true" ];then


As KDE4 is no more using DCOP the Script fails without the change.


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.