Closed TimsManter closed 6 years ago
Ability to set command to run in swaylock container just like solid color or image so the script wouldn't be mandatory,
What?
I'm not sure what you expect to come out of this ticket.
Ability to set command to run in swaylock container just like solid color or image so the script wouldn't be mandatory What?
Currently swaylock
behaves as a top layer to sway
workspace. swaylock
by itself renders two separate layers - background and indicator - it's possible to set color or image as a background layer but not a window like termite
. Such option would make many customization possibilities.
I'm not sure what you expect to come out of this ticket.
I introduced my hack to make something like xscreensaver
mixed with lock screen but in Wayland/Sway way and only thing I expect is opinion that it could be eventually implemented more natively in Sway later on in form of appearance settings in this or other way.
Currently swaylock behaves as a top layer to sway workspace. swaylock by itself renders two separate layers - background and indicator - it's possible to set color or image as a background layer but not a window like termite. Such option would make many customization possibilities.
This isn't going to happen.
I suggest you fork swaylock.
It's an use case of
swaylock
and an idea for little improvement to makeswaylock
more flexible.I've managed to personalize
swaylock
so it now works as animated lock screen. The way is to use custom script which creates floating window with specified title (termite
+cmatrix
in my case), next runsswaylock
with transparent color and at the end waits forswaylock
process to exit then kills floating window. Script by itself looks like so:And is controlled by
swayidle
inconfig
:The final result depends on:
cmatrix
and enables transparentswaylock
so nothing below is visible,Termite
is not getting fullscreen so the primary window is visible under transparentswaylock
(so it's still locked).I think there're at least two things that can be improved:
swaylock
container just like solid color or image so the script wouldn't be mandatory,cleared
indicator or set delay in seconds after indicator is hidden; current--no-unlock-indicator
is not a good solution.BTW: The setup above works on current
wlroots
version ofsway
from the latestmaster
branch.