You're viewing a single thread.
richardisaguy @lemmy.world
What menu is that?
1 0 Replycorrupts_absolutely @sh.itjust.works OP fzf, but i had to wrap it to make it act like a menu
3 0 Replycorrupts_absolutely @sh.itjust.works OP im not comfortable with shell yet, but here's what i did
in sway config i havefor_window [title="example_launcher"] floating enable
set $menu foot -T "example_launcher" -w 240x240 -e sh -c 'dmenu_path | example.sh | xargs swaymsg exec --'and somewhere in my $PATH i have example.sh which looks like this
#!/usr/bin/sh
#
out=$(fzf -e --print-query "$@")
in=$(echo "$out" | head -1)
res=$(echo "$out" | tail -1 )
if test -n "$res"; then
cmd=$res
else
cmd=$in
fi
exec echo "$cmd"there are a couple small issues with the set up though, and also u do need dmenu installed
3 0 ReplyMigratingtoLemmy @lemmy.world Can you put this in a code-block?
1 0 Replycorrupts_absolutely @sh.itjust.works OP i originally did but i couldnt put it on split lines and the markdown docs dont mention that at all
tried it again same deal1 0 Reply