forked from hakatashi/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAutoHotKey.ahk
More file actions
164 lines (142 loc) · 2.34 KB
/
AutoHotKey.ahk
File metadata and controls
164 lines (142 loc) · 2.34 KB
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
#InstallKeybdHook
#PgUp::Volume_Up
#PgDn::Volume_Down
Pause::Media_Play_Pause
; Almighty CapsLock
#If GetKeyState("ScrollLock", "P")
h::Left
j::Down
k::Up
l::Right
y::Home
u::PgDn
i::PgUp
o::End
p::Insert
`;::vkF4sc029
m::Send +{F10}
,::(
.::)
f::Escape
e::Delete
d::Backspace
1::F1
2::F2
3::F3
4::F4
5::F5
6::F6
7::F7
8::F8
9::F9
0::F10
Space::Media_Play_Pause
Left::Media_Prev
Right::Media_Next
Up::Volume_Up
Down::Volume_Down
; Instant search from everywhere
; sc07b::
; SetTitleMatchMode, 2
; WinActivate, Google Chrome ahk_class Chrome_WidgetWin_1
; send ^t
; SetTitleMatchMode, 1
; return
sc079::^#Left
sc070::^#Right
g::
If (state)
state := 0
else
state := 1
return
#If
ScrollLock & Esc::DllCall("PowrProf\SetSuspendState", "int", 0, "int", 0, "int", 0)
^SPACE:: Winset, Alwaysontop, , A
#If !WinActive("ahk_class Chrome_WidgetWin_1") and !WinActive("ahk_exe soffice.bin")
^+v::send +{Insert}
#If
; Transparently maps Backslash key of JIS Keyboard into TRUE Backslash
sc073::\
+sc073::_
RCtrl::
#If WinActive("ahk_exe putty.exe") or WinActive("ahk_exe kitty.exe")
^Tab::
send ^b
send o
return
^F4::
send ^b
send, xy
return
^T::
send ^b
send `%
return
#if
; My laptop keyboard has been fixed :)
sc07b::Space
sc079::Space
sc070::^
RAlt::\
; SetTitleMatch mode 2 enables AutoHotkey to only partially match program names, must be in the beginning of the script
SetTitleMatchMode, 2
; Ctrl-E is now Ctrl-J, the shortcut for the Downloads tab in Google Chrome
#IfWinActive ahk_class Chrome_WidgetWin_1
^e::^j
#IfWinActive
; QWERTY-Dvorak Toggle using ScrollLock key
state := 1 ;
#If state=1
#HotkeyInterval 1000000000
#MaxHotkeysPerInterval 9999999999999
-::[
^::]
q::'
+q::"
w::,
e::.
r::p
t::y
y::f
u::g
i::c
o::r
p::l
@::/
[::=
+[::+
]::\
s::o
d::e
f::u
g::i
h::d
j::h
k::t
l::n
`;::s
:::Send -
*::Send _
z::Send `;
+z::Send :
x::q
c::j
v::k
b::x
n::b
,::w
.::v
/::z
sc029::`
+sc029::~
+2::Send @
+6::Send {^}
+7::&
+8::*
+9::(
+0::)
RWin::-
+RWin::=
^RWin::_
#If