this post was submitted on 26 Nov 2023
66 points (100.0% liked)

Unixporn

17525 readers
3 users here now

Unixporn

Submit screenshots of all your *NIX desktops, themes, and nifty configurations, or submit anything else that will make themers happy. Maybe a server running on an Amiga, or a Thinkpad signed by Bjarne Stroustrup? Show the world how pretty your computer can be!

Rules

  1. Post On-Topic
  2. No Defaults
  3. Busy Screenshots
  4. Use High-Quality Images
  5. Include a Details Comment
  6. No NSFW
  7. No Racism or use of racist terms

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 2 years ago (2 children)
[–] [email protected] 3 points 2 years ago* (last edited 2 years ago)

fzf, but i had to wrap it to make it act like a menu

[–] [email protected] 3 points 2 years ago* (last edited 2 years ago) (1 children)

im not comfortable with shell yet, but here's what i did
in sway config i have

for_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

[–] [email protected] 1 points 2 years ago* (last edited 2 years ago) (1 children)

Can you put this in a code-block?

[–] [email protected] 1 points 2 years ago* (last edited 2 years ago)

i originally did but i couldnt put it on split lines and the markdown docs dont mention that at all
tried it again same deal