Changing the cursor on Ubuntu 22.04

Ubuntu 22.04.3 LTS
LiberOffice 7.3.7.2

Hello,

I need to change my cursor I’m using Ubuntu, I saw a few posts of this topic on this forum, but the instructions were for Windows.

(Works with LinuxMint 20.x Cinnamon


After applying changes, the cursor is quite thin.

I couldn’t find anything in the LM settings. If I missed something, I’m sorry!)


You can make the cursor as big as you want by doing the following:


File:
.config/gtk-3.0/gtk.css
either create or edit


Add the line


EDIT - asterisk added
* { -GtkWidget-cursor-aspect-ratio: 0.05; }
/EDIT


The default is 0.05. Change this value. Width 0.1 the cursor is already thicker. The value can be set to 2 decimal places (e.g. 0.12).
Restart LibreOffice after editing the above mentioned configuration file to take effect.


From URL: https://www.linuxmintusers.de/index.php?topic=74276.msg958004#msg958004
Translated on: DeepL Write: AI-powered writing companion

Bitte danke Herr,

I want to know where I can find the file that is named .config/gtk-3.0/gtk.css ?
Because I can not find it on my drive, so I need to make it from scratch but I do not know where to put it.

Start your file manager on your Ubuntu machine: you have your home directory or folder there (assumed your user name is markmass):
/home/markmass
In this directory you surely can find a folder named .config
This folder is hidden so make sure that your file manager displays hidden files and folders.
The entire path is as follows:
/home/markmass/.config
There you should find this folder:
/home/markmass/.config/gtk-3.0
On my machine this folder gtk-3.0 contained only one file: bookmarks.
The file gtk.css did not exist.


How to:

  • Open a text editor and save the file as gtk.css in the above mentioned folder gtk-3.0
  • Add (paste or write) in the file only one line:
    EDIT (added asterisk; CURSOR instead of CURSER)
    * { -GtkWidget-cursor-aspect-ratio: 0.05; }
    /EDIT
  • Save the file - close the file - done
  • Restart LibreOffice Writer after every change you apply on this file

HTH

Okay, I have found the file, adjusted it, and reboot Liber Office. the cursor is still the same size. I tried different numbers. What can I do to solve this issue? When I’m writing I can not properly see my cursor, and sometimes I need to search for it. I just want to make a black or thicker

I’m sorry for you. I possibly forgot or misunderstood to add an asterisk at the beginning of the line. An altered version of gtk.css could contain this:

* { -GtkWidget-cursor-aspect-ratio: 0.2; }

Try this.
This worked on 2 of 3 machines of mine (on 2 desktop machines but not on the laptop). HTH

Yes, thank you very much it worked now. :slight_smile: