#NoEnv
#SingleInstance force
#Persistent

; Set the key combination to trigger window tiling
$#r::
$<^>!::
  TileWindows()
return

TileWindows() {
  ; Get the size and position of the primary monitor
  SysGet, MonitorWorkArea, MonitorWorkArea, 1

  ; Calculate the size and position of the left half of the screen
  LeftHalf := MonitorWorkAreaRight/2
  LeftRect := "0, 0, " . LeftHalf . ", " . MonitorWorkAreaBottom

  ; Calculate the size and position of the right half of the screen
  RightHalf := MonitorWorkAreaRight - LeftHalf
  RightRect := LeftHalf . ", 0, " . MonitorWorkAreaRight . ", " . MonitorWorkAreaBottom

  ; Tile the windows using the left and right rectangles
  WinMove, ahk_class CabinetWClass,, %LeftRect%
  WinMove, ahk_class ExploreWClass,, %RightRect%
}
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence