A tool to edit a specific mouse cursor?

If none of the more specific forums is the right place to ask

A tool to edit a specific mouse cursor?

Postby bedtime » 2018-09-10 20:27

Is there a way that one can edit the image of a mouse cursor? I'd like to be able to change the colour. It's important to state that I don't want to download a new theme or change to another theme. I want to edit a particular theme—adwaita, for example, would be fine—so that it might be any colour I want; downloading a bunch of themes that are different colours is out of the question.

I've had success with the icons on this front via piping the find command through the convert command with a few parameters. I'd like to be able to do the same with the mouse cursor so it will fit with my multi-coloured theme: http://forums.debian.net/viewtopic.php?f=3&t=59034&start=1410#p680850

In my efforts, I can see where the mouse cursors are stored (/usr/share/icons/Adwaita/cursors), but they don't seem to be behave like regular images that can be opened and edited. Is there some sort of program that can do the job? Looking around the net hasn't got me anywhere as results seem to be irrelevant.

Thanks

Code: Select all
$ ls /usr/share/icons/Adwaita/cursors
00008160000006810000408080010102  dnd-none             pointer
028006030e0e7ebffc7f7070c0600140  dotbox             pointer-move
03b6e0fcb3499374a867c041f52298f0  dot_box_mask             progress
08e8e1c95fe2fc01f976f1e063a24ccd  double_arrow             question_arrow
1081e37283d90000800003c07f3ef6bf  draft_large             right_ptr
14fef782d02440884392942c11205230  draft_small             right_side
2870a09082c103050810ffdffffe0204  draped_box             right_tee
3085a0e285430894940527032f8b26df  e29285e634086352946a0e7090d73106  row-resize
3ecb610c1bf2410f44200f48c40d3599  e-resize             sb_down_arrow
4498f0e0c1937ffe01fd06f973665830  ew-resize             sb_h_double_arrow
5c6cd98b3f3ebcb1f9c7f1c204630408  fcf1c3c7cd4491d801f1e1c78f100000  sb_left_arrow
6407b0e94181790501fd1e167b474872  fd_double_arrow          sb_right_arrow
640fb0e74195791501fd1ed57b41487f  fleur                sb_up_arrow
9081237383d90e509aa00f00170e968f  grab                sb_v_double_arrow
9d800788f1b08800ae810202380a0822  grabbing             se-resize
alias              hand                size_all
all-scroll           hand1                size_bdiag
arrow              hand2                size_fdiag
bd_double_arrow           h_double_arrow          size_hor
bottom_left_corner        help                size_ver
bottom_right_corner        icon                s-resize
bottom_side           left_ptr             sw-resize
bottom_tee           left_ptr_help             target
c7088f0f3e6c8088236ef8e1e3e70000  left_ptr_watch          tcross
cell              left_side             text
circle              left_tee             top_left_arrow
col-resize           link                top_left_corner
context-menu           ll_angle             top_right_corner
copy              lr_angle             top_side
cross              move                top_tee
crossed_circle           ne-resize             ul_angle
crosshair           nesw-resize             ur_angle
cross_reverse           no-drop             v_double_arrow
d9ce0ab605698f320427677b458ad60b  not-allowed             vertical-text
default              n-resize             wait
diamond_cross           ns-resize             watch
dnd-ask              nw-resize             w-resize
dnd-copy           nwse-resize             X_cursor
dnd-link           pencil             xterm
dnd-move           pirate             zoom-in
dnd-no-drop           plus                zoom-out
OS: Debian GNU/Linux (Buster—testing); Kernel: 4.16.0-2-amd64; Shell: sh; WM: i3
Machine: HP ProDesk 600 G3—i7-7700, 8GB RAM, 256 SSD, Intel HD Graphics 630

bedtime
 
Posts: 93
Joined: 2012-12-16 19:34

Re: A tool to edit a specific mouse cursor?

Postby None1975 » 2018-09-11 13:43

Hello. Please, check this.
OS: Debian 9.4 / WM: Xmonad
Debian Wiki | DontBreakDebian, My config files in github
Linux User #607425
User avatar
None1975
 
Posts: 627
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: A tool to edit a specific mouse cursor?

Postby bedtime » 2018-09-11 20:58

None1975 wrote:Hello. Please, check this.

This was a trifle over my head, but I did find a tool on github which automates the process and makes the everything so much easier:

https://github.com/charakterziffer/cursor-toolbox

Now the mouse's colour changes with my theme colours—both inner and outer cursor colours change, and the effect goes across all pointers of a particular theme. Looks nice. :D
OS: Debian GNU/Linux (Buster—testing); Kernel: 4.16.0-2-amd64; Shell: sh; WM: i3
Machine: HP ProDesk 600 G3—i7-7700, 8GB RAM, 256 SSD, Intel HD Graphics 630

bedtime
 
Posts: 93
Joined: 2012-12-16 19:34

Re: A tool to edit a specific mouse cursor?

Postby debiman » 2018-09-12 05:53

basically you need to convert the files to an editable format, then convert them back.
there's a venerable tool in any distro's repos called "xcursorgen" which i believe does it both ways.
User avatar
debiman
 
Posts: 2814
Joined: 2013-03-12 07:18

Re: A tool to edit a specific mouse cursor?

Postby bedtime » 2018-09-17 14:21

debiman wrote:basically you need to convert the files to an editable format, then convert them back.
there's a venerable tool in any distro's repos called "xcursorgen" which i believe does it both ways.

Yes, but that one involves a little more work than I am prepared to do. I will use it in the future though. :)
OS: Debian GNU/Linux (Buster—testing); Kernel: 4.16.0-2-amd64; Shell: sh; WM: i3
Machine: HP ProDesk 600 G3—i7-7700, 8GB RAM, 256 SSD, Intel HD Graphics 630

bedtime
 
Posts: 93
Joined: 2012-12-16 19:34


Return to General Questions

Who is online

Users browsing this forum: sayansg and 8 guests

fashionable