- active-window: Get focused window info (class, pid) for Niri/Hyprland - active-path: Get CWD of focused terminal window These utilities abstract compositor-specific APIs for use in scripts. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
6 lines
143 B
Nix
6 lines
143 B
Nix
{pkgs, ...}:
|
|
pkgs.writeShellApplication {
|
|
name = "active-path";
|
|
runtimeInputs = [pkgs.procps];
|
|
text = builtins.readFile ./active-path;
|
|
}
|