Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] How to ask password upon resume in Fluxbox + xlock
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
solamour
Guru
Guru


Joined: 21 Dec 2004
Posts: 504
Location: San Diego, CA

PostPosted: Thu Jan 17, 2013 4:25 pm    Post subject: [Solved] How to ask password upon resume in Fluxbox + xlock Reply with quote

When using Fluxbox and xlock, how do I ask for the password when the computer wakes up from either hibernation or suspend? It looks like when xlock is locking the screen, I have no way to initiate hibernation/suspend. And when I suspend without locking, the computer never asks for the password upon resuming.
__
sol


Last edited by solamour on Sun Jan 20, 2013 3:06 am; edited 1 time in total
Back to top
View user's profile Send private message
solamour
Guru
Guru


Joined: 21 Dec 2004
Posts: 504
Location: San Diego, CA

PostPosted: Sun Jan 20, 2013 3:06 am    Post subject: Reply with quote

I'm sure there must be a more tasteful way of doing it, but I'm going to settle with something simple; just map a hotkey (for my case, it's Mod4 + h) to xlock and hibernate commands. Basically I'm running xlock in the background before hibernating. When the computer wakes up, it's already locked.

Code:
~/.fluxbox/keys
Mod4 h  :Exec xlock & /usr/sbin/hibernate

__
sol
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum