Skip to content

Open new terminal in current directory/xcwd alternative #998

Answered by blinry
blinry asked this question in Q&A
Discussion options

You must be logged in to vote

Decided to write my own little tool for this, which I called ycwd :) It allows you to write a key binding like this:

Mod+Return { spawn "bash" "-c" "kitty --working-directory=$(ycwd $(niri msg --json focused-window | jq .pid))"; }

It could be neat to even include the logic for how to find the focused window for different compositors?

Thanks for the pointer to niri msg, @YaLTeR!

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by blinry
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants