A simple and lightweight alternative to the Windows Alt+Tab switcher, built in Rust.
Features:
- Allows user to quickly switch between windows using vim-like keybinds
- Lightweight and resource-efficient.
Installation
- Download the latest release from the Releases tab.
- Extract the archive and run the executable file.
The leader key allows the user to enter hotkey mode providing access to other keybinds.
- Key: Shift + Enter
Once the leader key has been pressed, the following keybinds can be accessed:
- Key: H
Switch focus to the window to the left. - Key: L
Switch focus to the window to the right. - Key: J
Switch focus to the window above. - Key: K
Switch focus to the window below. - Key: N
Switch focus to the next window. - Key: D
Close the current window. - Key: P
Switch focus to the previous window. - Key: ESC
Exits hotkey mode and unregisters all active keybinds.
- Keybinds are registered using the
RegisterHotKey
function. - Keybinds can be unregistered using the
UnregisterHotKey
function. - The
handle_hotkey
function handles incoming hotkey events. - The
WindowManagerMessage
enum is used to communicate between the hotkey handler and the window manager.
Development
- Ensure you have Rust and Cargo installed (https://www.rust-lang.org/tools/install).
- Clone the repository:
git clone https://github.com/jhideki/whirlwin.git