summaryrefslogtreecommitdiff
path: root/dmenu_books
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2025-08-30 09:40:41 -0500
committerzachir <zachir@librem.one>2025-08-30 09:40:41 -0500
commita26e6ae5253d95e7238dab20e298129a468e04f6 (patch)
tree859d057fa005024b4241a546b86713fafe9963b0 /dmenu_books
parentb3954287e7d50d744da3221677c89e108cff36c4 (diff)
Improve dmenu support
You can now (again) pass multiple flags to dmenu through -d flags, as well as for some scripts all args are passed to dmenu.
Diffstat (limited to 'dmenu_books')
-rwxr-xr-xdmenu_books2
1 files changed, 1 insertions, 1 deletions
diff --git a/dmenu_books b/dmenu_books
index a579476..645ece8 100755
--- a/dmenu_books
+++ b/dmenu_books
@@ -5,7 +5,7 @@ printhelp () {
}
while getopts "hd:" o; do case "${o}" in
- d) ARG="$OPTARG" ;;
+ d) ARG=${ARG:+"$ARG "}"$OPTARG" ;;
*) printhelp ;;
esac done