[wiki] [sites] added modified version of dmenu_run script || bit9tream

From: <git_AT_suckless.org>
Date: Tue, 16 Jun 2020 08:32:21 +0200

commit 4c16dcafec65e6ffa428da71a161c004071b1cfa
Author: bit9tream <bit6tream_AT_cock.li>
Date: Tue Jun 16 09:32:13 2020 +0300

    added modified version of dmenu_run script

diff --git a/tools.suckless.org/dmenu/patches/multi-selection/dmenu_run.sh b/tools.suckless.org/dmenu/patches/multi-selection/dmenu_run.sh
new file mode 100755
index 00000000..7b4c25a5
--- /dev/null
+++ b/tools.suckless.org/dmenu/patches/multi-selection/dmenu_run.sh
_AT_@ -0,0 +1,6 @@
+#!/bin/sh
+
+dmenu_path | dmenu "$_AT_" |
+ while read -r cmd; do
+ echo "$cmd" | xargs setsid -f # TODO: make it simpler (just `setsid -f "$cmd"` doesn't work in all cases)
+ done
diff --git a/tools.suckless.org/dmenu/patches/multi-selection/index.md b/tools.suckless.org/dmenu/patches/multi-selection/index.md
index b3c628b0..b3b14eae 100644
--- a/tools.suckless.org/dmenu/patches/multi-selection/index.md
+++ b/tools.suckless.org/dmenu/patches/multi-selection/index.md
_AT_@ -6,9 +6,12 @@ Description
 Without this patch when you press `<Control-Enter>` dmenu just outputs current item and you can't undo that.
 But with this patch dmenu will output all selected items only on exit. And you can also deselect any selected item.
 
+`dmenu_run.sh` is a `dmenu_run` replacement that supports multiple selection patch.
+
 Download
 --------
 * [dmenu-multi-selection-4.9.diff](dmenu-multi-selection-4.9.diff)
+* [dmenu_run.sh](dmenu_run.sh)
 
 Authors
 -------
Received on Tue Jun 16 2020 - 08:32:21 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 16 2020 - 08:36:47 CEST