adapts desktop files and fuzzel projects script

This commit is contained in:
Dennis Schoepf 2025-11-27 17:29:38 +01:00
parent 032dff2024
commit 7b118213d4
2 changed files with 32 additions and 0 deletions

View file

@ -18,6 +18,36 @@
exec = "${config.home.homeDirectory}/.config/fuzzel/bin/fuzzel-cliphist.sh";
icon = "xclipboard";
};
open-project = {
type = "Application";
name = "Open Project";
exec = "${config.home.homeDirectory}/.config/fuzzel/bin/fuzzel-projects.sh";
icon = "multitasking-view";
};
close-project = {
type = "Application";
name = "Close Project";
exec = "${config.home.homeDirectory}/.config/fuzzel/bin/fuzzel-cliphist.sh";
icon = "org.gnome.SoundRecorder";
};
lock = {
type = "Application";
name = "Lock";
exec = "hyprlock";
icon = "lock-screen";
};
logout = {
type = "Application";
name = "Logout";
exec = "niri msg action quit";
icon = "administration";
};
shutdown = {
type = "Application";
name = "Shutdown";
exec = "shutdown now";
icon = "com.github.bcedu.shutdownscheduler";
};
};
programs.fuzzel = {

View file

@ -10,5 +10,7 @@ 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