3 stable releases

1.1.1 Aug 29, 2024
1.1.0 Aug 7, 2024
1.0.0 Jul 31, 2024

#659 in Command line utilities

Download history 90/week @ 2024-07-26 139/week @ 2024-08-02 15/week @ 2024-08-09 1/week @ 2024-08-16 62/week @ 2024-08-23 48/week @ 2024-08-30 27/week @ 2024-09-13 11/week @ 2024-09-20 7/week @ 2024-09-27 2/week @ 2024-10-04

140 downloads per month

MIT/Apache and GPL-3.0-or-later

24KB
166 lines

HyprFocus

GitHub Workflow Status Rustc version Unsafe forbidden crates.io documentation MIT License Apache License

HyprFocus

HyprFocus is a CLI utility designed for Hyprland that enhances your workflow by managing application focus. It either launches an application or brings its most recently used window to the forefront. If the targeted application is already in focus, HyprFocus cleverly shifts attention to the next most recently used window for that application. This functionality ensures seamless access to your application windows with a single command, helping you maintain peak productivity without breaking your flow.

Usage

To use the CLI directly, run the following:

hyprfocus --client "Notion" --launcher "notion-app"

To bind a key in Hyprland to execute HyprFocus, modify your Hyprland configuration file similar to the following example:

bind = CONTROL, N, exec, hyprfocus --client "Notion" --launcher "notion-app"

This would bind the CTRL+N key combination to open Notion or focus the most recently focused window of Notion.

To do

  • Add support for identifying the launcher command of an application by the application name.

Installation

Run the following command to install HyprFocus:

cargo install hyprfocus

Dependencies

~12–22MB
~299K SLoC