Jump to content

Key Bindings for suspend???


frosterrj
 Share

Recommended Posts

I finally got my 9.1 system to actually go into suspend, but only by setting the time settings in KDE Control Center.

 

How can I find out the key combination, or create a key binding, to set the machine into suspend mode without waiting for the time set in Kcontrol?

 

thanks,

robert

Link to comment
Share on other sites

ok. I think this should work for you as well.

1. create a script file named 'suspend' or whatever ; something like

 

#! /bin/bash

apm -s

 

(you do need to suid root /usr/bin/apm in case you haven't done so already)

2. open kmenuedit and add an entry for this script. Kmenuedit also allows you to assign a shortcut key, say Win+S

 

Doing these two things works for me. Pressing Win+S calls up the suspend script which sends my computer into suspend mode.

 

I took the relevant instructions for step 2 from:

http://mandrakeusers.org/viewtopic.php?t=2308

 

cheers

 

[/CODE][CODE]

Link to comment
Share on other sites

Thanks for the reply.

 

I hadnt gotten a chance to come back and post my solution, which also works just as well:

 

Just right-click on the desktop, create link to applicaton, and in the execute section type: /usr/bin/apm -s, put a funky icon on it and now all I do is click on it from the desktop.

 

I'll check out the menu thing though, havent done that before.

 

 

Robert

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...