Ask Your Question

I need the command to kill caps locks

asked 2017-12-17 22:07:41 -0500

toddandmargo gravatar image

Hi All,

I hate the accursed cap lock key! I just up graded from Scientific Linux 7.4 to FC27. My cap lock killer script now longer works.

What is code to disable the stinker?

Many thanks, -T

edit retag flag offensive close merge delete


Terminal only system ? or using X ?

Rabin gravatar imageRabin ( 2017-12-18 00:31:17 -0500 )edit

I am running Xfce 4.12

toddandmargo gravatar imagetoddandmargo ( 2017-12-18 02:24:14 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-12-18 15:15:23 -0500

ssieb gravatar image

Using the gnome-tweak-tool, you can disable the Caps Lock key, but I expect that won't do anything in XFCE.

You can run xmodmap -e 'keycode 66 = NoSymbol' each time you start X or you oould make a startup script, but I don't know how to do that with XFCE.

edit flag offensive delete link more


Thank you! M cap lock killer started working agiana. Hmmmmmm. Maybe it was afraid of you!

# cat DisableCaplock

setxkbmap -layout "$(setxkbmap -print | awk -F + '/xkb_symbols/ {print $2}')" -option ctrl:nocaps
toddandmargo gravatar imagetoddandmargo ( 2017-12-18 19:31:22 -0500 )edit

Question Tools

1 follower


Asked: 2017-12-17 22:07:41 -0500

Seen: 532 times

Last updated: Dec 18 '17