how to remap key?

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
mintiscool
Level 1
Level 1
Posts: 6
Joined: Fri Aug 09, 2019 8:04 pm

how to remap key?

Post by mintiscool » Fri Aug 09, 2019 8:12 pm

i have an old keyboard that's missing the Windows key. is there a way to enable that key with Pause or Scroll Lock?
i'm running Linux Mint 19.2 Cinnamon.

magnus7
Level 3
Level 3
Posts: 167
Joined: Sat Jan 30, 2016 8:46 pm

Re: how to remap key?

Post by magnus7 » Sat Aug 10, 2019 2:29 pm

To remap Scroll Lock as Right Windows run this command in terminal and restart the computer:

Code: Select all

sudo sed -i -e '31s|.*|key<SCLK>{[Super_R]};|' -e '71s|.*||' \
/usr/share/X11/xkb/symbols/pc && sudo dpkg-reconfigure xkb-data

mintiscool
Level 1
Level 1
Posts: 6
Joined: Fri Aug 09, 2019 8:04 pm

Re: how to remap key?

Post by mintiscool » Tue Aug 13, 2019 8:44 pm

thanks for the reply. i stumbled upon a software that allowed me to swap super key with caps lock key. it was using ubuntu before and i believed that key mapping was much easier within ubuntu.
the problem with your method, i feel, is i wouldn't know how to reverse it. however, thank you for your suggestion.

mintiscool
Level 1
Level 1
Posts: 6
Joined: Fri Aug 09, 2019 8:04 pm

Re: how to remap key?

Post by mintiscool » Tue Aug 13, 2019 8:53 pm

sorry, i went to system settings/keyboard/layouts/options to make the change.

magnus7
Level 3
Level 3
Posts: 167
Joined: Sat Jan 30, 2016 8:46 pm

Re: how to remap key?

Post by magnus7 » Wed Aug 14, 2019 7:51 am

Remapping can be reversed by reinstallation of xkb-data package:

Code: Select all

sudo apt-get install --reinstall xkb-data

Post Reply

Return to “Hardware Support”