Good day! At work, we use hackintosh. Recently changed the computer and there was one problem. Either redefined, or I use the wrong layout, but in general, for the place of the tilde key, I have ±. And since I constantly use the console (and this is the easiest way to get into the home directory), and the hotkey is very convenient to hang on this button, I would really like to return exactly the tilde. Do not tell me which way to dig? Google did not help. Thank you in advance
2 answers
I did not use hackintosh, but in Macos I would advise you to change the layout in settings-> language and text-> input sources. There are usually several layouts for Russian and English keyboards.
|
Hey. Try this option (added more shortcuts for navigation from Win):
cd ~/Library mkdir KeyBindings cd KeyBindings cat > DefaultKeyBinding.dict << EOF { /* Tilda & Baktik*/ "§" = ("insertText:", "`"); "±" = ("insertText:", "~"); /* Tilda */ /* Remap Home / End keys to be correct */ "\UF729" = "moveToBeginningOfLine:"; /* Home */ "\UF72B" = "moveToEndOfLine:"; /* End */ "$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */ "$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End */ "^\UF729" = "moveToBeginningOfDocument:"; /* Ctrl + Home */ "^\UF72B" = "moveToEndOfDocument:"; /* Ctrl + End */ "@\UF729" = "moveToBeginningOfDocument:"; /* Command + Home */ "@\UF72B" = "moveToEndOfDocument:"; /* Command + End */ "^\UF702" = "moveWordLeft:"; /* Ctrl + Left */ "^\UF703" = "moveWordRight:"; /* Ctrl + Right */ "~\UF702" = "moveWordLeft:"; /* Option + Left */ "~\UF703" = "moveWordRight:"; /* Option + Right */ "^\UF72C" = "pageUp:"; /* Ctrl + Page Up */ "^\UF72D" = "pageDown:"; /* Ctrl + Page Down */ "$^\UF72C" = "pageUpAndModifySelection:"; /* Ctrl + Shift + Page Up */ "$^\UF72D" = "pageDownAndModifySelection:"; /* Ctrl + Shift + Page Down */ "$^\UF702" = "moveWordLeftAndModifySelection:"; /* Shift + Ctrl + Left */ "$^\UF703" = "moveWordRightAndModifySelection:"; /* Shift + Ctrl + Right */ "$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* Shift + Ctrl + Home */ "$^\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* Shift + Ctrl + End */ } EOF Sources:
- 2Try to write detailed answers. Answers - links are not welcome, it is better to remove the key information from the link in response, indicating the link to the source. - pavel
|