google / xsecurelock

X11 screen lock utility with security in mind
Apache License 2.0
863 stars 65 forks source link

toggle border & resize dialog from env vars #167

Open KebabLord opened 1 year ago

KebabLord commented 1 year ago

If a user wants to resize or toggle the border of the prompt dialog window for aesthetic purposes, he has to update the macros, edit the XDrawRectangle function and compile the source code. This commit passes this job to these two new environmental variables:

for example

export XSECURELOCK_BORDER_SIZE=60
export XSECURELOCK_SHOW_BORDER=1

dag3

export XSECURELOCK_BORDER_SIZE=12
export XSECURELOCK_SHOW_BORDER=

dag2

budRich commented 12 months ago

judging by the screenshots XSECURELOCK_BORDER_SIZE and XSECURELOCK_SHOW_BORDER seems to affect two different visual elements, border and "padding". imo XSECURELOCK_BORDER_SIZE should be called XSECURELOCK_PADDING.

Sweet wallpaper!