Sujet : Re: Another GNU/Linux Video Extravaganza!
De : sc (at) *nospam* fiat-linux.fr (Stéphane CARPENTIER)
Groupes : comp.os.linux.advocacyDate : 31. May 2024, 20:34:12
Autres entêtes
Organisation : Mulots' Killer
Message-ID : <665a1824$0$7510$426a74cc@news.free.fr>
References : 1 2 3 4 5
User-Agent : slrn/pre1.0.4-9 (Linux)
Le 27-05-2024, RonB <
ronb02NOSPAM@gmail.com> a écrit :
On 2024-05-26, Stéphane CARPENTIER <sc@fiat-linux.fr> wrote:
>
If I had a script like that, I wouldn't launch it from a terminal. I'd
launch it from a keystroke with the help of wofi. Something like when I
want to see a pdf file:
bindsym $mod+z exec find ~ \( -path ~/Download\* -o -path ~/divers\* -o -path ~/Lecture/Pdf/ALire/\* \) -a \( -name "*.pdf" -o -name "*.ps" -o -name "*.epub" \) 2>/dev/null | wofi -d | x
args -r -I % zathura "%"
>
When I press [Windows]+[z], there is find who will look for my pdf
files, open the list in wofi and wofi open the one I select in zathura.
>
Wofi, rofi are dmenu are very good to launch graphical applications
without the need to open a terminal.
>
I'm so used to going to a terminal that it's second nature to me now.
You do what you want, I'm not telling you to change anything. I'm
telling you only what I'm doing. And in fact, if you want to know, I can
use the terminal to launch a graphical application if I'm already using
it. For example, I'm in a directory and see a pdf or an image which I
don't remember, I can open it directly with zathura or feh from the
terminal. Or when I download something, like his video, I have an alias
"md" which opens the most recent video in mpv. When I'm done, I have
another alias "rd" to delete it. It's fast and easy.
Guake (which I use for full screen stuff) is Shift-Control-N.
In fact, I was never a fan of it. It's as easy to open a new terminal
with [Windows]+[ENTER] and to close is with [CTRL]+[D] that I never feel
the use to configure a falling terminal.
I'll take a look at wofi, but what I've got works well for me. And it looks
like I would have to learn a bit (or maybe a bit more) before using wofi and
I already know how to do what I do.
If you want to use wofi/dmenu/rofi to open the results of script, it
will take some time but nothing impressive.
But if you want just to launch a GUI application, there is nothing to
learn. You launch it, start writing the name of your application and
select it to open it. It works right out of the box.
Taking a closer look at your "binding" (if that's the correct term) it looks
like you still have to choose a file name, once it's opened.
There is a moment I need to chose the file I want to open, it's not
magical. But I don't chose the name inside zathura, when zathura opens,
it's already loaded. The list of my pdf names are displayed in wofi, so
I use wofi to select the one I want (with a few letters to restrict the
selection and with the arrow when it's close).
similar with my Emacs script when I want to write a file in Fountain format.
Yes, it looks similar.
-- Si vous avez du temps à perdre :https://scarpet42.gitlab.io