What the Cursor? - An introduction to the new hyprcursor format (blog.vaxry.net)
from morrowind@lemmy.ml to linux@lemmy.ml on 11 Mar 2024 05:11
https://lemmy.ml/post/13026306

#linux

threaded - newest

thingsiplay@beehaw.org on 11 Mar 2024 05:24 next collapse

Neat!

vhstape@lemmy.sdf.org on 11 Mar 2024 05:25 next collapse

Interesting. I didn’t realize XCursor predates most image formats XD

deadbeef79000@lemmy.nz on 11 Mar 2024 08:33 collapse

X* predates almost everything still in common use.

Which is, frankly, amazing.

It’s also why Wayland took (is taking) so long. It has to compete against X11 with decades of development.

That’s a tall order.

kylian0087@lemmy.world on 11 Mar 2024 09:31 collapse

X* predates almost everything still in common use.

it is ancient when talking about computer related things. 1984 was the initial release. Almost twice my age holy!

ThirdWorldOrder@lemm.ee on 11 Mar 2024 16:14 collapse

Well I’ll just go ahead and die of old age then since I was alive during its initial release

SturgiesYrFase@lemmy.ml on 11 Mar 2024 06:31 next collapse

Thanks for sharing this, was a neat look under the hood.

BlueEther@no.lastname.nz on 11 Mar 2024 06:51 next collapse

interesting read

Fisch@lemmy.ml on 11 Mar 2024 07:07 next collapse

I hope GTK and GNOME (or is GTK part of GNOME?) adopt this, I didn’t even know just how bad the inefficiency with todays cursors is. Having a single svg for each cursor and rendering it server-side makes so much more sense.

Did someone already open an issue for this?

witty_username@feddit.nl on 11 Mar 2024 10:22 collapse

GTK is mainly developed by Gnome
en.m.wikipedia.org/wiki/GTK

Thordros@hexbear.net on 11 Mar 2024 07:26 next collapse

That was a very cool read. I’m not particularly technical—I can build a PC and install an OS, and that’s about it—and I understood most of it. I had no idea that cursors were such heavy pieces of crap!

N0x0n@lemmy.ml on 11 Mar 2024 08:00 next collapse

Interesting and fun read, thank you !

In the beginning, the earth was without form, and void. Wait, a bit too far behind.

😁

mindbleach@sh.itjust.works on 11 Mar 2024 17:49 collapse

In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move.

sibloure@beehaw.org on 11 Mar 2024 11:26 next collapse

Very cool. I wish the entirety of the computer’s interface was scalable SVG so any custom resolution is possible and looks good.

morrowind@lemmy.ml on 11 Mar 2024 14:54 collapse

Yeah vector gui is a very cool idea. That said, arbitrary scaling on windows “just works” these days so definitely possible on Linux too without any radical tech changes

VinesNFluff@pawb.social on 11 Mar 2024 11:34 next collapse

I hope this becomes popular enough that a lot of major distros start adopting it as a default

Specifically because I want to see turbo-weirdos talk about how higher-quality cursors are “bloat” or “against KISS” for the next 10 years. 💀

Grass@sh.itjust.works on 11 Mar 2024 16:13 next collapse

I snorted my coffee reading this. It’s probably more in the inevitably become true category rather than funny category too

VinesNFluff@pawb.social on 11 Mar 2024 16:49 collapse

If none of my predictions come true, I made some peeps laugh and that’s enough

If they do I get to call back to this post and pretend I’m smart (I am not)

Either way, it’s a net positive.

Killing_Spark@feddit.de on 11 Mar 2024 17:37 collapse

Don’t forget to delete this comment before you call back to the original one. Otherwise the future people will know you aren’t actually smart!

Edit: Also, hello there future people!

Armando3996@lemm.ee on 11 Mar 2024 19:34 next collapse

Tbh I dont really see how anyone can call this bloat( I use doas btw). Its just so much more space efficient. 4 example I ported capitaine cursors and it takes below 200 kbs of space, its just that much more space efficient

VinesNFluff@pawb.social on 11 Mar 2024 19:38 collapse

You are most likely correct from a technical point of view.

But don’t ever underestimate the potential of weird folks to be – Weird.

Not that I think it’s per se a bad thing – But I feel like a lot of Linux people are pack bonded to the utilities and tools they have grown used to. Whatever justification they write comes after the fact from an emotional reaction to seeing the thing they are bonded with lose ground.

camelcdr@beehaw.org on 12 Mar 2024 08:52 collapse

I must admit that I personaly see this as slightly bloated for using SVG, although I don’t see a good alternative. Supporting SVG fully basically requires a webbrowser, because it has JavaScript support. The best alternative I can think of is using fonts formats, but that is less accessible for custom cursors, and idk how they deal with colors.

stepanzak@iusearchlinux.fyi on 16 Mar 2024 15:41 collapse

I don’t think you have to, or even should, support JavaScript in cursor themes.

mactan@lemmy.ml on 12 Mar 2024 15:50 next collapse

stares at gnome

brax@sh.itjust.works on 12 Mar 2024 17:56 collapse

Absolute bloat.

[Goes back to enjoying his 300mb 9999dpi ultra hi-res waifu pointing bitmap cursor] /s

owen@lemmy.ca on 11 Mar 2024 12:02 next collapse

This is awesome

Quereller@lemmy.one on 11 Mar 2024 12:44 next collapse

Please make sure it doesn’t contain any bugs which can be exploited.

swab148@startrek.website on 12 Mar 2024 17:13 next collapse

0-day’d by my fucking cursor, smh

eveninghere@beehaw.org on 12 Mar 2024 22:10 collapse

Use Rust! —White House

FrankTheHealer@lemmy.world on 11 Mar 2024 12:58 next collapse

This is interesting, but help me understand, does hypercursor not allow animated cursors?

WalrusDragonOnABike@reddthat.com on 11 Mar 2024 13:17 collapse

Metadata Some cursors cannot become SVGs, and that’s fine. Some cursors are used for more than one shape, and that’s fine. Some cursors are animated, and that’s fine! All of a shape’s properties are described in a small meta.hl file alongside them.

Seems like it should support it?

Wes_Dev@lemmy.ml on 13 Mar 2024 01:32 collapse

Instead of each frame of animation being a grid of pixels, each frame is a small collection of math describing the visuals.

But we’d still have frames to use for animation, if we want.

Instead of replacing one PNG for another PNG to make the illusion of movement, we replace one SVG with one SVG instead.

KISSmyOS@feddit.de on 11 Mar 2024 15:03 next collapse

Sometimes I long back for the times when I just used my computer to do things, instead of forming an opinion about the compression rate of my cursor’s image data.

timbuck2themoon@sh.itjust.works on 12 Mar 2024 12:52 next collapse

One of the more interesting things I’ve read here. Very nice work. So long as it is free of vulnerabilities (with your small codebase, seems it should be) then this seems like a great addition. Hoping for widespread adoption.

brax@sh.itjust.works on 12 Mar 2024 17:55 next collapse

Man, I’ve never thought about cursors at such a macro level before… Is the way it changes based on context of what it’s hovering something really technical, or is there a call of some sort sent from the OS that is interpreted?

radiofreeval@hexbear.net on 12 Mar 2024 18:37 next collapse

Well at least that rat is doing something interesting as opposed to throwing waifus at things and harassing people.

stepanzak@iusearchlinux.fyi on 16 Mar 2024 15:44 collapse

I don’t know the full context, but your comment seems more like harassing. It definitely adds nothing to the debate and only creates toxic atmosphere on lemmy.

AceFuzzLord@lemm.ee on 12 Mar 2024 23:15 collapse

Yo! I would love for something like this to become a thing because I have recently become a big fan of SVGs. Would absolutely love a custom cursor that scales to any size with minimal issues of it looking too small on the 1080 TV I sometimes plug my laptop into using HDMI.

Armando3996@lemm.ee on 13 Mar 2024 12:46 collapse

It is? It only works on hyprland tho. That being said its really easy porting xcursor themes over. It does all the things you just described.

stepanzak@iusearchlinux.fyi on 16 Mar 2024 15:38 collapse

It should work everywhere, not only on hyprland. At least that’s the goal.