summaryrefslogtreecommitdiff
path: root/fdc
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 /fdc
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 'fdc')
-rwxr-xr-xfdc2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdc b/fdc
index 6cf3942..6d63ba5 100755
--- a/fdc
+++ b/fdc
@@ -11,7 +11,7 @@ printhelp () {
#{{{ getopts
while getopts "hd:u:" o; do case "${o}" in
- d) ARG="$OPTARG" ;;
+ d) ARG=${ARG:+"$ARG "}"$OPTARG" ;;
u) URL="$OPTARG" ;;
*) printhelp ;;
esac done