-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeybindings.ahk
208 lines (177 loc) · 5.06 KB
/
keybindings.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
; Install autohotkey.
; Then create shortcut to this file under: C:\Users\<YOURUSERNAME>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
; or doubleklick this file
;
; # Win (Windows logo key)
; ! Alt
; ^ Control
; + Shift
; & An ampersand may be used between any two keys or mouse buttons to combine them into a custom hotkey.
; Version: 1.9
#Warn ; Enable warnings to assist with detecting common errors.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#installkeybdhook
#SingleInstance, force
SetCapsLockState, AlwaysOff
return
;<::Shift
;#::Enter
;toggle pause key to suspends and restart script
Pause::
Suspend
Pause,,1
return
;Space & F1::Return ; Mentioned in the hotkeys docs for UP
;*Space::Send {Blind}{Space} ; Send it explicitly when no other key is pressed before letting go, including any modifiers being held
; With following lines the key # will also printed, when no further key is pressed
; Example:
; Mentioned in the hotkeys docs for UP:
; In einem ähnlichen Zusammenhang besteht eine ähnliche Technik wie oben darin, einen Hotkey in einen Präfixschlüssel zu
; verwandeln. Der Vorteil ist, dass der Hotkey zwar beim Loslassen ausgelöst wird, dies jedoch nur, wenn Sie keine andere Taste
; gedrückt haben, während er gedrückt gehalten wurde. Zum Beispiel:
; LControl & F1::return ; Make left-control a prefix by using it in front of "&" at least once.
; LControl::MsgBox You released LControl without having used it to modify any other key.
;# & F1::Return ; Mentioned in the hotkeys docs for UP
;*#::Send {Blind}{#}
; AHK implementing layer CapsLock Part1
; https://www.autohotkey.com/boards/viewtopic.php?f=7&t=20661&p=119764
; Send Ctrl+Space
^SPACE:: Send ^{space}
ä & F1::Return ; Mentioned in the hotkeys docs for UP
ä::Send, ä
+ä::Send, Ä
$#::
KeyWait, #
return
CapsLock::
KeyWait, CapsLock
; If (A_PriorKey="CapsLock")
; SetCapsLockState, % GetKeyState("CapsLock","T") ? "Off" : "On"
Return
; AHK implementing layer Space
~#Space::return
; Task switching
;Space & Tab::AltTab
;Space & q::Send, {Alt Down}{Tab}{Alt Up}
;Space & w::Send, {Ctrl Down}{Tab}{Ctrl Up}
; New, Refresh
;Space & r::Send, {F5}
Space & s:: send, {blind}{left}
Space & e:: send, {blind}{Up}
Space & d:: send, {blind}{Down}
Space & f:: send, {blind}{Right}
Space & a:: send, {blind}{Home}
Space & r:: send, {blind}{Del}
Space & g:: send, {blind}{End}
Space & w::Send, {Backspace}
Space & Tab::
Space & q::Send, ^+{Left}{Del}
Space & t::Send, ^+{Right}{Del}}
;Space & q::Send, {PgUp}
;Space & t::Send, {PgDn}
; Select all, Space, Find
;Space & a::Send, {Ctrl Down}a{Ctrl Up}
;Space & s::Send, {Space}
;Space & f::Send, {Ctrl Down}f{Ctrl Up}
; Undo, Cut, Copy and Paste
Space & b::Send, {Ctrl Down}z{Ctrl Up}
Space & x::Send, {Ctrl Down}x{Ctrl Up}
Space & c::
If WinActive("ahk_exe mintty.exe") {
Send {Ctrl Down}{Insert}{Ctrl Up}
} Else If WinActive("ahk_exe WindowsTerminal.exe") {
Send {Ctrl Down}{Insert}{Ctrl Up}
} Else {
Send, {Ctrl Down}c{Ctrl Up}
}
Return
Space & v::
If WinActive("ahk_exe ConEmu64.exe") {
Send {LShift Down}{Insert}{LShift Up}
} Else If WinActive("ahk_exe mintty.exe") {
Send {LShift Down}{Insert}{LShift Up}
} Else If WinActive("ahk_exe WindowsTerminal.exe") {
Send {LShift Down}{Insert}{LShift Up}
} Else {
Send, {Ctrl Down}v{Ctrl Up}
}
Return
Space & y:: Send, {Esc}
Space & z::Send, {,}
Space & h::Send, 0
Space & m::Send, 1
Space & ,::Send, 2
Space & .::Send, 3
Space & j::Send, 4
Space & k::Send, 5
Space & l::Send, 6
Space & u::Send, 7
Space & i::Send, 8
Space & o::Send, 9
Space & p::Send, {+}
Space & -::Send, {-}
Space & ö::Send, {*}
;Space & 7::Send, {/}
Space & ä::Send, {/}
Space & ü::Send, {^}
Space & n::Send, {.}
; Space & ä::Send, {SPACE}
Space & ALT::Send, {SPACE}
Space & 1::Send, {F1}
Space & 2::Send, {F2}
Space & 3::Send, {F3}
Space & 4::Send, {F4}
Space & 5::Send, {F5}
Space & 6::Send, {F6}
Space & 7::Send, {F7}
Space & 8::Send, {F8}
Space & 9::Send, {F9}
Space & 0::Send, {F10}
Space & ß::Send, {F11}
Space & ´::Send, {F12}
Space::
Send, {Space}
Return
; AHK implementing layer CapsLock Part2
#If, GetKeyState("CapsLock", "P") or GetKeyState("#", "P") or GetKeyState("ä", "P") ;Your CapsLock Hotkeys go below
w::
7::Send, {/}
e::
8::Send, {|}
r::
9::Send, {\}
i::
Send, {END}{{}{Enter} ;goto end and print semicolon and enter
return
o::
Send, {END}{;}{Enter} ;goto end and print semicolon and enter
return
z::
Send, {END}{Enter} ;goto end and enter
return
j::Send, {(}
k::Send, {{}
l::Send, {[}
m::Send, {)}
,::Send, {}}
.::Send, {]}
h::Send, {<}
g::Send, {=}
n::Send, {>}
b::Send, {=}{>}
-::Send, {#}
v::Send, {-}{>}
ö::Send, {'}
s::Send, {*}
u::Send, {&}
f::Send, {?}
q::Send, @
a::Send, {!}
t::Send, {~}
ä::Send, {"}
p::Send, {asc 0037} ;percentage %
d::Send, {$}
c::Send, {€}
#If