I’ve made an application launcher for myself that uses fzf to pick the application. Currently, it launches in an Alacritty window with a special config - it’s a small rectangle that has the fzf dialog, you pick the application and it goes away. That’s all the interaction needed. If I wanted to try to make this “GUI” more generic, what would I use?

  • Ramin Honary@lemmy.ml
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    11 months ago

    I guess it depends on your goals. If this is just for yourself, the solution you are using now sounds just fine, use Alacritty as the GUI.

    If you want to package it as an app all wrapped up in a single binary that you might want to distribute to other people, you could just write a simple C program that imports both FZF and a tiny terminal emulator like ST (the Suckless Terminal), and configure ST in the C program to launch FZF with your unique FZF config, instead of launching /bin/sh. You could even dump your configs as constant strings into your C program so you don’t need any external config files.

      • Ramin Honary@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        11 months ago

        I don’t think ST works on Wayland except through the ordinary Wayland X11 server they have to suppor legacy software. You might want to ask the Suckless people what their opinion is of Wayland and whether they will support it in the future.

        Or you can use any other terminal emulator that does support Wayland, I only recommend ST because it is the simplest one and is specifically designed to be easy to hack.