Mouse not required This is done by sending StopCommand to shepherdd, not by natively closing the window. Sway initiates this to avoid any issues with shepherd-launcher not having focus (as it won't when an activity is running).
615 B
615 B
Sway StopCurrent Keybinds
Prompt summary:
- Move keyboard exit handling out of launcher UI code and into
sway.conf. - Keep controller home behavior as-is.
- Ensure "exit" uses the API (
StopCurrent) rather than closing windows directly.
Implemented summary:
- Added a
--stop-currentmode toshepherd-launcherthat sendsStopCurrentto shepherdd over IPC and exits. - Added Sway keybindings for
Alt+F4,Ctrl+W, andHomethat executeshepherd-launcher --stop-current. - Kept controller home behavior in launcher UI unchanged.
Key files:
sway.confcrates/shepherd-launcher-ui/src/main.rs