I have a JIS keyboard with Katana & Hiragana keys I am trying to bind Control keys.
I tried editing the following file JIS Keyboard Layout Keyboard Characters but it fails to change the keyboard keys.
Is there a way to bind keys using keycode for Ctrl+L, etc... I need Hiragana to me mapped to control essentially but it doesn't seem possible.
For CUI:
There are some handy packages to manipulate each key and mouse button.
For the packages
xmodmap
xbindkeys
xdotool
andxte
are popular.sudo apt install x11-xserver-utils
sudo apt install xbindkeys
Use
xev
and press the Hiragana/Katanaka key and you get the code.Alternatively, you can use
xbindkeys -mk
to get the keycode and numbers.I do know know the codes are the same as your IBM keyboard layout. You should check on your own keyboard. The numbers may be different.
Now then, edit
~/.xbindkeysrc
add lines below. (if there's no such filexbindkeys --defaults > $HOME/.xbindkeysrc
to create one.Save this file and
pkill -f xbindkeys && xbindkeys
execute this command to apply changes.
For GUI
Open System Settings > Keyboard > Shortcuts
This one takes only a minute.
I'm posting this as a partial answer because swapping Hiragana with control seems to be impossible. What you can do is bind Hiragana to Mode_Switch and use the XF86Paste and XF86Copy, redo, undo, etc...