aboutsummaryrefslogtreecommitdiff
path: root/dmenu/dmenu_path
diff options
context:
space:
mode:
authorBlista Kanjo2021-10-21 13:50:54 -0400
committerBlista Kanjo2021-10-21 13:50:54 -0400
commitfb1ed3c4978c31ab1743ea08f580c616d51e1dfd (patch)
treeb9c04d7f8ff62d8a939dcd6c9361d4834eb63184 /dmenu/dmenu_path
parent22f5f96a7d0e3d1a3281c63a6cedfe1c709e671e (diff)
custom build of dmenu to make emojis work
Diffstat (limited to 'dmenu/dmenu_path')
-rwxr-xr-xdmenu/dmenu_path13
1 files changed, 13 insertions, 0 deletions
diff --git a/dmenu/dmenu_path b/dmenu/dmenu_path
new file mode 100755
index 0000000..3a7cda7
--- /dev/null
+++ b/dmenu/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