Solved LXQT ignore cursor theme.

I moved from XFCE to LXQT to try new thing out.
For some reason LXQT don't respect any cursor theme I try.
I tried some things with the LXQT community before come here.

What I did so far:
Code:
beastie@BattleStar-Lat54 --> ~
Ψ cat /usr/local/share/icons/default/index.theme                                                                           < 1:29 >  < 11,724-11-05 >  < 0 >
[Icon Theme]
Name=Default
Comment=Default cursor theme
Inherits=redglass
Size=32
beastie@BattleStar-Lat54 --> ~
Ψ cat .icons/default/index.theme                                                                                           < 1:29 >  < 11,724-11-05 >  < 0 >
[Icon Theme]
Name=Default
Comment=Default cursor theme
Inherits=redglass
Size=32
beastie@BattleStar-Lat54 --> ~
Ψ grep cursor .Xdefaults                                                                                                   < 1:29 >  < 11,724-11-05 >  < 0 >
URxvt.cursorBlink: true
xterm*cursorBlink: false
xterm*cursorColor: red
Xmessage*Text.?.cursorColor:            rgb:d/5/5
Xcursor.theme: redglass
Xcursor.size: 32
beastie@BattleStar-Lat54 --> ~
Ψ cat .gtkrc-2.0                                                                                                           < 1:29 >  < 11,724-11-05 >  < 0 >

# Created by lxqt-config-appearance (DO NOT EDIT!)
gtk-theme-name = "Flat-Remix-GTK-Red-Darkest"
gtk-icon-theme-name = "candy-icons-master"
gtk-font-name = "Hack Nerd Font 11"
gtk-button-images = 1
gtk-menu-images = 1
gtk-toolbar-style = GTK_TOOLBAR_BOTH
gtk-cursor-theme-name = redglass
gtk-cursor-theme-size = 32
beastie@BattleStar-Lat54 --> ~
Ψ grep cursor /usr/local/etc/X11/xdm/Xresources                                                                            < 1:30 >  < 11,724-11-05 >  < 0 >
Xcursor.theme: redglass
In the desktop:
1730766962556.png

It is like this in every QT app, OpenBox Config app and telegram. Basically it only works in GTK apps and Firefox.

In Firefox:
1730767097628.png


What else can I do? (I'm even whiling to compile FBSD with the redglass as the only option if I need to).
 
Last edited:
I just ran across this. The suggested work around doesn't appear to change the cursor size only the theme.
Have you logged out and logged in (if it doesn't work, restart OS)?

Setting the variable alone would not take effect, as it's picked up by processes invoked AFTER the environment variable is set, and invoked by the shell (or any of its child process) only.

So it must be in anything BEFORE Xorg actually invoked.

For per-user basis, ~/.xinitrc would be the best place. I have
Code:
## Fix Qt6 mouse cursor issue (too small and cannot change).
## Obtained from Bug 280573 Comment 3.
## https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280573#c3
export XCURSOR_PATH="~/.icons:/usr/local/share/icons"
in my ~/.xinitrc BEFORE exec command that actually invoking my DE.
3 lines starting with # are comments.

If you want this to be system-wide (want to take effect for ALL users who can invoke Xorg), you'd better placing a file with unique name as you want in /usr/local/etc/X11/xinit/xinitrc.d/ with contents as below.
Code:
#!/bin/sh
export XCURSOR_PATH="~/.icons:/usr/local/share/icons"
 
Okay, so I got a "hybrid" issue It appears. I can get the cursor theme woking.

But the size "half" works. On applications like Firefox the cursor is the proper size 74, but outside of applications say on the desktop itself, it's small.

So, my

$HOME/.xinitrc looks proper with:

#!/bin/sh


XCURSOR_PATH="$HOME/.icons:/usr/local/share/icons:/usr/local/share/icons/Oxygen_Yellow/cursors" export XCURSOR_PATH
ssh-agent -a "/tmp/${USER}-ssh-agent"

# KDE
#exec dbus-launch --exit-with-x11 ck-launch-session startplasma-x11
# LXQT
exec dbus-launch --exit-with-x11 ck-launch-session startlxqt

$HOME/.config/lxqt/session.conf has

[Mouse]
cursor_size=74
cursor_theme=Oxygen_Yellow

Is there a second spot to go? I have logged out of the session and back in.

Thanks!
 
Okay, doing the above mentioned in addition with Preferences -> Session Settings -> Environment (Advanced) I created a variable and value of:

XCURSOR_SIZE - Variable Name

74 - Value

Logged out and back in and seems to be working now!
 
Back
Top