XFCE - slock and xfce4-screensaver

Technical issues/questions of an intermediate or advanced nature.
donald
Full of knowledge
Full of knowledge
Posts: 2073
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

XFCE - slock and xfce4-screensaver

Post#1 by donald » 21 Oct 2022, 13:33

Rava wrote:
21 Oct 2022, 03:00
Another question:
xflock4 is also part of my XFCE 4.16 setup as "Super + L" but when I press that nothing is happening
....because the xlock binary has been stripped out.
This binary can be found in 3.2.2 and if you add it - and 5 or 7 links/libs - it will run in port5
xfce 4.16 - tested.
There could be a slack-package for this - I don't know - I just took what I had at hand.

Btw:
If you have a port 3.2.2 running, copy the xlock binary to ~/whatever and run ./xlock -help, you will be surprised by what this binary has inside. Hint: over 20 screensaver.

User avatar
Rava
Contributor
Contributor
Posts: 5416
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

XFCE - How does one assign keyboard shortcut to .desktop or to command?

Post#2 by Rava » 21 Oct 2022, 15:49

donald wrote:
21 Oct 2022, 13:33
If you have a port 3.2.2 running, copy the xlock binary to ~/whatever and run ./xlock -help, you will be surprised by what this binary has inside. Hint: over 20 screensaver.
I presume by that alone many people would like to have a running xlock in Port 5.0… Just a guess, though. :)

And no, no Port 4.0x86-64 or 3.2.2 running; currently my one other x86-64 capable PC is broken due to a damaged graphics card, and the other machine (that is hopefully in working conditions) is still 450 km away.
Cheers!
Yours Rava

donald
Full of knowledge
Full of knowledge
Posts: 2073
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

XFCE - How does one assign keyboard shortcut to .desktop or to command?

Post#3 by donald » 21 Oct 2022, 19:32

xlockmore-5.68-x86_64-1.txz is the missing package in port5 xfce 4.16
Download:
http://mirrors.slackware.com/slackware/ ... 6_64-1.txz
strip things like 'doc' etc. out if you like before making a module.
After activation the default Super+L now lock the screen.
/usr/bin/xflock4 defaults to "xlock -mode blank" try for Example "xlock -mode rain" to get
raindrops while the screen is locked.
There are many more options to make it prettier, see xlock -help

User avatar
Rava
Contributor
Contributor
Posts: 5416
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

XFCE - How does one assign keyboard shortcut to .desktop or to command?

Post#4 by Rava » 21 Oct 2022, 20:56

^
Well, for now Super+L turns my screen to the left. :D (And Super+N back to normal)
But I will download it and dry-run it - meaning not via Super+L but by starting it from a terminal, looking through all its settings first.

Added in 5 minutes 59 seconds:
I guess I see why it was stripped from standard Porteus, 1.18 MB is quite large for only screen locking.
But I presume it's size is mainly because of the 20 screensavers.
Cheers!
Yours Rava

donald
Full of knowledge
Full of knowledge
Posts: 2073
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

XFCE - How does one assign keyboard shortcut to .desktop or to command?

Post#5 by donald » 22 Oct 2022, 13:09

Rava wrote:
21 Oct 2022, 21:02
..... 1.18 MB is quite large for only screen locking.
So you want something smaller,right?
Here we go:
Download slock-1.4-x86_64-1_slonly.txz from slackonly > extract the *.txz > copy the binary (23kB)
into /usr/bin/ .....done.
Now the default 'Super+L' lock the screen -- define a different keyboard shortcut if you must.

How it works:
lock the screen = a blank screen, no input fields just a blank screen.
To unlock, type your Pw -- the screen will turn blue while typing -- hit enter.
If the Pw is wrong you get a red screen -- type the correct Pw and the screen is unlocked.

User avatar
AcnapyxoB
Samurai
Samurai
Posts: 191
Joined: 24 Dec 2014, 10:15
Distribution: Porteus 5.01
Location: Planet Earth

XFCE - How does one assign keyboard shortcut to .desktop or to command?

Post#6 by AcnapyxoB » 22 Oct 2022, 13:53

donald wrote:
22 Oct 2022, 13:09
So you want something smaller,right?
Here we go:
Download slock-1.4-x86_64-1_slonly.txz from slackonly > extract the *.txz > copy the binary (23kB)
Add to slock and xfce4-screensaver (~168KB module):
https://slackware.uk/slackware/slackwar ... 6_64-3.txz
and you'll get a beautiful lock screen plus screensaver !
screenshot: https://disk.yandex.com/i/4P1ylw38QinGxg
Porteus v5.01 KDE x86_64

User avatar
Rava
Contributor
Contributor
Posts: 5416
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

XFCE - How does one assign keyboard shortcut to .desktop or to command?

Post#7 by Rava » 23 Oct 2022, 18:15

AcnapyxoB wrote:
22 Oct 2022, 13:53
Add to slock and xfce4-screensaver (~168KB module):
https://slackware.uk/slackware/slackwar ... 6_64-3.txz
and you'll get a beautiful lock screen plus screensaver !
you mean, only the slock binary as described by donald above + your xfce4-screensaver-4.16.0-x86_64-3.txz = the login screen of your screenshot?
Cheers!
Yours Rava

User avatar
AcnapyxoB
Samurai
Samurai
Posts: 191
Joined: 24 Dec 2014, 10:15
Distribution: Porteus 5.01
Location: Planet Earth

XFCE - How does one assign keyboard shortcut to .desktop or to command?

Post#8 by AcnapyxoB » 23 Oct 2022, 18:18

Rava wrote:
23 Oct 2022, 18:15
you mean, only the slock binary as described by donald above + your xfce4-screensaver-4.16.0-x86_64-3.txz
Yes that's right (slock and xfce4-screensaver)
Porteus v5.01 KDE x86_64

User avatar
Rava
Contributor
Contributor
Posts: 5416
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

XFCE - How does one assign keyboard shortcut to .desktop or to command?

Post#9 by Rava » 23 Oct 2022, 18:37

AcnapyxoB wrote:
23 Oct 2022, 18:18
Yes that's right (slock and xfce4-screensaver)
But that again leaves me with the size of more than 2 MB…

I think I pass of have to figure out what to include from xfce4-screensaver to only have that neat login screen - and have only slock binary as described by donald.

For now I have this:

Code: Select all

guest@porteus:/Porteus_modules_sdb4/slock+xfce4-screensaver$ ls -o|cut -c 20-
  8792 2022-03-17 21:42 slock-1.4-x86_64-1_slonly.txz
254900 2021-02-13 14:53 xfce4-screensaver-4.16.0-x86_64-3.txz
quasi awaiting further inspiration. :Search:
Cheers!
Yours Rava

Post Reply