Re: [dev] Keyboard language/layout used with slock
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 -- r...@sent.as Пн, 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
Re: [dev] Keyboard language/layout used with slock
Benjamin Chausse wrote: > My current best idea would be to used the failure-command patch > to switch my layout after 1 incorrect password... you could at least show your keyboard layout as slock message https://tools.suckless.org/slock/patches/message/ will not force slock to switch your layout but maybe gives you a hint how to type in your pwd. marko
Re: [dev] Keyboard language/layout used with slock
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