summary refs log tree commit diff
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2025-06-12 05:41:07 +0300
committerNakidai <nakidai@disroot.org>2025-06-12 05:41:07 +0300
commit0c89ae372ef539839d33ff898d8c108c8e0a7ab9 (patch)
tree84c532276d511148a5e5868b218783a3f015c2d7
parenta62b26565d595f292f17bdd6d36a4148de446bb6 (diff)
downloadfp-0c89ae372ef539839d33ff898d8c108c8e0a7ab9.tar.gz
fp-0c89ae372ef539839d33ff898d8c108c8e0a7ab9.zip
Add fprun script
-rwxr-xr-xfprun11
1 files changed, 11 insertions, 0 deletions
diff --git a/fprun b/fprun
new file mode 100755
index 0000000..6893fd3
--- /dev/null
+++ b/fprun
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# this script uses fp to search for file in /bin, then executes it with nohup
+# and redirecting output to /dev/null (meaning terminal can be closed after
+# running a program). Can be used as a lightweight and more crossplatform (can
+# be ran on both X and Wayland) replacement for dmenu[1]
+#
+# [1] https://tools.suckless.org/dmenu/
+
+PROG="`fp /bin 10`"
+nohup "$PROG" > /dev/null 2>&1 &