From 4d299034e27c03a8813eb2bf41322e65e6142037 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Mon, 2 Oct 2023 05:19:29 +0800 Subject: [PATCH] Properly quote variables --- .config/scripts/wm/menucmd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.config/scripts/wm/menucmd b/.config/scripts/wm/menucmd index 7984250..5b80fd7 100755 --- a/.config/scripts/wm/menucmd +++ b/.config/scripts/wm/menucmd @@ -47,8 +47,8 @@ bemenu_cmd() --sb $base02 --sf $cyan\ --hb $base02 --hf $cyan\ --scb $base02 --scf $cyan\ - --bdr $violet - $@ + --bdr $violet\ + "$@" } dmenu_cmd() @@ -57,7 +57,7 @@ dmenu_cmd() -fn "FiraCodeSemibold-9"\ -nb $base03 -nf $base0\ -sb $base02 -sf $cyan\ - $@ + "$@" } rofi_cmd() @@ -66,9 +66,9 @@ rofi_cmd() } if [[ -n $WAYLAND_DISPLAY ]]; then - bemenu_cmd $@ + bemenu_cmd "$@" elif [[ -n $DISPLAY ]]; then - rofi_cmd $@ + rofi_cmd "$@" else echo "Error: No Wayland or X11 display detected" >&2 exit 1