#considerations #hyprcloser

app hyprcloser

Automatically close a window when it loses focus

1 unstable release

new 0.1.0 Mar 24, 2025

#223 in GUI

Download history 93/week @ 2025-03-23

93 downloads per month

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

~5–15MB
~164K SLoC