Using setxkbmap to disabple CapsLock [closed]

asked 2015-03-13 15:26:54 +0000

GCoda gravatar image

updated 2015-03-14 19:34:34 +0000

I am using this line to disable normal CapsLock behavior. It just refuses to work without sleep command in front of it.

exec_always --no-startup-id "sleep 1; setxkbmap -option caps:none"

i tried putting this line in /etc/X11/xinit/xinitrc with same results, my system ignoring it while loading.

Maybe there is proper way to do this?

EDIT: @Adaephon right, it is problem with gnome-settings-daemon, i can not close this question

edit retag flag offensive reopen merge delete

Closed for the following reason too localized by Adaephon
close date 2015-03-16 08:36:21.268899


Is it possible that the keyboard is modified by another automatically started command? Another call to `setxkbmap`, `gnome-settings-daemon` or something similar?

Adaephon gravatar imageAdaephon ( 2015-03-13 16:23:02 +0000 )edit

@Adaephon thanks, it is indeed `gnome-settings-daemon`, used it for screenshots only. You got some serious psychic powers.

GCoda gravatar imageGCoda ( 2015-03-14 19:32:05 +0000 )edit

It should be possible to disable CapsLock from within the Gnome settings. It *could* be possible to disencourage `gnome-settings-daemon` from changing anything keyboard related. Maybe disabling CapsLock directly in the Xorg configuration would work.

Adaephon gravatar imageAdaephon ( 2015-03-16 09:38:31 +0000 )edit