@@ -29,24 +29,24 @@ case "${1}" in
2929d | --drun)
3030 r_mode=" drun"
3131 rofi_config=" ${ROFI_LAUNCH_DRUN_STYLE:- $rofi_config } "
32- rofi_args+=(" ${ROFI_LAUNCH_DRUN_ARGS:- } " )
32+ rofi_args+=(" ${ROFI_LAUNCH_DRUN_ARGS[@] :- } " )
3333 rofi_args+=(" -run-command" " sh -c 'uwsm app -- {cmd} || {cmd}'" )
3434 ;;
3535w | --window)
3636 r_mode=" window"
3737 rofi_config=" ${ROFI_LAUNCH_WINDOW_STYLE:- $rofi_config } "
38- rofi_args+=(" ${ROFI_LAUNCH_WINDOW_ARGS:- } " )
38+ rofi_args+=(" ${ROFI_LAUNCH_WINDOW_ARGS[@] :- } " )
3939 ;;
4040f | --filebrowser)
4141 r_mode=" filebrowser"
4242 rofi_config=" ${ROFI_LAUNCH_FILEBROWSER_STYLE:- $rofi_config } "
43- rofi_args+=(" ${ROFI_LAUNCH_FILEBROWSER_ARGS:- } " )
43+ rofi_args+=( " ${ROFI_LAUNCH_FILEBROWSER_ARGS[@] :- } " )
4444 ;;
4545r | --run)
4646 r_mode=" run"
4747 rofi_config=" ${ROFI_LAUNCH_RUN_STYLE:- $rofi_config } "
4848 rofi_args+=(" -run-command" " sh -c 'uwsm app -- {cmd} || {cmd}'" )
49- rofi_args+=(" ${ROFI_LAUNCH_RUN_ARGS:- } " )
49+ rofi_args+=(" ${ROFI_LAUNCH_RUN_ARGS[@] :- } " )
5050 ;;
5151h | --help)
5252 echo -e " $( basename " ${0} " ) [action]"
@@ -59,7 +59,7 @@ h | --help)
5959* )
6060 r_mode=" drun"
6161 ROFI_LAUNCH_DRUN_STYLE=" ${ROFI_LAUNCH_DRUN_STYLE:- $ROFI_LAUNCH_STYLE } "
62- rofi_args+=(" ${ROFI_LAUNCH_DRUN_ARGS:- } " )
62+ rofi_args+=(" ${ROFI_LAUNCH_DRUN_ARGS[@] :- } " )
6363 rofi_args+=(" -run-command" " sh -c 'uwsm app -- {cmd} || {cmd}'" )
6464 rofi_config=" ${ROFI_LAUNCH_DRUN_STYLE:- $rofi_config } "
6565 ;;
@@ -107,6 +107,7 @@ rofi_args+=(
107107# // launch rofi
108108rofi -show " ${r_mode} " " ${rofi_args[@]} " &
109109disown
110+ echo -show " ${r_mode} " " ${rofi_args[@]} "
110111
111112# // Set full screen state
112113# TODO Contributor notes:
0 commit comments