adds fuzzel project helper

This commit is contained in:
Dennis Schoepf 2025-11-27 17:15:18 +01:00
parent 4703c104fa
commit 032dff2024
2 changed files with 15 additions and 0 deletions

View 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

View file

@ -303,6 +303,7 @@ binds {
Mod+M hotkey-overlay-title="System Monitor" { spawn-sh "ghostty -e btop"; }
Mod+N hotkey-overlay-title="File Manager" { spawn "nautilus"; }
Mod+V hotkey-overlay-title="Clipboard" { spawn-sh "~/.config/fuzzel/bin/fuzzel-cliphist.sh"; }
Mod+W hotkey-overlay-title="Work on project" { spawn-sh "~/.config/fuzzel/bin/fuzzel-projects.sh"; }
Mod+Alt+L hotkey-overlay-title="Lock the Screen: hyprlock" { spawn "hyprlock"; }
// Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc.