When I was playing with Japanese Kali Linux (2020.2) in Virtual Box on Mac, I was having trouble entering the backslash \
.
As a result, I found that it was assigned to ro
.
It seems to be convenient, so I set it so that I can input in the same way on Mac.
In Windows 10, both \
and ro
were assigned to\
(looks like\
).
Is this common sense ...?
on (Kali) Linux
It was translated into Japanese by the following method. The keyboard layout was Japanese (OADG 109A). Kali Linux 2020.1 Introduction and Japanese localization|Security| DoRuby
When I was working in the terminal, I needed a command containing \
.
Following the Mac method, pressing ʻAlt + ` entered the mysterious character �
. This is really different.
When I pressed the \
key in the Windows glue, \
came out. An error occurs when the command is executed without worrying about it. Akan?
So, when I was touching various things, I found that I could input \
with ro
(next to the left of right Shift).
on Mac OSX
The underscore / underscore _
is remembered by the finger as Shift + ro
, but on Mac you can enter _
with just ro
without Shift
.
Then let's adapt it to Linux. See below for how to change the key bindings using Karabiner-Elements.
Settings to make it easier to enter backslashes on Mac by Karabiner-Elements --Monalog
Addendum: If you apply it as it is, the input will be replaced even in VirtualBox, and it was a mess. Exclude VirtualBox with frontmost_application_unless
.
{
"title": "backslash",
"rules": [
{
"description": "underscore to backslash",
"manipulators": [
{
"from": {
"key_code": "international1"
},
"to": [
{
"key_code": "international3",
"modifiers": [
"option"
]
}
],
"type": "basic",
"conditions": [
{
"type": "frontmost_application_unless",
"bundle_identifiers": [
"^org\\.virtualbox\\.app\\.VirtualBoxVM"
]
}
]
}
]
}
]
}
on Windows 10
By the way, when I checked how Windows was, \
and ro
were assigned to the same input, that is,\
that looks like\
. Which one it looks like depends on the application.
Why didn't you notice it until now ...
Recommended Posts