Ancestors

Written by blinry on 2025-01-18 at 21:36

When I open a new terminal, I really like it if it automatically has the same working directory as the currently focused one.

On Xorg, I used a little tool called xcwd to tell me what that working directory is, but it doesn't work on #Wayland.

So I wrote my own one! ✨ I called it ycwd, and it sparks a lot of joy for me! :)

https://github.com/blinry/ycwd

=> More informations about this toot | More toots from blinry@chaos.social

Toot

Written by Joshix on 2025-01-18 at 22:16

@blinry nice. Didn't know about xcwd. Cool idea.

Configured a keyboard shortcut in xfce (Xorg) to run:

sh -c 'exec kitty "--working-directory=$(ycwd "$(xdotool getwindowfocus getwindowpid)")"'

=> More informations about this toot | More toots from joshix@fosspri.de

Descendants

Written by blinry on 2025-01-18 at 22:22

@joshix Oh neat, could I add that to the README? :)

=> More informations about this toot | More toots from blinry@chaos.social

Written by Joshix on 2025-01-18 at 22:31

@blinry created a pr ;)

=> More informations about this toot | More toots from joshix@fosspri.de

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113851668731530409
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
268.411182 milliseconds
Gemini-to-HTML Time
1.231594 milliseconds

This content has been proxied by September (3851b).