enkore / j4-dmenu-desktop

A fast desktop menu
GNU General Public License v3.0
683 stars 69 forks source link

display binary name break dmenu when launching from i3 key binding #60

Closed eoli3n closed 7 years ago

eoli3n commented 7 years ago

Hi,

In a term :

# my old conf
j4-dmenu-desktop --dmenu="dmenu -fn 'hack-10' -h 20 -nb '#202020' -nf '#FFFFFF' -sf '#dc322f' -sb '#202020' -p '>' -b -w 400 -q -o 0.9"
# new conf by adding diplay binary part
j4-dmenu-desktop --dmenu="(cat ; (stest -flx $(echo $PATH | tr : ' ') | sort -u)) | dmenu -fn 'hack-10' -h 20 -nb '#202020' -nf '#FFFFFF' -sf '#dc322f' -sb '#202020' -p '>' -b -w 400 -q -o 0.9"

Are working !

In my .i3/config, actual configuration which is working

#without displaying binary names
bindsym $mod+d exec --no-startup-id j4-dmenu-desktop --dmenu="dmenu -fn 'hack-10' -h 20 -nb '#202020' -nf '#FFFFFF' -sf '#dc322f' -sb '#202020' -p '>' -b -w 400 -q -o 0.9"

but the same cmd with binary name displaying is not working

bindsym $mod+d exec --no-startup-id j4-dmenu-desktop --dmenu="(cat ; (stest -flx $(echo $PATH | tr : ' ') | sort -u)) | dmenu -fn 'hack-10' -h 20 -nb '#202020' -nf '#FFFFFF' -sf '#dc322f' -sb '#202020' -p '>' -b -w 400 -q -o 0.9"

dmenu doesnt show

enkore commented 7 years ago

Probably an escaping/quoting problem. Try putting the command that works in a shell script and run the shell script from the i3 key bind and see whether it still fails.

eoli3n commented 7 years ago

worked, thx