[wiki] [sites] [dmenu][patch][tidy] Introduce patch 'tidy' for dmenu || Phillip Tischler

From: <git_AT_suckless.org>
Date: Sun, 19 Mar 2023 00:33:09 +0100

commit 0b8c7ce618705541807a5f9df551b6cb30111ed9
Author: Phillip Tischler <ptgit_AT_protonmail.com>
Date: Sun Mar 19 00:31:48 2023 +0100

    [dmenu][patch][tidy] Introduce patch 'tidy' for dmenu
    
    Tidy up dmenu by only showing and searching through wanted entries.

diff --git a/tools.suckless.org/dmenu/patches/tidy/dmenu-tidy-20230318-dfbbf7f.diff b/tools.suckless.org/dmenu/patches/tidy/dmenu-tidy-20230318-dfbbf7f.diff
new file mode 100644
index 00000000..22a84a92
--- /dev/null
+++ b/tools.suckless.org/dmenu/patches/tidy/dmenu-tidy-20230318-dfbbf7f.diff
_AT_@ -0,0 +1,33 @@
+From 4d815b67812fd41e912545c344a45e5399ac8fde Mon Sep 17 00:00:00 2001
+From: Phillip Tischler <git_AT_geilerschas.at>
+Date: Sun, 19 Mar 2023 00:03:03 +0100
+Subject: [PATCH] asd
+
+---
+ dmenu_path | 12 +++---------
+ 1 file changed, 3 insertions(+), 9 deletions(-)
+
+diff --git a/dmenu_path b/dmenu_path
+index 3a7cda7..9a7e661 100755
+--- a/dmenu_path
++++ b/dmenu_path
+_AT_@ -1,13 +1,7 @@
+ #!/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"
++if [ -z "${DMENU_PATH}" ] ; then
++ stest -flx $PATH
+ else
+- cat "$cache"
++ stest -flx $DMENU_PATH
+ fi
+--
+2.30.2
+
diff --git a/tools.suckless.org/dmenu/patches/tidy/index.md b/tools.suckless.org/dmenu/patches/tidy/index.md
new file mode 100644
index 00000000..0d2451a3
--- /dev/null
+++ b/tools.suckless.org/dmenu/patches/tidy/index.md
_AT_@ -0,0 +1,27 @@
+tidy
+======
+
+Description
+-----------
+This patch introduces an easy way of reducing the amount of programs that are searched
+through and shown in dmenu by using $DMENU_PATH as the primary source of programs and $PATH
+as a fallback in case $DMENU_PATH is not configured. To configure the new environment variable
+put something like the following into your ~/.xinitirc for example:
+
+ export DMENU_PATH="/home/${USER}/.local/bin"
+
+Please note, that even if you have $DMENU_PATH configured, programs must still be available
+in $PATH! A sensible way to achieve this would be via symlinks for example:
+
+ ln -s /usr/bin/<program> ~/.local/bin/.
+
+Please also note, that this patch also gets rid of caching any applications, since I
+don't see any reason for it to be kept, especially since we are trying to tidy up.
+
+Download
+--------
+* [dmenu-tidy-20230318-dfbbf7f.diff](dmenu-tidy-20230318-dfbbf7f.diff)
+
+Authors
+-------
+* Phillip Tischler <ptgit_AT_protonmail.com>
Received on Sun Mar 19 2023 - 00:33:09 CET

This archive was generated by hypermail 2.3.0 : Sun Mar 19 2023 - 00:36:53 CET