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).
15 lines
615 B
Markdown
15 lines
615 B
Markdown
# 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-current` mode to `shepherd-launcher` that sends `StopCurrent` to shepherdd over IPC and exits.
|
|
- Added Sway keybindings for `Alt+F4`, `Ctrl+W`, and `Home` that execute `shepherd-launcher --stop-current`.
|
|
- Kept controller home behavior in launcher UI unchanged.
|
|
|
|
Key files:
|
|
- `sway.conf`
|
|
- `crates/shepherd-launcher-ui/src/main.rs`
|