adds fuzzel project helper
This commit is contained in:
parent
4703c104fa
commit
032dff2024
2 changed files with 15 additions and 0 deletions
14
modules/wm/fuzzel/scripts/fuzzel-projects.sh
Executable file
14
modules/wm/fuzzel/scripts/fuzzel-projects.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/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
|
||||
ghostty --working-directory="$selected"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue