Skip to content

A simple and lightweight windows alt+tab alternative. Built in rust.

Notifications You must be signed in to change notification settings

jhideki/whirlwin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whirlwin

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

  1. Download the latest release from the Releases tab.
  2. Extract the archive and run the executable file.

Usage

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.

Additional Notes:

  • 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

  1. Ensure you have Rust and Cargo installed (https://www.rust-lang.org/tools/install).
  2. Clone the repository:
git clone https://github.com/jhideki/whirlwin.git