sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 0b8c7ce618705541807a5f9df551b6cb30111ed9
parent b295d6f6e5085ddea5ee46cadd71f6eb3b462c62
Author: Phillip Tischler <ptgit@protonmail.com>
Date:   Sun, 19 Mar 2023 00:31:48 +0100

[dmenu][patch][tidy] Introduce patch 'tidy' for dmenu

Tidy up dmenu by only showing and searching through wanted entries.

Diffstat:
Atools.suckless.org/dmenu/patches/tidy/dmenu-tidy-20230318-dfbbf7f.diff | 33+++++++++++++++++++++++++++++++++
Atools.suckless.org/dmenu/patches/tidy/index.md | 27+++++++++++++++++++++++++++
2 files changed, 60 insertions(+), 0 deletions(-)

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 @@ -0,0 +1,33 @@ +From 4d815b67812fd41e912545c344a45e5399ac8fde Mon Sep 17 00:00:00 2001 +From: Phillip Tischler <git@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 +@@ -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 @@ -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@protonmail.com>