LogiSwitch  (Windows + macOS)
=============================
Two ways to move your Logitech keyboard AND mouse to the other computer together:
  1. Push the cursor against the screen edge that faces the other computer.
  2. Press the Easy-Switch button on EITHER the keyboard or the mouse - the other
     one follows automatically within about a second.
(Follow is skipped when the computer has been idle for over a minute, so a device
that merely goes to sleep or is switched off does not drag the other one away.)

It sends Logitech's own Easy-Switch "change channel" command over the existing
Bluetooth or USB-receiver (Unifying / Bolt) connection.
- No network, no admin rights, no firewall or security changes.
- No clipboard or file sharing between the computers.
- Works with ANY Logitech keyboard/mouse that has Easy-Switch channels. It finds
  whatever is connected (at start-up and every 3 minutes), so a different set at
  work is picked up automatically. Tested: ERGO K860, MX Vertical.

ONE-TIME SETUP OF THE DEVICES
  Pair each keyboard and mouse with both computers, each computer on its own
  Easy-Switch channel. Default assumption: Windows PC = channel 1, Mac = channel 2.
  (Hold a channel button ~3 s until it blinks fast, then connect from the computer.)

INSTALL ON WINDOWS
  Copy this folder to the PC and double-click Install.cmd.
  Optional (command prompt):  Install.cmd -Edge Right -Channel 2
     -Edge    = side of the PC screen where the Mac is   (default Right)
     -Channel = the Mac's Easy-Switch channel            (default 2)
  A green arrows icon appears beside the clock (click ^ if hidden).

INSTALL ON macOS
  Copy this folder to the Mac, open Terminal and run:
     bash ~/Downloads/LogiSwitch/install.sh
  (use the real path of the folder; you can type "bash " and drag install.sh in).
  Every run writes LogiSwitch-install-log.txt to the Desktop. If it fails, it also
  writes LogiSwitch-fix-request.txt (copied to the clipboard): paste into Claude.
  macOS will ask to allow LogiSwitch under Input Monitoring (needed to switch a
  keyboard): allow it, then click the menu bar icon > Quit and run install.sh again.
  The first time, macOS may ask to install Apple's free Command Line Tools: accept,
  wait, then run the same command again. The first build saves a ready-built app
  in the folder's mac-bin/ subfolder; zip the folder again and every later Mac
  installs from it in seconds, with no Command Line Tools needed.
  Optional:  bash install.sh --edge Left --channel 1
     --edge    = side of the Mac screen where the PC is  (default Left)
     --channel = the PC's Easy-Switch channel            (default 1)
  An arrows icon appears in the menu bar (top right).

CLIPBOARD SYNC (optional, OFF until you turn it on; text only for now)
  Copy on one computer, paste on the other, usually in well under a second.
  The Mac listens and the PC dials out to it, so nothing connects IN to the PC and
  no firewall change is needed. Traffic stays on your own network - no internet, no
  third-party service. Encrypted with AES-256 and a 16-character pairing code that
  must match on both computers.
  Turn it on:
    1. Mac:     icon > Clipboard sync > Share the text clipboard with the PC.
                Note the pairing code it shows, and the Mac's address.
    2. Windows: icon > Clipboard sync > Set the Mac's address..., then Pairing code...
                (enter the same one), then Share the text clipboard with the Mac.
  If it stops working, your router has probably given the Mac a new address: check
  the Mac's icon > Clipboard sync > This Mac's address, and set it again on the PC.
  WARNING: anything you copy on a work computer is then sent to the other computer.
  Think about your employer's rules before turning this on.

ICON MENU (same on both)
  Active ............................ pause / resume (remembered)
  Send keyboard + mouse ... now ..... manual switch
  Where is the Mac / PC? ............ LEFT or RIGHT  (fixes the edge direction)
  ... Easy-Switch channel ........... 1 / 2 / 3 of the OTHER computer
  Clipboard sync .................... share the text clipboard (see above)
  Start at login .................... on / off
  Show devices / Re-detect devices / Open log
  Create support report for Claude... see below
  Update ............................ reinstall from the original folder, or pick a
                                      folder with a newer copy (settings are kept)
  Uninstall... ...................... stop, remove from login, delete files
  Exit / Quit ....................... until next login
  (Windows: double-click the icon to pause/resume.)

NEED CLAUDE?  (normally not)
  ASK-CLAUDE.txt has ready-made prompts: first Mac install with Claude, a failed Mac
  install, and a new Windows PC. If install.sh fails on a Mac it writes
  LogiSwitch-fix-request.txt to the Desktop (prompt + error + source) and copies it
  to the clipboard: paste it into any Claude chat, apply the answer, run install.sh again.

SOMETHING WRONG?
  Usually you don't have to do anything: when LogiSwitch detects a problem itself
  (crash, a switch that reached no device, blocked device access) it creates the
  report automatically, saves it as LogiSwitch-problem-report.txt on the Desktop
  and shows a notification. Click it (or icon menu > Open automatic problem
  report) to copy it, then paste into any Claude chat. Max one report per 30 min.
  For anything else:
  Icon menu > Create support report for Claude...
     (or Windows: Report.cmd,  Mac: bash report.sh)
  Describe the problem. A text file is saved to the Desktop and copied to the
  clipboard. Paste it into any Claude chat (any account): it tells Claude how the
  tool works and includes diagnostics, logs and the full source, so Claude can
  find the cause and give you corrected files. Username, computer name and
  hardware addresses are removed automatically.

UNINSTALL
  Icon menu > Uninstall...    or Windows: Uninstall.cmd,   Mac: bash uninstall.sh

FILES
  Windows: Install.cmd, Uninstall.cmd, Report.cmd and the .ps1 files
           installs to %LOCALAPPDATA%\LogiSwitch (+ Startup-folder shortcut)
  macOS:   install.sh, uninstall.sh, report.sh, LogiSwitch.swift
           installs to ~/Library/Application Support/LogiSwitch
           (+ ~/Library/LaunchAgents/com.logiswitch.agent.plist)
