You are not logged in.

#1 2020-12-25 01:03:21

kormpu
Member
Registered: 2020-08-18
Posts: 30

[SOLVED] Cursor theme not applied to all windows

For some reason my cursor theme does not work on certain windows(such as polybar). Running lxappearance fixes that but it is never a permanent fix. What is causing this?

Last edited by kormpu (2020-12-26 20:02:31)

Offline

#2 2020-12-25 07:57:09

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,585

Re: [SOLVED] Cursor theme not applied to all windows

Something…
https://bbs.archlinux.org/viewtopic.php?id=57855

What do you see intead, did you configure the theme in ~/.Xresources and when and how do you load that database?
https://wiki.archlinux.org/index.php/Cursor_themes

Offline

#3 2020-12-25 14:55:55

kormpu
Member
Registered: 2020-08-18
Posts: 30

Re: [SOLVED] Cursor theme not applied to all windows

It looks like it is showing the default adwaita black cursor instead. My Xresources file wasn't there anymore so I remade it and put

Xcursor.theme: Breeze_Hacked

in it

Unfortunately though, it doesn't seem to be loaded by xrdb when running xrdb -load .Xresources

Offline

#4 2020-12-25 18:07:36

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,585

Re: [SOLVED] Cursor theme not applied to all windows

xrdb -q

nb. that loading the resources will not impact running processes.

Offline

#5 2020-12-25 22:13:25

kormpu
Member
Registered: 2020-08-18
Posts: 30

Re: [SOLVED] Cursor theme not applied to all windows

Yea I knew that but I put it in my xinitrc it wasn't doing it either.

Offline

#6 2020-12-25 22:18:33

kormpu
Member
Registered: 2020-08-18
Posts: 30

Re: [SOLVED] Cursor theme not applied to all windows

Xrdb is showing it to have loaded the cursor in xrdb -q.

btw, what do you mean by "nb."?

Offline

#7 2020-12-26 08:23:23

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,585

Re: [SOLVED] Cursor theme not applied to all windows

"nota bene"

Please post your xinitrc and the output of "xrdb -q" (or your xresources)

Offline

#8 2020-12-26 16:54:01

kormpu
Member
Registered: 2020-08-18
Posts: 30

Re: [SOLVED] Cursor theme not applied to all windows

Offline

#9 2020-12-26 17:17:12

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,585

Re: [SOLVED] Cursor theme not applied to all windows

Your xinitrc is broken (last link below…) but that's not the problem (would have if you'd forked the xrdb call)

What could be a problem is the explicit "Xcursor.size:    30", esp. if the theme doesn't provide a 30px cursor.
What happens w/o that?

Alternatively "Breeze_Hacked" might be incomplete. Source? Do you have the Breeze theme as well (assuming this is inherited and just altered for few cursors)

Offline

#10 2020-12-26 17:41:59

kormpu
Member
Registered: 2020-08-18
Posts: 30

Re: [SOLVED] Cursor theme not applied to all windows

Commenting the size line didn't change anything. I have breeze, breeze-gtk, breeze-icons, and breeze-hacked-cursor-theme installed.

Offline

#11 2020-12-26 18:21:38

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,585

Re: [SOLVED] Cursor theme not applied to all windows

breeze-hacked-cursor-theme apparently has at least one dead link and It doesn't eg. "Inherits=Breeze"  in the "[Icon Theme]" definition.
Do you have the same problems w/ eg. Breeze? What if you inherit that theme and fix the stale symlink?

Offline

#12 2020-12-26 18:49:24

kormpu
Member
Registered: 2020-08-18
Posts: 30

Re: [SOLVED] Cursor theme not applied to all windows

If i set the theme to "Breeze" in .Xresources and the gtk3.0 settings, it seems to just use the "kde classic" theme for everything except what was using adwaita before(that stuff is still using adwaita).

Offline

#13 2020-12-26 19:09:58

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,585

Re: [SOLVED] Cursor theme not applied to all windows

This one?
https://aur.archlinux.org/packages/polybar/

What else (maybe there's a pattern)?

Offline

#14 2020-12-26 19:16:39

kormpu
Member
Registered: 2020-08-18
Posts: 30

Re: [SOLVED] Cursor theme not applied to all windows

currently I have polybar-git installed but have been unable to update it due to Cmake erroring with

CMake Error at lib/xpp/CMakeLists.txt:75 (message):
  Missing required python module: xcbgen

But it's not just programs like polybar, it's also the root window, where it displays the adwaita cursor when im just hovering over my desktop/wallpaper.


Some other programs that use the adwaita cursor are: minecraft, nvidia-settings, gimp, and nautilus

Last edited by kormpu (2020-12-26 19:19:38)

Offline

#15 2020-12-26 19:20:10

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,585

Re: [SOLVED] Cursor theme not applied to all windows

Does it update for

xsetroot -cursor_name right_ptr

(this intentioanally reverses the direction, assuming you're currently using the left_ptr)

Offline

#16 2020-12-26 19:23:11

kormpu
Member
Registered: 2020-08-18
Posts: 30

Re: [SOLVED] Cursor theme not applied to all windows

that does fix it (though it's the wrong direction as you said).

Offline

#17 2020-12-26 19:24:36

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,585

Re: [SOLVED] Cursor theme not applied to all windows

"left_ptr" - does that return to the adwaita cursor?

Offline

#18 2020-12-26 19:28:33

kormpu
Member
Registered: 2020-08-18
Posts: 30

Re: [SOLVED] Cursor theme not applied to all windows

Nope, already tried that before your post and it makes everything function like you would expect with the cursor being using on everything.

Offline

#19 2020-12-26 19:30:49

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,585

Re: [SOLVED] Cursor theme not applied to all windows

Put it into your xinitrc.
Edit: https://wiki.archlinux.org/index.php/Cu … ult_cursor

For the records, when we're talking about the adwaita cursor, is that something that looks like an arrow or something like a cross "x"?

Last edited by seth (2020-12-26 19:34:03)

Offline

#20 2020-12-26 19:59:12

kormpu
Member
Registered: 2020-08-18
Posts: 30

Re: [SOLVED] Cursor theme not applied to all windows

It's not the X cursor it's the actual left_ptr that adwaita uses that you can see if you were to look at it in lxappearance.

Thanks for the help, I'll mark it as solved

Last edited by kormpu (2020-12-26 20:02:45)

Offline

Board footer

Powered by FluxBB