me again

  • 3 Posts
  • 64 Comments
Joined 10 months ago
cake
Cake day: September 4th, 2023

help-circle



















  • 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