Compare commits

..

No commits in common. "778b793b34461350c929f7ad19dea10fe61495a5" and "4a887dd1e294c09c9287b27d9dd1577d331ec492" have entirely different histories.

View File

@ -1,7 +1,4 @@
; Replace a common TODO type
::TOOD::TODO
DownloadYoutubeVideo(dataType)
DownloadYoutubeVideo(dataType)
{
; Note: This callback is usually fired twice when copying for some reason
; so we use "RunWait" below to make sure we only launch youtube-dl once.
@ -25,7 +22,7 @@ OnClipboardChange DownloadYoutubeVideo
; Pressing the hotkey again goes back to the previously focused window.
prevWindow := 0
^!+#t:: ; Capslock+t to open a terminal
CapsLock & t:: ; Capslock+t to open a terminal
{
global prevWindow
@ -59,7 +56,6 @@ monitorConfigurations := Map(
"Discord", [-7, 0, 900, 750],
"Signal", [-7, 742, 900, 750],
"Visual Studio Code", [886, 0, 2954, 2110],
"ahk_exe WindowsTerminal.exe", [886, 0, 2954, 2110],
"Mozilla Firefox", [881, 0, 2963, 2117],
"TickTick", [712, 2892, 942, 821],
"Atrium", [1654, 2160, 1620, 1552]
@ -70,7 +66,6 @@ monitorConfigurations := Map(
"Discord", [-7, 0, 900, 750],
"Signal", [-7, 742, 900, 750],
"Visual Studio Code", [472, 0, 2085, 1550],
"ahk_exe WindowsTerminal.exe", [472, 0, 2085, 1550],
"Mozilla Firefox", [467, 0, 2099, 1557],
"TickTick", [0, 731, 942, 821],
"Atrium", [983, 0, 1577, 1552],
@ -78,9 +73,6 @@ monitorConfigurations := Map(
)
)
IdentifyMonitorConfiguration() {
; TODO: Improve monitor matching by using the monitor guid.
; See https://www.autohotkey.com/boards/viewtopic.php?t=116104
count := MonitorGetCount()
if (count == 1) {
return "standalone"
@ -112,11 +104,10 @@ ArrangeWindows(wParam, lParam, msg, hwnd)
monitorConfig := monitorConfigurations[monitorConfigName]
ArrangeWindowsInMonitor(monitorConfig)
}
; Listen for the monitor change event
OnMessage(0x007E, ArrangeWindows)
^!+#a:: ; Capslock+a to arrange windows
CapsLock & a:: ; Capslock+a to arrange windows
{
keyArr := []
For Key In monitorConfigurations
@ -141,4 +132,4 @@ OnMessage(0x007E, ArrangeWindows)
monitorConfig := monitorConfigurations[Saved.LayoutChoice]
ArrangeWindowsInMonitor(monitorConfig)
}
}
}