|
| 1 | +; ╭──────────────────────────────────────────────────────────╮ |
| 2 | +; │ KOMOREBI AUTOHOTKEY CONFIG │ |
| 3 | +; ╰──────────────────────────────────────────────────────────╯ |
| 4 | + |
1 | 5 | #Requires AutoHotkey v2.0.2
|
2 | 6 | #SingleInstance Force
|
3 | 7 |
|
4 | 8 | Komorebic(cmd) {
|
5 | 9 | RunWait(format("komorebic.exe {}", cmd), , "Hide")
|
6 | 10 | }
|
7 | 11 |
|
8 |
| -!q::Komorebic("close") |
9 |
| -!m::Komorebic("minimize") |
10 |
| - |
11 |
| -; Focus windows |
12 |
| -!h::Komorebic("focus left") |
13 |
| -!j::Komorebic("focus down") |
14 |
| -!k::Komorebic("focus up") |
15 |
| -!l::Komorebic("focus right") |
| 12 | +; ── General ─────────────────────────────────────────────────────────── |
| 13 | +^+r:: Komorebic("reload-configuration") |
16 | 14 |
|
17 |
| -!+[::Komorebic("cycle-focus previous") |
18 |
| -!+]::Komorebic("cycle-focus next") |
| 15 | +; ── Apps ────────────────────────────────────────────────────────────── |
| 16 | +#\:: Run "wezterm-gui.exe" |
| 17 | +#w:: Run "Arc.exe" |
19 | 18 |
|
20 |
| -; Move windows |
21 |
| -!+h::Komorebic("move left") |
22 |
| -!+j::Komorebic("move down") |
23 |
| -!+k::Komorebic("move up") |
24 |
| -!+l::Komorebic("move right") |
| 19 | +; ── Windows ─────────────────────────────────────────────────────────── |
25 | 20 |
|
26 |
| -; Stack windows |
27 |
| -!Left::Komorebic("stack left") |
28 |
| -!Down::Komorebic("stack down") |
29 |
| -!Up::Komorebic("stack up") |
30 |
| -!Right::Komorebic("stack right") |
31 |
| -!;::Komorebic("unstack") |
32 |
| -![::Komorebic("cycle-stack previous") |
33 |
| -!]::Komorebic("cycle-stack next") |
| 21 | +; Move focus |
| 22 | +#h:: Komorebic("focus left") |
| 23 | +#j:: Komorebic("focus down") |
| 24 | +#k:: Komorebic("focus up") |
| 25 | +#l:: Komorebic("focus right") |
34 | 26 |
|
35 |
| -; Resize |
36 |
| -!=::Komorebic("resize-axis horizontal increase") |
37 |
| -!-::Komorebic("resize-axis horizontal decrease") |
38 |
| -!+=::Komorebic("resize-axis vertical increase") |
39 |
| -!+_::Komorebic("resize-axis vertical decrease") |
| 27 | +; Resize windows |
| 28 | +#m:: Komorebic("toggle-maximize") |
| 29 | +#Left:: Komorebic("resize-edge left increase") |
| 30 | +#Right:: Komorebic("resize-edge right increase") |
| 31 | +#Up:: Komorebic("resize-edge up increase") |
| 32 | +#Down:: Komorebic("resize-edge down increase") |
40 | 33 |
|
41 |
| -; Manipulate windows |
42 |
| -!t::Komorebic("toggle-float") |
43 |
| -!f::Komorebic("toggle-monocle") |
| 34 | +; Move windows |
| 35 | +#!h:: Komorebic("move left") |
| 36 | +#!j:: Komorebic("move down") |
| 37 | +#!k:: Komorebic("move up") |
| 38 | +#!l:: Komorebic("move right") |
44 | 39 |
|
45 |
| -; Window manager options |
46 |
| -!+r::Komorebic("retile") |
47 |
| -!p::Komorebic("toggle-pause") |
| 40 | +#q:: Komorebic("close") |
48 | 41 |
|
49 |
| -; Layouts |
50 |
| -!x::Komorebic("flip-layout horizontal") |
51 |
| -!y::Komorebic("flip-layout vertical") |
| 42 | +: Toggling |
| 43 | +#r:: Komorebic("cycle-layout next") |
| 44 | +#t:: Komorebic("toggle-float") |
| 45 | ++#t:: Komorebic("toggle-pause") |
52 | 46 |
|
53 | 47 | ; Workspaces
|
54 |
| -!1::Komorebic("focus-workspace 0") |
55 |
| -!2::Komorebic("focus-workspace 1") |
56 |
| -!3::Komorebic("focus-workspace 2") |
57 |
| -!4::Komorebic("focus-workspace 3") |
58 |
| -!5::Komorebic("focus-workspace 4") |
59 |
| -!6::Komorebic("focus-workspace 5") |
60 |
| -!7::Komorebic("focus-workspace 6") |
61 |
| -!8::Komorebic("focus-workspace 7") |
| 48 | +#1:: Komorebic("focus-workspace 0") |
| 49 | +#2:: Komorebic("focus-workspace 1") |
| 50 | +#3:: Komorebic("focus-workspace 2") |
| 51 | +#4:: Komorebic("focus-workspace 3") |
| 52 | +#5:: Komorebic("focus-workspace 4") |
| 53 | +#6:: Komorebic("focus-workspace 5") |
| 54 | +#7:: Komorebic("focus-workspace 6") |
| 55 | +#8:: Komorebic("focus-workspace 7") |
| 56 | +#9:: Komorebic("focus-workspace 8") |
| 57 | +#0:: Komorebic("focus-workspace 9") |
| 58 | +^#l:: Komorebic("cycle-workspace next") |
| 59 | +^#h:: Komorebic("cycle-workspace previous") |
| 60 | +#WheelUp:: Komorebic("cycle-workspace next") |
| 61 | +#WheelDown:: Komorebic("cycle-workspace previous") |
62 | 62 |
|
63 | 63 | ; Move windows across workspaces
|
64 |
| -!+1::Komorebic("move-to-workspace 0") |
65 |
| -!+2::Komorebic("move-to-workspace 1") |
66 |
| -!+3::Komorebic("move-to-workspace 2") |
67 |
| -!+4::Komorebic("move-to-workspace 3") |
68 |
| -!+5::Komorebic("move-to-workspace 4") |
69 |
| -!+6::Komorebic("move-to-workspace 5") |
70 |
| -!+7::Komorebic("move-to-workspace 6") |
71 |
| -!+8::Komorebic("move-to-workspace 7") |
| 64 | +#+1:: Komorebic("move-to-workspace 0") |
| 65 | +#+2:: Komorebic("move-to-workspace 1") |
| 66 | +#+3:: Komorebic("move-to-workspace 2") |
| 67 | +#+4:: Komorebic("move-to-workspace 3") |
| 68 | +#+5:: Komorebic("move-to-workspace 4") |
| 69 | +#+6:: Komorebic("move-to-workspace 5") |
| 70 | +#+7:: Komorebic("move-to-workspace 6") |
| 71 | +#+8:: Komorebic("move-to-workspace 7") |
| 72 | +#+9:: Komorebic("move-to-workspace 8") |
| 73 | +#+0:: Komorebic("move-to-workspace 9") |
| 74 | +#+l:: Komorebic("cycle-move-to-workspace next") |
| 75 | +#+h:: Komorebic("cycle-move-to-workspace previous") |
0 commit comments