dmenu

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fe1bcbd6baa72210564e8ce4ee85c71e07670fde
parent bac03cd1ad51621d864fe1f8aeed13a4de6a00ed
Author: Andrew Laack <andrew@laack.co>
Date:   Fri,  6 Mar 2026 14:32:54 -0600

Added back scripts for running dmenu

Diffstat:
M.gitignore | 2--
Admenu_path | 13+++++++++++++
Admenu_run | 2++
3 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,5 +1,3 @@ -dmenu_path -dmenu_run dmenu stest *.o diff --git a/dmenu_path b/dmenu_path @@ -0,0 +1,13 @@ +#!/bin/sh + +cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}" +cache="$cachedir/dmenu_run" + +[ ! -e "$cachedir" ] && mkdir -p "$cachedir" + +IFS=: +if stest -dqr -n "$cache" $PATH; then + stest -flx $PATH | sort -u | tee "$cache" +else + cat "$cache" +fi diff --git a/dmenu_run b/dmenu_run @@ -0,0 +1,2 @@ +#!/bin/sh +dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &