LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-20-2015, 02:41 PM   #1
addr7
LQ Newbie
 
Registered: Oct 2015
Posts: 2

Rep: Reputation: Disabled
Suspend on LXDM - Solved


Debian Jessie: installed LXDM and using Pekwm.

I wish to find LXDM's logout script and use the Suspend part only to hook to F5 so that I can press this and walk away without having the logout menu come up and then selecting Suspend.
Currently in Pekwm I have the following which all works fine but I would like the single key press for Suspend.
Code:
KeyPress = "F5" { Actions = "Exec /usr/bin/lxde-logout" }
	KeyPress = "F6" { Actions = "exit" }  
        Keypress = "F7" {Actions = "Exec systemctl reboot" }
        Keypress = "F8" {Actions = "Exec systemctl poweroff" }
I have just moved from Crunchbang where I did (with help) have this set up.

Last edited by addr7; 10-22-2015 at 10:43 AM. Reason: solved
 
Old 10-20-2015, 04:01 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
how did you have it set up in crunchbang? please show us.
right now i'm not totally sure what you want to accomplish, and which part is pekwm logout, and which part (if any) has to do with lxdm.
you know, lxde-logout has no direct connection to lxdm.

do you want to suspend when you press F5 inside a pure pekwm session? or is it an lxde session with pekwm as wm?

what distro are you using?
 
Old 10-22-2015, 10:42 AM   #3
addr7
LQ Newbie
 
Registered: Oct 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
It's Pekwm on LXDM Debian Jessie which is using systemd and I've just found the ridiculously easy answer:
Code:
systemctl suspend
 
Old 10-23-2015, 12:21 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
mark thread solved please!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXDM Bertman123 Slackware 3 04-04-2015 10:55 PM
Background for LXDM and in Fluxbox RAFAL Linux - Desktop 11 09-22-2013 02:31 AM
Unable to log in whith lxdm Fregido Bodhi 1 09-30-2012 09:50 AM
[SOLVED] Can't login after install of lxdm--no access to cli ubume2 Arch 1 06-12-2012 08:00 PM
LXDM just restart when I login (Arch Linux) MFserver Linux - Software 1 08-19-2011 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration