16 lines
404 B
Bash
Executable file
16 lines
404 B
Bash
Executable file
#!/bin/sh
|
|
|
|
projects=$(fd -d=1 -t=d . ~/dev)
|
|
projects_with_names=()
|
|
|
|
for project in ${projects[*]}; do
|
|
projects_with_names+=("$(basename $project)\t$project")
|
|
done
|
|
|
|
selected=$(printf "$projects_with_names" | fuzzel --dmenu --with-nth=1 --accept-nth=2 --prompt "Work on: ")
|
|
|
|
if [ "$selected" != "" ]; then
|
|
niri msg action focus-workspace "code"
|
|
firefox &
|
|
ghostty --working-directory="$selected"
|
|
fi
|