summaryrefslogtreecommitdiff
path: root/lwc
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 /lwc
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 'lwc')
-rwxr-xr-xlwc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lwc b/lwc
index 6c68174..1bdad8b 100755
--- a/lwc
+++ b/lwc
@@ -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