Results 1 to 7 of 7

Thread: Solution to remap (ie deactivate) Caps Lock in lubuntu

  1. #1
    Join Date
    Apr 2011
    Location
    Sweden
    Beans
    19
    Distro
    Lubuntu 13.10 Saucy Salamander

    Lightbulb Solution to remap (ie deactivate) Caps Lock in lubuntu

    Just thought I'd throw this up in the ether, took me a while to find this solution.

    Open up (lx)terminal and type in the one you want:
    # 1. Lubuntu Caps Lock -> Super
    Code:
    setxkbmap -option caps:super
    # 2. Left Control <-> Caps Lock
    Code:
    setxkbmap -option ctrl:swapcaps
    # 3. Caps Lock -> Control
    Code:
    setxkbmap -option ctrl:nocaps
    EDIT:

    Of course this doesn't get saved persistantly on reboot, so you have to run this for every boot.
    I've placed a script called "caps-killer.sh" in /usr/bin/caps-killer.sh and made it run on boot by running:

    gksudo leafpad /etc/xdg/lxsession/Lubuntu/autostart

    ...and inserted this at the end:

    Code:
    @/usr/bin/caps-killer.sh
    Kudos to a commenter on JJinuxLand.
    Last edited by elundmark; June 19th, 2011 at 04:31 PM. Reason: Forgot the important bit

  2. #2
    Join Date
    Nov 2010
    Beans
    5

    Re: Solution to remap (ie deactivate) Caps Lock in lubuntu

    These magic spells worked for me (Xubuntu 11.04).

    Googling for this info results in a great deal of legacy results that was helpful back in 2006 but is now just wrong.

  3. #3
    Join Date
    Aug 2011
    Beans
    10

    Re: Solution to remap (ie deactivate) Caps Lock in lubuntu

    Hi, I wanted to remap caps lock to escape and escape to caps lock. Here is how it works:

    file: 'swap-esc-caps'
    Code:
    ! Swap caps lock and escape
    remove Lock = Caps_Lock
    keysym Escape = Caps_Lock
    keysym Caps_Lock = Escape
    add Lock = Caps_Lock
    file: 'swap-esc-caps.sh'
    Code:
    xmodmap swap-esc-caps
    Last edited by Luz77; August 13th, 2011 at 05:41 PM.

  4. #4
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    6,028
    Distro
    Xubuntu 15.10 Wily Werewolf

    Re: Solution to remap (ie deactivate) Caps Lock in lubuntu

    Or to simply disable Caps Lock making it a dead key:
    Code:
    setxkbmap -option caps:none
    and to restore the default (re-enable it):
    Code:
    setxkbmap -option
    I'm still looking for a way to turn Caps Lock into a simple non-locking Shift key though.

  5. #5
    Join Date
    Oct 2009
    Location
    apt-get
    Beans
    4,274
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Solution to remap (ie deactivate) Caps Lock in lubuntu

    Quote Originally Posted by The Cog View Post
    Or to simply disable Caps Lock making it a dead key:
    Code:
    setxkbmap -option caps:none
    and to restore the default (re-enable it):
    Code:
    setxkbmap -option
    I'm still looking for a way to turn Caps Lock into a simple non-locking Shift key though.
    Sorry but may I ask what's the point?

  6. #6
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    6,028
    Distro
    Xubuntu 15.10 Wily Werewolf

    Re: Solution to remap (ie deactivate) Caps Lock in lubuntu

    The point is that all too often, I fumble the caps lock button AND END UP TYPING HALF A SENTENCE IN CAPITALS. Generally when I type an 'a' or use the shift key. If I were better at touch typing, I would spend more time looking at the screen instead of at the keyboard and would notice sooner, but I'm not. I prefer to simply disable caps lock, which I almost never use except by accident.

  7. #7
    Join Date
    Oct 2009
    Location
    apt-get
    Beans
    4,274
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Solution to remap (ie deactivate) Caps Lock in lubuntu

    Quote Originally Posted by The Cog View Post
    The point is that all too often, I fumble the caps lock button AND END UP TYPING HALF A SENTENCE IN CAPITALS. Generally when I type an 'a' or use the shift key. If I were better at touch typing, I would spend more time looking at the screen instead of at the keyboard and would notice sooner, but I'm not. I prefer to simply disable caps lock, which I almost never use except by accident.
    Oh, got it
    I'm actually too fast and I do use Touch Typing since 10 years maybe? so I don't have to worry about it. I just thought there is some other point that I missed

    Thank you

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •