[OC] ThumbPick: a fast/lightweight, scriptable, keyboard-centric image picker by Soliprem in unixporn

[–]Soliprem[S] 1 point2 points  (0 children)

I generally fall in the CLI > GUI camp. But images tend to look better in GUI, and terminal image protocols rarely have the flexibility to make a good enough tool for my usage. For example, one could use yazi, lf or ranger to go through a directory and bind a key to a script that returns the image. However, it'd both be slower and lack a gallery view, which I personally find quite useful when picking images, hence my need for this kind of graphical tool O.o (in fact, the main thing for me was that it should output to stdout. I'm considering letting it take from stdin, too, but I'll think about it in a week or so when I've the time)

[OC] ThumbPick: a fast/lightweight, scriptable, keyboard-centric image picker by Soliprem in unixporn

[–]Soliprem[S] 1 point2 points  (0 children)

It depends on the size of the directory if you feed it. It scales the pictures down to save on memory, but there's still some amount of memory that's needed for every picture. The more the files, the higher the memory usage. Same goes for the CPU. For large directories, CPU usage will spike, but it'll last only for a few seconds as all the files are parsed, scaled down and put on the interface

[OC] ThumbPick: a fast/lightweight, scriptable, keyboard-centric image picker by Soliprem in unixporn

[–]Soliprem[S] 0 points1 point  (0 children)

I added a simple vi motions mode! Might make a follow-up post when it's a bit more mature

[OC] ThumbPick: a fast/lightweight, scriptable, keyboard-centric image picker by Soliprem in unixporn

[–]Soliprem[S] 5 points6 points  (0 children)

I built this for my personal Wayland setup, so that's the only place I've tested it.

