~adnano/wmenu-devel

add wmenu_run script, similar to dmenu_run script v1 SUPERSEDED

sewn: 1
 add wmenu_run script, similar to dmenu_run script

 2 files changed, 10 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~adnano/wmenu-devel/patches/49727/mbox | git am -3
Learn more about email & git

[PATCH] add wmenu_run script, similar to dmenu_run script Export this patch

---
 meson.build | 2 ++
 wmenu_run   | 8 ++++++++
 2 files changed, 10 insertions(+)
 create mode 100755 wmenu_run

diff --git a/meson.build b/meson.build
index 2350694..951369a 100644
--- a/meson.build
+++ b/meson.build
@@ -33,6 +33,8 @@ rt = cc.find_library('rt')
subdir('protocols')
subdir('docs')

install_data('wmenu_run', install_dir: get_option('bindir'))

executable(
	'wmenu',
	files(
diff --git a/wmenu_run b/wmenu_run
new file mode 100755
index 0000000..16a2d3f
--- /dev/null
+++ b/wmenu_run
@@ -0,0 +1,8 @@
#!/bin/sh

IFS=:
for p in $PATH; do
	for e in $p/*; do
		[ -x $e ] && echo ${e##*/}
	done
done | sort -u | wmenu "$@" | ${SHELL:-"/bin/sh"} &
\ No newline at end of file
-- 
2.43.2
Hi, thanks for the patch! I'll have to hold back on applying this patch for a
bit. I'm still unsure about which approach I want to use to implement this.

See also previous discussion: https://lists.sr.ht/~adnano/wmenu-devel/patches/39820