xcwd for Hyperland.
hyprland
obviouslyjq
for parsing hyprctl output
yay -S hyprcwd-git
or
sudo make install
hyprcwd
Useful binding for hyprland.conf
$term = alacritty --working-directory "$(hyprcwd)"
bind = $mod, RETURN, exec, $term
Some brave soul decided my humble script wasn't Fast or Safe enough and rewrote it in Rust™. You can check it out here.