google / xsecurelock

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

XSECURELOCK_SHOW_KEYBOARD_LAYOUT Not Working #163

Open ghost opened 1 year ago

ghost commented 1 year ago

XSECURELOCK_SHOW_KEYBOARD_LAYOUT=0 or XSECURELOCK_SHOW_KEYBOARD_LAYOUT=-1 not working.

I still see;

Keyboard: English (US)
Press Ctrl-Tab to switch keyboard layout
ntippie commented 1 year ago

Are you building from source? (on Arch: xsecurelock-git and not xsecurelock)

The most recent release (1.8.0) does not have this feature.

joinemm commented 1 year ago

when will a new version with this feature be released?

ntippie commented 7 months ago

@divVerent Would it be possible to get a new release? Thank you for maintaining.

elandorr commented 3 months ago

1.9 is now in Debian testing FYI.

ki9us commented 2 months ago

A whole bunch of options are not working for me. I have them in ~/.xprofile. Some work, some don't:

# These work
export XSECURELOCK_SAVER=saver_xscreensaver
export XSECURELOCK_AUTH_FOREGROUND_COLOR=green
export XSECURELOCK_PASSWORD_PROMPT=kaomoji

# These do not work
export XSECURELOCK_SHOW_KEYBOARD_LAYOUT=false
export XSECURELOCK_SHOW_USERNAME=false
export XSECURELOCK_SHOW_HOSTNAME=false
export XSECURELOCK_BLANK_TIMEOUT=-1
export XSECURELOCK_BLANK_DPMS_STATE=on

I'm actually not sure if I'm putting the right options (false or False or 0 or no or nothanks?), or if they should be quoted or what.

ki9us commented 1 month ago

Ok, I looked through the source code and figured it out. All the booleans need to be integers 1 or 0. XSECURELOCK_BLANK_* doesn't work no matter what I try.

# These work now
export XSECURELOCK_SHOW_KEYBOARD_LAYOUT=0
export XSECURELOCK_SHOW_USERNAME=0
export XSECURELOCK_SHOW_HOSTNAME=0

# These still do not work
export XSECURELOCK_BLANK_TIMEOUT=-1
export XSECURELOCK_BLANK_DPMS_STATE="on"

So for me, XSECURELOCK_SHOW_KEYBOARD_LAYOUT=0 is working. I'm using the xsecurelock from aur, not xsecurelock-git.