summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2023-10-07 13:11:23 +0200
committerkkard2 <[email protected]>2023-10-07 13:11:23 +0200
commit9e2fc1f2b76a1c9699052b1c14260965cc0c8168 (patch)
tree6971ae1a6a1164e65eb88824e7ebb3d31e96f98e
parent5f549730fe133d79fcd43d729d4752243471828c (diff)
shift lock (scuffed)
-rw-r--r--_windows/ahk/capslock.ahk17
1 files changed, 17 insertions, 0 deletions
diff --git a/_windows/ahk/capslock.ahk b/_windows/ahk/capslock.ahk
index 723dc43..34a7379 100644
--- a/_windows/ahk/capslock.ahk
+++ b/_windows/ahk/capslock.ahk
@@ -10,6 +10,7 @@ GroupAdd("Browser", "ahk_exe msedge.exe")
GroupAdd("Browser", "ahk_exe firefox.exe")
CapsLockState := false
+ShiftLockState := false
HarpoonLastWindowIndex := 0
HarpoonRun(winTitle) {
@@ -36,6 +37,22 @@ HarpoonRun(winTitle) {
global CapsLockState := not CapsLockState
SetCapsLockState CapsLockState
}
+Enter::{
+ global ShiftLockState := not ShiftLockState
+ if ShiftLockState {
+ SendInput "{LShift Down}"
+ } else {
+ SendInput "{LShift Up}"
+ }
+}
++Enter::{
+ global ShiftLockState := not ShiftLockState
+ if ShiftLockState {
+ SendInput "{LShift Down}"
+ } else {
+ SendInput "{LShift Up}"
+ }
+}
; vim motion
h::Left