Kali Linux Tweaks
Started with Ubuntu dualbooting Win 10, but corrupted for some reason. Decided might as well try Kali linux since I wanted to play around with pentesting stuff, so that’s what I’m using now.
Still lost few things along the way though like my custom login screen based around Lain’s Copland OS thing I found on github.
Keyboard Bindings
Had to use different binds since each of them couldn’t do the other for some reason, at least it works for the most part.
Current settings:
- Caps lock & CTRL swap = XKB file edit
- Backspace and Backslash swap = xmodmap commands + autostart on boot
IJKL Arrow keys (Alt+IJKL for arrow keys)= Autokey- UPDATE: As of 2023/1/16, due to me wanting to learn vim I’ve changed it to HJKL instead.
Japanese Input
This was initially quite an annoying issue to deal with for me, since I was really adamant about my keyboard shortcuts (as can be seen with me having all those keyboard macros and switches). Since inputting Japanese through a keyboard requires you to press several more keys to choose input method etc., this also of course meant that my usual workflow when using Japanese on a computer is also modified quite a bit and I am really only fully comfortable with my own setup.
JP Input on Windows
I first learned Japanese (including how to type in Japanese) on a windows machine back home, so it naturally became the input method that I’m most used to. I used Google’s Japanese IME on a standard ANSI keyboard which had shortcuts such as:
- Win + Spacebar = Switch language (Windows shortcut)
- L_Alt + ` = Switch input mode (Romaji –> 仮名)
- Shift + Caps_Lock = Switch Kana input mode (ひらがな –> カタカナ)
There were more I believe, such as F7 or something to convert selected text into katakana, double/half width conversion, etc. But I never really used them much and mostly relied on the above mentioned shortcuts. My goal then was to of course try and find a way to have the same shortcuts set up on my Linux machines.
JP Input on Linux
I really thought importing my settings from Windows would be much easier than it was, but alas quite a bit of tinkering was needed. When I was still using Ubuntu, I had a solution that kind of worked? But I never really liked it since it had issues like:
- Couldn’t use Windows key and ` key for some reason as shortcuts???
- Was stuck on JIS layout, could not easily find option to switch to ANSI with Japanese input
Which meant that:
- I had to use mouse manually to switch between EN and JP
- I had to use mouse manually to switch between Romaji and kana input
- I had to use mouse manually to switch between hiragana and katakana
- I had to blindly find where symbols are located under since JIS layout places them in different locations VS ANSI
Which made me HATE using it. I ended up having to always switch back to my Windows partition whenever I go to Japanese class.
I’m sure you’re already saying to yourself “oh but Andra why don’t you just click on top right idiot!!! ez to click and switch language options!!!” yes but I am probably on a spectrum and I want to have an efficient way of operating a computer. I mean it’s basically like 60% of why I love Thinkpads and trackpoints so much.
Anyway, after looking around forums again I finally found out a solution that I am satisfied with, which was using iBus keyboard thingy with the Japanese (Anthy) input.
I’m not exactly sure why, but the Anthy version of the Japanese input had exactly the options that I wanted to modify to be able to make it function exactly like my Windows Google IME that I’m used to.
I’ve included the settings I put on the pic above so you can see how I binded it. I also binded Win + Spacebar
to switch between language options and I am a very happy man indeed.
ついにLinuxで日本語入力ができる!!!やったー
Mouse Stuff
Mostly pretty good, was just annoyed that Kali doesn’t have an easy way to disable the “Middle mouse to paste” thing that Linux for some reason has. With Ubuntu GNOME it was easy enough to run gnome-tweaks
, but since my Kali was on XFCE I wasn’t sure on how to do that.
After a bit of searching I ended up following this thread I found from reddit. I made the file and set it to launch on startup, bob’s your uncle mary’s your aunt it works well.
Future Things
- Method to export/import keyboard bindings etc. easily between all my Linux machines
- I think can be done with shellscript file hosted on Github. Something about a script that makes backup of config files + replaces your current ones?
- Mouse/Trackpad
- Still unhappy about lack of features like
- 4 finger swipe to switch virtual desktops
- 2 finger swipe to forward/back on browser
- etc.
- Still unhappy about lack of features like
- Fingerprint scanner
- Maybe drivers required? Not sure if lenovo provides for Linux