Score:1

Cursor format for Ubuntu 22.04

us flag

I have a few SVGs which I am trying to use as a cursor pointer in Ubuntu 22.04. In Windows, we can convert them into a .cur or .ani file and use Mouse Settings to use it. Is there any such way to convert an SVG or PNG to a cursor format and then add it to Ubuntu?

Thanks.

Raffa avatar
jp flag
It's mostly similar ... There are `.cur` icons for each theme under `/usr/share/icons/` ... See e.g. `/usr/share/icons/Yaru/cursors/hand.cur` ... Change it for your current mouse cursor theme and it should be a matter of changing the theme to something else then changing back and it should change the cursor.
user227495 avatar
us flag
Thanks @Raffa , If I copy the whole Yaru cursor folder into `.icons` and edit the `index.theme` to say `newru`, can I change the main cursor just by replacing it with the .cur equivalent in the `newru` folder?
Raffa avatar
jp flag
I haven't tried that but IIRC there is some theme `.css` file that should be the one to edit ... And it should work this way as well.
Raffa avatar
jp flag
I ran `file /usr/share/icons/Yaru/cursors/hand.cur` and the output was `MS Windows cursor resource - 5 icons, 96x96, hotspot @29x16` which means it's a windows style cursor file ... and looked at this howto: https://www.addictivetips.com/ubuntu-linux-tips/how-to-change-the-mouse-cursor-on-ubuntu-linux/ and it sounds reasonable and seems not complicated after all.
user227495 avatar
us flag
I can make cursor themes out of Yaru's GitHub resource. But not sure what format they are in. At the moment, I have to edit the base SVG, and then run 3 scripts even if I have to modify a single cursor. In Windows, we can make a .cur or .ani and replace any single cursor item. That is why I thought of checking which format they are in. Thanks for the research.
Raffa avatar
jp flag
Probably this will help: https://github.com/charakterziffer/cursor-toolbox
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.