it might require coding some specialized app/daemon that would perform just that. However it will not work over applications that are using their own, custom cursors - such cases would require that other idea you had: to follow a cursor in real-time and render some overlay next to it, but I don't think that it's as easy as this. It also works when you are using that feature, that allows for a different input-layout for each window, so when you change focus to different window, cursor also updates. Maybe not the nicest solution, but it does the job - at least for me :)
bash /home/glaz/my-dynamic-cursor-script), you can add it to your auto-start and ~VIOLA~ Put this script in some file, apply chmod +x to it (executable permission) and after configuring accordingly to your situation and testing in terminal (f.e. Sleep 1 # one-second interval between each re-check Gsettings set -mouse cursor-theme $current Here's a simple one that does that: #!/bin/bashĬurrent=$(gsettings get -mouse cursor-theme) You’ll find two setting here, Pointer outline color and Pointer fill color. Click on the Pointer tab in the section to the right. In the left column, look for the Vision section and select Display. Go to System Preferences and click Accessibility.
MAC CHANGE CURSOR COLOR HOW TO
the ugliest part - putting it all together and running a script on loop with given interval that will change a cursor according to a value from xset. How to change the cursor color in macOS Monterey. If you don't know the proper names for your cursor themes, just switch them by GUI and check: gsettings get -mouse cursor-theme and this should probably work on GNOME: gsettings set cursor-theme 'DMZ-Black' Here's what works on MATE: gsettings set -mouse cursor-theme 'DMZ-Black' Now you gotta figure out how to change a cursor theme by a command at your environment.
It should give you something like "00000002" for one layout and "00001002" for the other. Try running this command after switching keyboard layouts: xset -q | grep -A 0 'LED' | cut -c59-67
MAC CHANGE CURSOR COLOR WINDOWS
Various desktop environments have different methods for storing current keyboard layout and for the one I'm working on (MATE) I wasn't even able to figure out a nice method, so I needed to use xset -q which returns very meaningless "mask" that's different for each keyboard layout. To change the color, follow the steps below: Click on the Windows icon on the taskbar and then click on the Settings cog. xmc extension and then strip that extension, so the names are like in the original, source theme. Let's say "DMZ-White" and "DMZ-Black".Īs for colorizing cursors, you can do it with GIMP and it's "colorize" function/filter, but you gotta apply it to all layers (different sizes) and then export those files with. For the proof-of-concept I'll show you rest by just using cursor themes that should already be available in the system. You can copy ones that you have in /usr/share/icons (check for folders that contain cursor.theme file) into your users ~/.icons folder, rename them by your choice and colorize. ugly.įirst of all, you would need to create you own cursor themes with your own colors. It certainly is possible, but the solution for that I came up with is very.