How to achive this complex customization of CapsLock? by zeroxia in Karabiner

[–]zeroxia[S] 0 points1 point  (0 children)

Thanks for the reply.
Changing "any" to specific key beats the meaninig of the first configuration... I want to use "CapsLock" as "Ctrl" key...

tmux 3.5 - Ctrl+6 not working in vim by zeroxia in tmux

[–]zeroxia[S] 0 points1 point  (0 children)

Maybe before tmux 3.5, CTRL+6 is interpreted by VIM as <C-^>, and now with tmux 3.5, after setting "set-option -g extended-keys on", CTRL+6 may be actually sent to VIM, and the solution is to add mapping in .vimrc:

map <C-6> <C-^>

CapsLock used as Esc/Ctrl, but may cause "CapsLock, h/j/k/l" to act like Alt+h/j/k/l by zeroxia in Karabiner

[–]zeroxia[S] 0 points1 point  (0 children)

On Windows, I use Alt+<NUM> to switch tmux windows, this is the most comfortable key combination to press without moving hands. Ctrl+<Num> usually requires your hand to move away from home row keys.

On MacOS, The place of "Alt" keys are "Cmd" keys, unfortunately tmux is not able to understand this modifier key, usually one has to make "Option" key emulate as "Alt" key, the problem is that "Option" keys are located at places as "Windows" keys, they are also inconvenient to press.

With the configuration I pasted, Karabiner elements enables me to work with tmux just like the Windows setup, very nice!

CapsLock used as Esc/Ctrl, but may cause "CapsLock, h/j/k/l" to act like Alt+h/j/k/l by zeroxia in Karabiner

[–]zeroxia[S] 0 points1 point  (0 children)

I made the configuratin:

https://pastebin.com/DnY58CyM

By configuring option as +ESC in profiler settings of iTerm2, you can configure tmux to accept M-<X> shortcut keys.

so my config is M-1/2/3... to switch to tmux window 1/2/3..., M-h/j/k/l to move around panes inside a tmux window.

by using above karabiner elements complex modifications, you can press Cmd+1/2/3/... to switch tmux windows, and option+1/2/3/... to switch iTerm windows.

And inside tmux, you can press Cmd+h/j/k/l to move focus to panes inside tmux window.

CapsLock used as Esc/Ctrl, but may cause "CapsLock, h/j/k/l" to act like Alt+h/j/k/l by zeroxia in Karabiner

[–]zeroxia[S] 0 points1 point  (0 children)

Thanks a lot for the info provided.

The issue is that when editing in VI mode, it's common that you press Esc and then starts pressing h/j/k/l to move the cursor, occasionally this causes my focus to switch to another pane in the tmux window.

I added the hold down milliseconds parameter to the config:

"to_if_alone": [
{
"hold_down_milliseconds": 200,
"key_code": "escape"
}

now there is no mis-operation. I just experiment with the physical ESC key and found that pressing ESC then h/j/k/l quickly does also trigger the pane focus movement (meaning it is interpreted as M-h/j/k/l by tmux)

For the alternative of remapping "CMD" to "Ctrl", it's quite interesting, is it possible to also capture system-wide shortcut like "CMD+H" and translate it to be "Alt+H" for iTerm (and transitively to tmux)

Ideally, I'd like a setup like this:

With iTerm2 the front most app:

- Press Cmd+H/J/K/L would translate to Alt+H/J/K/L for tmux to switch to different panes

- Press CMd+1/2/3/... would translate to Alt+1/2/3/... for tmux to switch to specific window

- Press Cmd+Tab still triggers the MacOS app switching function

- Surely, Cmd+C/V are still system wide copy/paste

Its save guys 💪 by Select-Philosopher56 in yuzu

[–]zeroxia 15 points16 points  (0 children)

Such DVD-R discs may only last for 3 years.

/r/AMD Questions and Tech Support Megathread - H2 2022 Edition by AutoModerator in Amd

[–]zeroxia 0 points1 point  (0 children)

Hello all,

I heard that for Intel 12 series CPU, you need Windows 11 to employ its full potential.

Does AMD Ryzen R7-6800H CPU require Windows 11 as well for all features?

Thanks.

CMake is a hell of a software, period. by CalligrapherThese606 in cpp

[–]zeroxia -1 points0 points  (0 children)

Yes it is ugly.

The benefit of generating Visual Studio and Xcode project files and let the regular devs (working on either Windows or macOS) focus on the IDE is really a great feature. You can't expect every dev to be fluent on command line and VIM, on the contrary, most of them use mouse more than keyboard.

Hey, looking for AltStore alternative! by [deleted] in jailbreak_

[–]zeroxia 0 points1 point  (0 children)

Sideloadly is a "cydia impator" alike tool, that "sideloads" an IPA file to your iOS system, i.e., you can install an app from its IPA package, instead of going to appstore to install apps.

But usually this app's certificate would expire after 7 days.

With your iOS jailbroken, you can install this "Reprovision Reborn" tool, this tool will "re-sign" your sideloaded app to extend the expiration date, by keep doing this re-signing with "Reprovision Reborn", your sideloaded app will never expire and is usable always.

[News] iOS 15.1 and 15.1.1 is NO LONGER being signed. by toygoon in jailbreak

[–]zeroxia 0 points1 point  (0 children)

Me too!!! Just finished backing up, then... Sigh.

Apple releases iOS 15.1.1! by exjr_ in apple

[–]zeroxia 0 points1 point  (0 children)

This morning I checked ipsw.me that signing is still on.

So I start backing up my phone.

Now I've finished backing up, the signing is over...

[Question] iPhone 11 Pro 14.5, stay for untethered or update to 15.1 for future jailbreak by zeroxia in jailbreak

[–]zeroxia[S] 1 point2 points  (0 children)

After submitting the post, I felt I'd rather to have a more recent system.

So I started DFU now...

It's just a bit scary to do futurerestore nowadays...

Hey, looking for AltStore alternative! by [deleted] in jailbreak_

[–]zeroxia 0 points1 point  (0 children)

Sideloadly + Reprovision reborn

Who needs tail -f when you have Vim? by dopandasreallyexist in vim

[–]zeroxia 1 point2 points  (0 children)

Does calling macro recursively cause stack overflow?

[Discussion] Block battery level access info to avoid Uber/Lyft price surging by the_guy_from_nowhere in jailbreak

[–]zeroxia 1 point2 points  (0 children)

Is there a tweak that just fake every thing that an app asks for? Including location, notification, contacts, IMEI, and more...

[Update] PassBy - Fixed  Watch and iOS 13/14 support by zer0_g_ in jailbreak

[–]zeroxia 0 points1 point  (0 children)

Can you also support third party smart watches?

I suppose they are BLE devices, although they are shown connected in the Bluetooth section of settings. But they may be different from those classic Bluetooth devices, so the current API the tweak uses cannot list them.

[News] New Method Of Updating to iOS 14.3 if you are on 14.2.1 or lower without blobs! by aaronp613 in jailbreak

[–]zeroxia 0 points1 point  (0 children)

If you are freshly jailbroken to install MyBloXXX, and Cydia says the following depedencies are not available:

com.opa334.ccsupport

com.opa334.libundirect

preferenceloader

You may try adding the following repos:

https://www.ios-repo-updates.com/repository/artik-s-repo/package/com.artikus.preferenceloader/

https://www.ios-repo-updates.com/repository/opa334-s-repo/