17 lines
456 B
Bash
Executable file
17 lines
456 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: ")
|
|
session_name=$(basename "$selected")
|
|
|
|
if [ "$selected" != "" ]; then
|
|
# niri msg action focus-workspace "code"
|
|
# zen-beta &
|
|
ghostty -e zellij attach "$session_name" --create
|
|
fi
|