https://github.com/macedigital/sway-previous-focus
Quick navigation to previously focused windows via hotkeys in Sway window manager
https://github.com/macedigital/sway-previous-focus
golang sway swaywm
Last synced: 3 months ago
JSON representation
Quick navigation to previously focused windows via hotkeys in Sway window manager
- Host: GitHub
- URL: https://github.com/macedigital/sway-previous-focus
- Owner: macedigital
- License: mit
- Created: 2025-02-09T11:27:42.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-09T22:15:29.000Z (4 months ago)
- Last Synced: 2025-02-09T22:25:48.664Z (4 months ago)
- Topics: golang, sway, swaywm
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sway-previous-focus
Static binary that marks previous window to quickly toggle between last recently used ones.
This project uses Sway IPC via [go-sway][1] library.
## Getting started
1. Compile source or put release binary into a folder in `$PATH` (e.g. `~/.local/bin`).
2. Start script while running in a Sway session (or enable systemd unit for auto re-starts).
3. Bind key in Sway configuration to jump to window marked with `_prev`.## Credits
Inspired by and
discussion at .[1]: https://github.com/joshuarubin/go-sway