summaryrefslogtreecommitdiff
path: root/FORK_PATCHES
diff options
context:
space:
mode:
authorSteph Enders <smenders@gmail.com>2022-12-24 10:48:30 -0500
committerSteph Enders <steph@senders.io>2024-06-24 12:57:54 -0400
commiteba1b09b5b72806d90dc255f3dba1eb573fa9c08 (patch)
tree68ee670f9378d5e631b2510bca4d02e273f2350d /FORK_PATCHES
parent2b43dd013a22fc94519b70024f0ad1512d422848 (diff)
add patch: dmenu_omit - filter omitted entries
dmenu_omit is a filtering tool that appends any supplied entries to a list of items to filter from the dmenu result. This allows the user to remove troublesome items that exist in path, that need to exist in path, but are useless from dmenu. dmenu_omit is the command line tool to append these items to the list. dmenu_path was modified to filter based on the items in this list. dmenu_omitlist is the file stored in your configdir containing these files. Makefile was updated to install/uninstall the dmenu_omit
Diffstat (limited to 'FORK_PATCHES')
-rw-r--r--FORK_PATCHES26
1 files changed, 26 insertions, 0 deletions
diff --git a/FORK_PATCHES b/FORK_PATCHES
index 63cb614..408ba23 100644
--- a/FORK_PATCHES
+++ b/FORK_PATCHES
@@ -5,3 +5,29 @@ This is my local fork with some patches applied and maintained
= Patches
+== Filtered Entries
+
+Manually applied a filter to the pipe arguments to omit certain entries.
+Rather than supplying a filtered list, or biasing on recency, this patch omits
+anything that is contained in the supplied configuration file:
+ $XDG_CONFIG_DIR or $HOME/.config/dmenu/dmenu_omitlist
+
+A simple text file that is passed into dmenu_path to filter any items you wish
+to remove. Each path-item name is placed one per line.
+
+The idea being that - dmenu is useful to have /everything/ available in it. But
+some items that you would never call clash with a preinstalled program e.g:
+ fire (a graphics demo) would make it so, after getting installed by mesa,
+filtering for firefox you would need a minimum entry of firef which may break
+what you're muscle memory is use to. Simple push fire into you list and you're
+good :)
+
+It also provide a command line tool to help add filter items from your shell:
+ dmenu_omit fire
+will enter that item and sort your list.
+
+I don't know how portable this is since I wanted to omit the whitespace and that
+required the usage of grep -E (which I know isn't the most portable). Feel free
+to edit dmenu_omit and either supply a cross *nix way, or simply remove the
+whitespace logic from the patch
+