You are not logged in.

#1 2016-02-08 16:16:09

AL13N
Member
Registered: 2015-10-05
Posts: 170

Lock Screen without light-locker (slock + xset)

I'm running BunsenLabs 8.3 with automatic login and startx.  This caused Lock Screen, via both openbox menu and keybindings, to stop working.

To solve this I'm using slock and xset.

BunsenLabs comes with suckless-tools so no need to install.  Just create a script, make it executable and bind to menu and keys.

New script at /usr/bin/bl-slock:

#!/bin/bash
#
# Type password to unlock (no prompt).

sleep 1; xset dpms force off && slock

Make executable:

sudo chmod +x /usr/bin/bl-slock

Open menu.xml and rc.xml (Menu > Preferences > Openbox) and change "bl-lock" to "bl-slock".  In Geany use Replace (Crtl+H) to save time.

Result:  A working screen locker that also turns off the screen and won't be affected by updates (to bunsen-utilities).

Source:  superuser.com/questions/374637

Offline

#2 2016-02-08 16:26:16

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,073
Website

Re: Lock Screen without light-locker (slock + xset)

Nice! Thanks for this smile

Off topic:

Is that working OK for you?

I had a similar guide here but I deleted it because some of the session permissions were b0rked (no gvfs automounting) without LightDM initialising the X server.

Offline

#3 2016-02-08 16:55:08

AL13N
Member
Registered: 2015-10-05
Posts: 170

Re: Lock Screen without light-locker (slock + xset)

^ Thanks, it was your guide on here that I followed.

I also purged light-locker lightdm lightdm-gtk-greeter (and autoremoved liblightdm-gobject-1-0 libxklavier16).

Apart from the Lock Screen issue everything is behaving as usual.  For example, when plugging in a drive it's automatically mounted with a notification.

Offline

#4 2016-02-08 17:17:55

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: Lock Screen without light-locker (slock + xset)

when you say xset, does that mean you aren't using xscreensaver at all? why not purge that, too.
always a step closer to lightweightness.
and if it's not a laptop, you don't really need the xfce powermanager, either...

Offline

#5 2016-02-09 09:36:58

daggoth
Member
Registered: 2016-01-02
Posts: 26

Re: Lock Screen without light-locker (slock + xset)

Thank you for this! Now I can uninstall xscreensaver.

Offline

Board footer

Powered by FluxBB