dmenu

Simple dynamic menu for X
git clone https://git.sinitax.com/suckless/dmenu
Log | Files | Refs | README | LICENSE | sfeed.txt

dmenu_path (240B)


      1#!/bin/sh
      2
      3cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}"
      4cache="$cachedir/dmenu_run"
      5
      6[ ! -e "$cachedir" ] && mkdir -p "$cachedir"
      7
      8IFS=:
      9if stest -dqr -n "$cache" $PATH; then
     10	stest -flx $PATH | sort -u | tee "$cache"
     11else
     12	cat "$cache"
     13fi