Skip to content

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hyprcwd-rs

Outputs the working directory of the currently active window in the hyprland window manager.

Intended for starting a new terminal window from a hotkey, in the directory of the currently active window.

Rust port of https://github.com/vilari-mickopf/hyprcwd, to shave off those milliseconds. Now featuring a more reliable algorithm.

Install

  • cargo install --path .

  • The included flake.nix

  • Binary from the releases page

Usage

Usage: hyprcwd [OPTIONS]

Options:
  -d, --default-dir <DIR>  Directory to be printed if no active window is found
  -h, --help               Print help

Hyprland Lua key binding:

hl.bind("SUPER + T", hl.dsp.exec_cmd([[kitty -d "$(hyprcwd)"]]))

Legacy hyprlang key binding:

bind = $mainMod, T, exec, kitty -d "$(hyprcwd)"

or the equivalent for your terminal app.

About

Outputs the working directory of the currently active window in the hyprland window manager.

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages