Skip to content

j4-dmenu-desktop doesn't recognize bemenu opts set in .zshrc or thru any script  #185

@rachitve6h2g

Description

@rachitve6h2g

I used a script bemenu-run.sh script :

#!/bin/env bash

BEMENU_ARGS=(-n -i -p ' ' --bdr '#cba6f7' --center --scrollbar autohide -l 10 --border 1 --border-radius 10 --width-factor 0.5 --fn JetBrainsMonoNerdFont:10 --fb "#1e1e2e" \ 
    --ff "#cdd6f4" --nb "#1e1e2e" --nf "#cdd6f4" --tb "#1e1e2e" --hb "#1e1e2e" --tf "#f38ba8" --hf "#f9e2af" --af "#cdd6f4" --ab "#1e1e2e" --no-exec "$@")

if [[ "$1" == 'dmenu' ]]; then
    bemenu-run "${BEMENU_ARGS[@]}"
else
    bemenu "${BEMENU_ARGS[@]}"
fi

Set it as a $menu variable in sway config

set $menu j4-dmenu-desktop --dmenu='bemenu-run.sh' --term="kitty"
bindsym $mod+d exec $menu

I have added the ~/.local/bin to path.
The above line works on the terminal but not thru the config. Even on providing the whole path it doesn't work. But it does on the terminal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions