Hi,
The setxkbmap changing the keyboard layouts settings, better to use the
xkb-switch program and run the slock as follows:
slock xkb-switch -s us
--
[email protected]
Пн, 05.09.2022 в 12:00 ssd писал(а):
> Hi,
>
> * Benjamin Chausse 2022-09-04 23:39
>>Is there an existing elegant way to force slock to only use a certaint
>>layout? My current best idea would be to used the failure-command patch
>>to switch my layout after 1 incorrect password but this feels somewhat
>>janky.
>
> slock man page says
>
> SYNOPSIS
> slock [-v] [cmd [arg ...]]
>
> DESCRIPTION
> slock is a simple X screen locker. If provided, cmd [arg ...] is
> executed after the screen has been locked.
>
> so, you probably can do something like
>
> slock setxkbmap -layout "us" -variant "intl-unicode"
>
> And I should probably do so, too, and remove some mental load. Thanks for
> making me think about it.
>
> cheers
> --s