#window-focus #close #automatic #action

app hyprcloser

Automatically close a window when it loses focus

1 unstable release

0.1.0 Mar 24, 2025

#1222 in GUI

MIT and GPL-3.0-or-later

7KB

hyprcloser

This crate tracks the current and previous window in Hyprland and closes the previous window when it loses focus.

Installation

  1. Clone the repo.
  2. Run cargo run.

Usage

  1. Open clipse.
  2. Perform an action that causes clipse to lose focus. It will now close.

Considerations

  • If running the program to be automatically closed in kitty, the configuration option confirm_os_window_close must be set to 0 or else kitty will ask to confirm if you want to close the window, requiring an extra keypress.

Dependencies

~3.5–7MB
~121K SLoC