forked from pmb6tz/windows-desktop-switcher
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuser_config.ahk
115 lines (100 loc) · 3.76 KB
/
user_config.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
; ====================
; === INSTRUCTIONS ===
; ====================
; 1. Any lines starting with ; are ignored
; 2. After changing this config file run script file "desktop_switcher.ahk"
; 3. Every line is in the format HOTKEY::ACTION
; === SYMBOLS ===
; ! <- Alt
; + <- Shift
; ^ <- Ctrl
; # <- Win
; For more, visit https://autohotkey.com/docs/Hotkeys.htm
; === EXAMPLES ===
; !n::switchDesktopToRight() <- <Alt> + <N> will switch to the next desktop (to the right of the current one)
; #!space::switchDesktopToRight() <- <Win> + <Alt> + <Space> will switch to next desktop
; CapsLock & n::switchDesktopToRight() <- <CapsLock> + <N> will switch to the next desktop (& is necessary when using non-modifier key such as CapsLock)
; ===========================
; === END OF INSTRUCTIONS ===
; ===========================
^#1::switchDesktopByNumber(1)
^#2::switchDesktopByNumber(2)
^#3::switchDesktopByNumber(3)
^#4::switchDesktopByNumber(4)
^#5::switchDesktopByNumber(5)
^#6::switchDesktopByNumber(6)
^#7::switchDesktopByNumber(7)
^#8::switchDesktopByNumber(8)
^#9::switchDesktopByNumber(9)
^#Numpad1::switchDesktopByNumber(1)
^#Numpad2::switchDesktopByNumber(2)
^#Numpad3::switchDesktopByNumber(3)
^#Numpad4::switchDesktopByNumber(4)
^#Numpad5::switchDesktopByNumber(5)
^#Numpad6::switchDesktopByNumber(6)
^#Numpad7::switchDesktopByNumber(7)
^#Numpad8::switchDesktopByNumber(8)
^#Numpad9::switchDesktopByNumber(9)
;CapsLock & n::switchDesktopToRight()
;CapsLock & p::switchDesktopToLeft()
;CapsLock & s::switchDesktopToRight()
;CapsLock & a::switchDesktopToLeft()
;CapsLock & tab::switchDesktopToLastOpened()
;CapsLock & c::createVirtualDesktop()
;CapsLock & d::deleteVirtualDesktop()
^#+1::MoveCurrentWindowToDesktop(1)
^#+2::MoveCurrentWindowToDesktop(2)
^#+3::MoveCurrentWindowToDesktop(3)
^#+4::MoveCurrentWindowToDesktop(4)
^#+5::MoveCurrentWindowToDesktop(5)
^#+6::MoveCurrentWindowToDesktop(6)
^#+7::MoveCurrentWindowToDesktop(7)
^#+8::MoveCurrentWindowToDesktop(8)
^#+9::MoveCurrentWindowToDesktop(9)
; === INSTRUCTIONS ===
; Below is the alternate key configuration. Delete symbol ; in the beginning of the line to enable.
; Note, that ^!1 means "Ctrl + Alt + 1" and ^#1 means "Ctrl + Win + 1"
; === END OF INSTRUCTIONS ===
; ^!1::switchDesktopByNumber(1)
; ^!2::switchDesktopByNumber(2)
; ^!3::switchDesktopByNumber(3)
; ^!4::switchDesktopByNumber(4)
; ^!5::switchDesktopByNumber(5)
; ^!6::switchDesktopByNumber(6)
; ^!7::switchDesktopByNumber(7)
; ^!8::switchDesktopByNumber(8)
; ^!9::switchDesktopByNumber(9)
; ^!Numpad1::switchDesktopByNumber(1)
; ^!Numpad2::switchDesktopByNumber(2)
; ^!Numpad3::switchDesktopByNumber(3)
; ^!Numpad4::switchDesktopByNumber(4)
; ^!Numpad5::switchDesktopByNumber(5)
; ^!Numpad6::switchDesktopByNumber(6)
; ^!Numpad7::switchDesktopByNumber(7)
; ^!Numpad8::switchDesktopByNumber(8)
; ^!Numpad9::switchDesktopByNumber(9)
; ^!n::switchDesktopToRight()
; ^!p::switchDesktopToLeft()
; ^!s::switchDesktopToRight()
; ^!a::switchDesktopToLeft()
; ^!tab::switchDesktopToLastOpened()
; ^!c::createVirtualDesktop()
; ^!d::deleteVirtualDesktop()
; ^#1::MoveCurrentWindowToDesktop(1)
; ^#2::MoveCurrentWindowToDesktop(2)
; ^#3::MoveCurrentWindowToDesktop(3)
; ^#4::MoveCurrentWindowToDesktop(4)
; ^#5::MoveCurrentWindowToDesktop(5)
; ^#6::MoveCurrentWindowToDesktop(6)
; ^#7::MoveCurrentWindowToDesktop(7)
; ^#8::MoveCurrentWindowToDesktop(8)
; ^#9::MoveCurrentWindowToDesktop(9)
; ^#Numpad1::MoveCurrentWindowToDesktop(1)
; ^#Numpad2::MoveCurrentWindowToDesktop(2)
; ^#Numpad3::MoveCurrentWindowToDesktop(3)
; ^#Numpad4::MoveCurrentWindowToDesktop(4)
; ^#Numpad5::MoveCurrentWindowToDesktop(5)
; ^#Numpad6::MoveCurrentWindowToDesktop(6)
; ^#Numpad7::MoveCurrentWindowToDesktop(7)
; ^#Numpad8::MoveCurrentWindowToDesktop(8)
; ^#Numpad9::MoveCurrentWindowToDesktop(9)