me again

  • 1 Post
  • 27 Comments
Joined 2 years 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




  • emacs is close to that besides all the ctrl+ combinations being nonsensical. the actual reason either arent very popular is the steep initial curve and the fact that most people dont even care about editing text that much and also the delayed gratification for the amount of time it takes to get used to. but once ure used to vim u kinda want vim everywhere