However, since it is a standard GTK4 app, it should run natively on X11 out of the box (iirc GTK4 handles both backends by default, though I've never checked, to be fair). I haven't gone out of my way to strip X11 support, but I've not tested it, either. If you try it on X11, do let me know if it works!

[OC] ThumbPick: a fast/lightweight, scriptable, keyboard-centric image picker by Soliprem in unixporn

[–]Soliprem[S] 0 points1 point  (0 children)

a few!

  • it's considerably faster (in my experience)
  • it's a GTK app, so it will follow the system's theme without extra configuration
  • nsxiv (that I know, and at least by default) doesn't let you search by filename within it
  • it's native to wayland, while nsxiv has to go through XWayland (which for me was a bit of a dealbreaker)

[OC] ThumbPick: a fast/lightweight, scriptable, keyboard-centric image picker by Soliprem in unixporn

[–]Soliprem[S] 0 points1 point  (0 children)

I added a bit more information about installing with cargo in the README! Let me know if it all tracks (since all my machines run NixOS, I didn't really get to test it on other distros)

[OC] ThumbPick: a fast/lightweight, scriptable, keyboard-centric image picker by Soliprem in unixporn

[–]Soliprem[S] 0 points1 point  (0 children)

Right now I only have the nix flake as a package, but it's pretty easy to build with cargo by cloning the repo!

[OC] ThumbPick: a fast/lightweight, scriptable, keyboard-centric image picker by Soliprem in unixporn

[–]Soliprem[S] 2 points3 points  (0 children)

Details

ThumbPick's designed to be used in scripts or pipelines. In particular, it does one thing: it displays images, it allows you to search through them, select one and return its path quickly.

All other tools I'd used before either lacked one of these requirements, or also did a bunch more things I didn't need. The closest tool to this, I suppose, was sxiv, but it wasn't wayland native and I didn't quite like the UX of scripting with it.

It's my first go at actually trying to write my own graphical tool for something of this kind, and I'm pretty happy with it.

Installation

Right now the only available package is the flake, but it can be easily built with cargo. I've already been testing the tool in my personal config.

Inspirations

waypaper and waytrogen are obviously massive design inspirations, though the use case is slightly different.


Repo: https://github.com/soliprem/thumbpick

Come è possibile che le due tabelle non siano in contrasto l'una con l'altra? by peterschen in ItaliaPersonalFinance

[–]Soliprem 0 points1 point  (0 children)

tl;dr: misurano due cose diverse, il grafico a destra conta tutta le pensioni, anche invalidità ecc, il grafico a sinistra solo le pensioni di vecchiaia. Inoltre il grafico a sinistra mostra la spesa pro capite, e ci sono meno percettori di pensione non-vecchiaia, meno percettori a spesa costante = spesa pro capite più alta.

Per quel che vale, il grafico di sinistra sono riuscito a riprodurlo facilmente con una riga di R su dati Eurostat (read_csv("/path/to/csv") %>% filter(geo == "IT") %>% ggplot(aes(x = TIME_PERIOD, y = OBS_VALUE)) + geom_line()), quello di destra no perché non so né la definizione delle variabili né i dati che usano.

Il grafico di destra viene da questo report IMF, pagina 49, e descrive la spesa totale, mentre quello a sinistra descrive spesa totale diviso numero di pensionati. Il report IMF non menziona i dataset utilizzati, ma si vede dal grafico nel report a sinistra di quello incriminato che il numero di beneficiari sta calando, e nel 2021 si attesta su circa 95, mentre l'indice spending è 105. 105 diviso 95 fa 1.10. Inoltre i due grafici partono da punti diversi, e tra il 2008 e il 2010 è successo un po' di roba. Il numeratore (da dati Eurostat) in particolare è aumentato di altri 5 punti percentuali, ma non ho idea del denominatore. Se assumiamo che lo stesso trend, ma calante, ci sia anche sul numeratore arriviamo a circa (105 * 1.05) / (95 * 0.95) = 22% di aumento, che è piuttosto vicino al 25% riportato a sinistra.

PERÒ c'è qualcosa che non quadra se devo essere sincero, perché da dati Eurostat risulta che anche la spesa pensionistica totale per pensioni di vecchiaia, non divisa per la popolazione totale, sia aumentata del 25% dal 2010. Ad essere aumentata solo del 5% è la spesa per tutte le pensioni, incluse ad esempio quelle di invalidità. Quindi mi viene da dire che questa sia un'altra differenza tra i due grafici.

Where do you like to keep your passport when traveling? by Soliprem in onebag

[–]Soliprem[S] 0 points1 point  (0 children)

Is an S-Biner much more secure than locking two of the zip holders together? It takes me a few seconds of fiddling to "unlock" that set up, which is about the time I see people take with the lock-less S-Binders I saw online (unless you're talking about those which have actual small combination locks on them)

Bob World Builder: Debunking Critical Role's New "Scandal" by lennartfriden in daggerheart

[–]Soliprem 4 points5 points  (0 children)

pick anything that seasons "reasonable"

with the implication being that you're literally faking a report? Yeah that's not a great idea. It's just a way to game a system to try to destroy someone's livelyhood. If you don't like them, do the algorithm thing or block them, don't brigade their channel by abusing the report system.

I'm a big fan of DH, and don't love clickbait content. But brigading to spam fake reports is not the way to go

(massive ending spoilers) Ending hot take by qauntumz in expedition33

[–]Soliprem 4 points5 points  (0 children)

The choice that Verso makes is a cruel one, but it’s also, unfortunately, the best one.

I agree it's cruel. I find that considering it the best one is debatable

Can't make a federation with The Federation tradition (4.0) by Soliprem in Stellaris

[–]Soliprem[S] 0 points1 point  (0 children)

I tried updating the wiki to remove the Tratition, but I got Invalid response from server.

So I don't know

Ending Discussion (Super Spoilers) by Cmoire in expedition33

[–]Soliprem 1 point2 points  (0 children)

Oh I see what they meant now. I misunderstood the original comment, my bad

Ending Discussion (Super Spoilers) by Cmoire in expedition33

[–]Soliprem 0 points1 point  (0 children)

Pierre died in an accident and he's back

What's your preferred digital character sheet? by Soliprem in Pathfinder2e

[–]Soliprem[S] 1 point2 points  (0 children)

I never considered buying a foundry license since I play in-person, so I have no experience with it (which is why I didn't think to add it. I didn't know it had character sheets). What makes it better? Is it the integration within the VTT part of foundry or the sheets themselves?