You are not logged in.
Hello,
I am currently using Xmonad with unclutter. I recently installed slock but I noticed that it doesn't play nice with unclutter. When locking, the screen will automatically unlock after a few seconds. Removing unclutter resolves the problem. I very much like both software and would like to use them in conjunction.
Does anyone have an idea on how to fix this?
Thanks
Last edited by The Stranger (2014-07-28 11:39:51)
Offline
I have had no problem with this combination for years. What arguments are you passing to unclutter and how do you run slock?
Offline
I am running unclutter from my xinitrc as follows: unclutter -grab &
And slock from my urxvt terminal: slock (I'm not aware of another way)
Perhaps there is a third variable at play?
Offline
I use:
unclutter -noevents -idle 3 &You could also experiment with the jitter option.
Offline
I usually don't use slock but a quick test of the combination with unclutter and xmonad worked fine for me.
EDIT: After invoking slock a couple of times it sometimes fails. Seems to be rather random. Sometimes it crashed unclutter producing this error message as I have started unclutter from terminal:
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 38 (X_QueryPointer)
Resource id in failed request: 0x2e00001
Serial number of failed request: 321301
Current serial number in output stream: 321301Last edited by dice (2014-07-28 07:29:48)
I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do. (Gune | Titan A.E.)
Offline
I've looked into the issue further and apparently the -grab option is the culprit. However I can't simply remove it because of a bug where xmonad would get stuck focusing on a single window, see this .
I have tried xmonad-utils as suggested in the mailing list but the cursor capture utility (hhp) is incompatible with slock, and the provided one (hslock) accepts any key combination to unlock and raises the error: "No user entry".
@jasonwryan: How have you managed to resolve the focus issue with xmonad? Or have you not experienced that problem?
@dice: What arguments are you passing to unclutter? Also what screen locking program are you using? I might have to use that in the end.
Thanks.
Offline
I can confirm that it is the grab option causing trouble because slock will not work when the grab option is used and slock is invoked while the cursor is hidden.
I normally use
unclutter -idle 4 I didn't have that focus issue so far. I don't know how to get my cursor outside of my screen border though
As I use lightDM I lock my screen with
dm-tool lockI put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do. (Gune | Titan A.E.)
Offline
@dice: Thanks, probably that problem does not happen in lightDM.
Anyway I have resorted to using Xscreensaver as a last resort (it's too bloated for my taste but whatever), it's the only one that works with unclutter -grab without issues. I'm leaving this thread open in case anyone has more ideas.
Offline
You could also use i3lock: that is quite minimal.
Offline
I have tried i3lock, sflock, xsecurelock, sxlock and xtrlock. All seem to suffer from the pointer grab issue.
Offline
I've found the reason why slock is failing(and thats probably the reason for sflock ans sxlock too as they're forks of slock):
slock immediately unlocks the screen if it is unable to grab the mouse pointer. unclutter with grab option already grabs it. Therefore slock can't grab it.
As a workaround it is possible to add an option to slock for disabling mouse grabbing. Don't know if this is good but I just tried it and it works:
Here is my repo on bitbucket
make install it and then invoke it with
<installpath-to-slock>slock -nomousegrabNOTE: I didn't change copyright statement and version and such stuff so it's not quite correct at the moment....just a quick hack ![]()
I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do. (Gune | Titan A.E.)
Offline
Cool!
I appreciate the trouble you went through to help me with this. Thanks a bunch.
Offline