Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTK apps doesn't have the right cursor #409

Open
bbigras opened this issue Dec 19, 2024 · 1 comment
Open

GTK apps doesn't have the right cursor #409

bbigras opened this issue Dec 19, 2024 · 1 comment

Comments

@bbigras
Copy link

bbigras commented Dec 19, 2024

Not sure if it's a bug, but in Firefox and Qalculate! the cursor is not customized.

The cursor is fine in wireshark.

I'm using the follow code.

{
  catppuccin = {
    cursors.enable = true;
    gtk = {
      enable = true;
      # gnomeShellTheme = true;
      icon.enable = true;
    };
    kvantum.enable = true;
  };

  gtk = {
    enable = true;
    gtk2.extraConfig = "gtk-application-prefer-dark-theme = true";
    gtk3.extraConfig.gtk-application-prefer-dark-theme = true;
  };

  qt = {
    enable = true;
    platformTheme.name = "kvantum";
    style.name = "kvantum";
  };
}
@senysenyseny16
Copy link

Hi. Thank you for the great project! Exactly the same story, here is my configuration:

system:

services.xserver.desktopManager.gnome.enable = true;

home-manager:

catppuccin.flavor = "frappe";
catppuccin.enable = true;
catppuccin.gtk.enable = true;
gtk.enable = true;

home.pointerCursor = {
  name = "BreezeX-RosePineDawn-Linux";
  package = pkgs.rose-pine-cursor;
  size = 24;
  x11.enable = true;
  gtk.enable = true;
};

When I log into the system, the cursor in GTK applications has the wrong size and theme:

Image

> gsettings get org.gnome.desktop.interface cursor-theme                                                                                                                                         
'default'

If I do a rebuild after logging in, the cursor and size become correct (until logout or sleep). I could also fix this with the following command:

> gsettings set org.gnome.desktop.interface cursor-theme 'BreezeX-RosePineDawn-Linux'

> gsettings get org.gnome.desktop.interface cursor-theme                                                                                                                                          
'BreezeX-RosePineDawn-Linux'

Image

I thought I could solve the problem by simply adding this command to exec-once (hyprland):

exec-once = "gsettings set org.gnome.desktop.interface cursor-theme 'BreezeX-RosePineDawn-Linux'"

But that didn't help. For some reason, a delay is necessary for it to work:

exec-once = "sleep 5 && gsettings set org.gnome.desktop.interface cursor-theme 'BreezeX-RosePineDawn-Linux'"

Also, this doesn't solve the problem of the cursor resetting after waking from sleep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants