[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kdelirc/profiles
From:       Michael Zanetti <michael_zanetti () gmx ! net>
Date:       2010-02-28 23:44:54
Message-ID: 1267400694.145204.4703.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1097351 by mzanetti:

enhanced powermanagement profile


 M  +52 -4     powermanagement.profile.xml  


--- branches/work/kdelirc/profiles/powermanagement.profile.xml #1097350:1097351
@@ -6,7 +6,7 @@
     <author>Michael Zanetti</author>
     <description>Shutdown, suspend or reboot</description>
     <action id="suspend2Ram">
-        <name>To RAM</name>
+        <name>Suspend to RAM</name>
         <description>Suspends your computer to RAM</description>
         <prototype>
             <serviceName>org.kde.klauncher</serviceName>
@@ -32,7 +32,7 @@
         </prototype>
     </action>
     <action id="suspend2Disk">
-        <name>To disk</name>
+        <name>Suspend to disk</name>
         <description>Suspends your computer disk (hibernate)</description>
         <prototype>
             <serviceName>org.kde.klauncher</serviceName>
@@ -57,9 +57,57 @@
         </prototype>
     </action>
     
+    <action id="shutdown">
+        <name>Shutdown</name>
+        <description>Logout and shutdown your computer</description>
+        <prototype>                       
+            <serviceName>org.kde.ksmserver</serviceName>
+            <node>KSMServer</node>
+            <function>logout</function>
+            <arguments>
+                <argument type="int">
+                    <comment>Ask for confirmation? 1 = No, 2 = Yes</comment>
+                    <default>2</default>
+                </argument>
+                <argument type="int">
+                    <comment>Shutdown? 1 = Reboot, 2 = Halt, 3 = Logout</comment>
+                    <default>2</default>
+                </argument>
+                <argument type="int">
+                    <comment>When? 0 = When ready, 1 = Try now, 2 = Force now, 3 = Interactive</comment>
+                    <default>2</default>
+                </argument>
+            </arguments>
+        </prototype>
+    </action>
+
+    <action id="reboot">
+        <name>Reboot</name>
+        <description>Logout and restart your computer</description>
+        <prototype>                       
+            <serviceName>org.kde.ksmserver</serviceName>
+            <node>KSMServer</node>
+            <function>logout</function>
+            <arguments>
+                <argument type="int">
+                    <comment>Ask for confirmation? 1 = No, 2 = Yes</comment>
+                    <default>2</default>
+                </argument>
+                <argument type="int">
+                    <comment>Shutdown? 1 = Reboot, 2 = Halt, 3 = Logout</comment>
+                    <default>1</default>
+                </argument>
+                <argument type="int">
+                    <comment>When? 0 = When ready, 1 = Try now, 2 = Force now, 3 = Interactive</comment>
+                    <default>2</default>
+                </argument>
+            </arguments>
+        </prototype>
+    </action>
+
     <action id="logout">
         <name>Logout</name>
-        <description>Logout and shutdown or reboot your computer</description>
+        <description>Just log out</description>
         <prototype>                       
             <serviceName>org.kde.ksmserver</serviceName>
             <node>KSMServer</node>
@@ -71,7 +119,7 @@
                 </argument>
                 <argument type="int">
                     <comment>Shutdown? 1 = Reboot, 2 = Halt, 3 = Logout</comment>
-                    <default>2</default>
+                    <default>3</default>
                 </argument>
                 <argument type="int">
                     <comment>When? 0 = When ready, 1 = Try now, 2 = Force now, 3 = Interactive</comment>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic