Terminal Command Line to Disable Caps Lock?

Discussion in 'macOS' started by mrotsliah, Apr 10, 2017.

  1. mrotsliah macrumors newbie

    Joined:
    Jul 6, 2009
    #1
    I would like a to turn off the caps lock via the command.

    I understand that I can System Preferences > Keyboard > Modifier Keys > and change it there.

    The problems is that every time I plug and unplug my gaming mouse into the USB port, the keyboard caps lock is reset, and I have to do the above steps again and again. (Somehow, my Mac is sensing the gaming mouse as another keyboard.

    If I had some command line code, I could just make an alias and disable the caps lock in one step.

    I thank you for any help.
     
  2. DeltaMac macrumors 604

    DeltaMac

    Joined:
    Jul 30, 2003
    Location:
    Delaware
    #2
    Does it work if you disable caps lock (in Modifier Keys setting) WHILE the gaming mouse is connected?
    That is, does your system remember that setting the next time you connect the mouse?
     
  3. mrotsliah thread starter macrumors newbie

    Joined:
    Jul 6, 2009
    #3
    I can disable caps lock if I go through System Preferences, but every time I connect (or disconnect) the mouse, caps lock is reset. I have to go disable it again.
     
  4. DeltaMac macrumors 604

    DeltaMac

    Joined:
    Jul 30, 2003
    Location:
    Delaware
    #4
    [couple of random thoughts]
    Leave the gaming mouse connected. :D

    Try Karabiner for Mac. That should do exactly what you want.
     

Share This Page