-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.ahk
46 lines (41 loc) · 1.12 KB
/
init.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
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;
; Some fast reference
;
; Keys:
; # => windows logo key
; ! => Alt
; ^ => Ctrl
; + => Shift
;
; Specials:
; winactivate => makes window active based on title
; WinWaitActive => waits for the window to be active
; Run => run a specific program based on path
;
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#NoEnv
#SingleInstance force
; custom functions
#Include, functions.ahk
; hotstrings, this will autocomplete any word to the desired word
#Include, hotstrings.ahk
; listen to keys and run the function from the second keyboard
#Include, 2nd-keyboard.ahk
; Ctrl+Shift+Up: Toggle "AlwaysOnTop" on the focussed window
+^Up::
Winset, Alwaysontop, , A
showToast("Autohotkey notification", "Sticky window activated/deactivated")
Return
; Ctrl+Shift+T: open cmd from the explorer
#IfWinActive ahk_class CabinetWClass
+^t::
ClipSaved := ClipboardAll
Send !d
Sleep 10
Send ^c
Run, cmd /K "cd `"%clipboard%`""
Clipboard := ClipSaved
ClipSaved =
Return
#IfWinActive