Page 1 of 1

[Solved] enable caps and numlock on startup and prevent toggle

Posted: 27 Sep 2017, 09:54
by stefanv
Hi,

How can I enable CAPS en NUM lock on startup and prevent disabling them?

Thanks

enable caps and numlock on startup and prevent toggle

Posted: 27 Sep 2017, 13:15
by fanthom
Hi Stefan,

Please try this parameter:

Code: Select all

xdotool key Num_Lock Caps_Lock; setxkbmap -option caps:none; xmodmap -e 'keycode 77 ='
Thank you.

enable caps and numlock on startup and prevent toggle

Posted: 28 Sep 2017, 06:24
by stefanv
Hi,
Thanks for your swift response

Added this line to settings report, but result is not as expected:

num lock on, but still able to switch it on and off
caps lock off, still able to switch it on and off

Using kiosk 4.5

Any idea?
Brgds

enable caps and numlock on startup and prevent toggle

Posted: 28 Sep 2017, 06:52
by fanthom
Sorry - forgot to mention that you need to use 'run_command=' parameter:

Code: Select all

run_command=xdotool key Num_Lock Caps_Lock; setxkbmap -option caps:none; xmodmap -e 'keycode 77 ='
If your num lock is on by default then you need to remove 'Num_Lock' string from 'run_command=' otherwise it will be toggled.

enable caps and numlock on startup and prevent toggle

Posted: 28 Sep 2017, 07:08
by stefanv
Perfect! Works like a charm.
Thanks