Crates.io | hyprfocus |
lib.rs | hyprfocus |
version | 1.1.1 |
source | src |
created_at | 2024-07-31 16:23:00.263353 |
updated_at | 2024-08-29 19:12:47.049156 |
description | Open or focus your apps instantly |
homepage | |
repository | https://github.com/liamwh/HyprFocus |
max_upload_size | |
id | 1321084 |
size | 70,668 |
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.
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.
Run the following command to install HyprFocus:
cargo install hyprfocus