Skip to content

Instantly share code, notes, and snippets.

@Kolenov
Kolenov / README.md
Created October 18, 2020 22:52 — forked from ascendbruce/README.md
Use mac style shortcuts on Windows with AutoHotkey (ahk) script

Use (most) macOS style shortcuts on Windows

Make Windows PC's shortcut act like macOS (Mac OS X)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

Note that

  1. You should disable the Between input languages shotcut from Control Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keys because it conflicts with cmd + shift + ↑ / ↓ / ← / → (select text between cursor and top / bottom / beginning of line / end of line)
  2. you shouldn't change the modifier keys mapping with keyboard DIP. This script assumes you use a standard PC keyboard layout, and wish to use shortcuts as if it was a mac keyboard layout.
@Kolenov
Kolenov / Mac OS X 10_5_ Windows Ctrl.xml
Created October 18, 2020 23:15 — forked from fljot/Mac OS X 10_5_ Windows Ctrl.xml
AutoHotkey mappings to emulate OSX keyboard shortcuts on Windows
<!-- put this to IDEA keymaps config folder. For v13 it is <userdir>\.IntelliJIdea13\config\keymaps\ -->
<?xml version="1.0" encoding="UTF-8"?>
<keymap version="1" name="Mac OS X 10.5+ Windows Ctrl" parent="Mac OS X 10.5+">
<action id="$Copy">
<keyboard-shortcut first-keystroke="meta C" />
<keyboard-shortcut first-keystroke="meta INSERT" />
<keyboard-shortcut first-keystroke="control C" />
<keyboard-shortcut first-keystroke="control INSERT" />
</action>
<action id="$Cut">
@Kolenov
Kolenov / autoexec.cfg
Created April 23, 2021 12:08 — forked from Fyzu/autoexec.cfg
Apex Legends autoexec
rspn_motd "Aimbot activated (joke)"
//=====================================================
//================== 4:3; 5:4 FIX =====================
//=====================================================
//mat_letterbox_aspect_goal 0.0 // Растягивает картинку на старых мониторах с соотношением сторон 4:3; 5:4 или нестандартных(кастомных) разрешениях, убирает черные полосы по бокам. (ВЫКЛ, для ВКЛ.убрать "//")
//mat_letterbox_aspect_threshold 0.0 // Растягивает картинку на старых мониторах с соотношением сторон 4:3; 5:4 или нестандартных(кастомных) разрешениях, убирает черные полосы по бокам. (ВЫКЛ, для ВКЛ.убрать "//")
//=====================================================
const originalConsoleError = console.error;
console.error = message => {
if (/(Failed prop type)/.test(message)) {
throw new Error(message);
}
originalConsoleError(message);
};