Dotfiles/desktopenvs/hyprlua/scripts/foldersearch.sh

6 lines
325 B
Bash
Executable File

#!/bin/bash
# Open kitty in a directory chosen from the z (autojump) frecency database.
# ~/.z stores "path|rank|timestamp" records; cut extracts just the path (field 1).
# wofi --show=dmenu presents them as a fuzzy list; the selection becomes kitty's cwd.
kitty --directory="$(cat ~/.z | cut -d"|" -f1 | wofi --show=dmenu)"