mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 16:10:14 +00:00
hostnames and user settings
This commit is contained in:
5
platforms/windows/autohotkey/RemapCaps.ahk
Normal file
5
platforms/windows/autohotkey/RemapCaps.ahk
Normal file
@ -0,0 +1,5 @@
|
||||
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
||||
; #Warn ; Enable warnings to assist with detecting common errors.
|
||||
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
||||
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
||||
Capslock::Esc
|
24
platforms/windows/autohotkey/RemapCapsCtrlEscapeV2.ahk
Normal file
24
platforms/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}"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user