mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-05 02:29:08 +00:00
Compare commits
2 Commits
204621a0ba
...
7a22e798fc
Author | SHA1 | Date | |
---|---|---|---|
|
7a22e798fc | ||
|
196d2e53e0 |
24
windows/autohotkey/RemapCapsCtrlEscapeV2.ahk
Normal file
24
windows/autohotkey/RemapCapsCtrlEscapeV2.ahk
Normal file
@ -0,0 +1,24 @@
|
||||
#Requires AutoHotkey v2.0
|
||||
#SingleInstance
|
||||
|
||||
ih := InputHook("B L1 T1", "{Esc}")
|
||||
|
||||
*Ctrl::
|
||||
{
|
||||
ih.Start()
|
||||
reason := ih.Wait()
|
||||
if (reason = "Stopped") {
|
||||
Send "{Esc}"
|
||||
} else if (reason = "Max") {
|
||||
Send "{Blind}{Ctrl down}" ih.Input
|
||||
}
|
||||
}
|
||||
|
||||
*Ctrl up::
|
||||
{
|
||||
if (ih.InProgress) {
|
||||
ih.Stop()
|
||||
} else {
|
||||
Send "{Ctrl up}"
|
||||
}
|
||||
}
|
8
windows/caps-lock-ctrl.reg
Normal file
8
windows/caps-lock-ctrl.reg
Normal file
@ -0,0 +1,8 @@
|
||||
Windows Registry Editor Version 5.00
|
||||
|
||||
; Changes registry to map Caps Lock key to Ctrl key
|
||||
; More info here: https://www.autohotkey.com/boards/viewtopic.php?p=468638#p468638
|
||||
; And here: https://superuser.com/a/949533
|
||||
|
||||
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
|
||||
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00
|
Loading…
Reference in New Issue
Block a user