Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rachitve6h2g opened this issue Nov 17, 2024 · 1 comment

Comments

@rachitve6h2g
Copy link

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.

@meator
Copy link
Collaborator

meator commented Nov 17, 2024

Try using

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

If that doesn't work, use

set $menu j4-dmenu-desktop --dmenu='bemenu-run.sh' --term="kitty" --log-file=/tmp/j4dd-log --log-file-level=DEBUG > /tmp/j4dd-output 2>&1
bindsym $mod+d exec $menu

and then post the /tmp/j4dd-log and /tmp/j4dd-output files here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants