Disabling Blinking Cursor in GTK+

After staring at the blinking cursor in LibreOffice Writer, with a document title of three words and a quote of 21 words, I finally came up an excuse for the unproductive two hours, virtually I wrote nothing.

That blinking cursor has to go.

The Writer's About dialog indicated that it's using GTK+ 2, whose gtk-cursor-blink setting can be set in ~/.gtkrc-2.0 like

gtk-cursor-blink=0

It took me a while to realize that I must use the value 0 instead of unrecognized False or FALSE, which resulted in an error message:

Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve property `gtk-cursor-blink' of type `gboolean' from rc file value "((GString*) 0xda50e0)" of type `gboolean'

For GTK+ 3, the file is $HOME/.config/gtk-3.0/settings.ini.

I wish there was a block cursor option in GTK+, but no, so non-blinking would have to do.



Note for Qt (2017-10-13T02:05:31Z), since there isn't any good solutions for Qt 5, I decided to drop a note here.  In this JURTA No blinking, it states that Qt 3/4 can be configured with qt-config or in ~/.qt/qtrc, but not Qt 5 — possibly since "5.3" and it "ignores all blinking rate settings in Linux," — for which, qt5noblink is the only workaround I could find.

Comments

Popular Posts