Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
timrichardsonOffline
Post subject: force kde unlock dialog on a certain monitor  PostPosted: 05.01.2011, 01:54



Joined: 2010-09-12
Posts: 66
Location: Melbourne
Status: Offline
I have a dual screen setup. Sometimes my laptop is locked when I unplug it from the external monitor, then I move it somewhere else. Of course, I can't unlock it because the unlock dialog is displayed on the no-longer connected external monitor.

I have written a console script which unlocks my session, but a better workaround would be to force the unlock dialog to be on the laptop's display.

Once I'm unlocked, I have mapped a keyboard shortcut to a script which removes the dual display setup, which is very nice, but keyboard shortcuts don't work when the session is locked.

in case anyone is interested, below is the script (saved as 'unlockkde')
which unlock the session from a console.

      Code:

#!/bin/sh
# run as tim
export DISPLAY=:0
export XAUTHORITY=/home/tim/.Xauthority
qdbus org.kde.screenlocker /MainApplication quit
 
 View user's profile Send private message Visit poster's website Yahoo Messenger  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio