niri: fix cursor theme in some child windows such as vscode
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
01068a6179
commit
74f429e7a3
2 changed files with 11 additions and 9 deletions
|
@ -46,11 +46,13 @@ in {
|
|||
config.home-manager.users.${config.custom.username}.home.sessionVariables;
|
||||
|
||||
# https://github.com/YaLTeR/niri/wiki/Configuration:-Miscellaneous#cursor
|
||||
cursor = with config.home-manager.users.${config.custom.username}.home.pointerCursor; {
|
||||
cursor = with config.home-manager.users.${config.custom.username}.gtk.cursorTheme; {
|
||||
# Inherit home-manager GTK settings
|
||||
inherit size;
|
||||
theme = name;
|
||||
|
||||
hide-after-inactive-ms = 1000 * 15; # Milliseconds
|
||||
hide-when-typing = true;
|
||||
theme = name;
|
||||
};
|
||||
|
||||
# https://github.com/YaLTeR/niri/wiki/Configuration:-Miscellaneous#hotkey-overlay
|
||||
|
|
|
@ -10,13 +10,6 @@ in {
|
|||
options.custom.settings.gtk.enable = mkOption {default = false;};
|
||||
|
||||
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
||||
home.pointerCursor = {
|
||||
gtk.enable = true; # Propagate attributes to gtk.cursorTheme
|
||||
size = 24;
|
||||
name = "GoogleDot-Black";
|
||||
package = pkgs.google-cursor;
|
||||
};
|
||||
|
||||
gtk = let
|
||||
css = readFile ./style.css;
|
||||
in {
|
||||
|
@ -38,6 +31,13 @@ in {
|
|||
package = pkgs.papirus-icon-theme;
|
||||
};
|
||||
|
||||
# BUG: home.pointerCursor breaks XCURSOR_PATH for some child windows, so avoid that workaround
|
||||
cursorTheme = {
|
||||
size = 24;
|
||||
name = "GoogleDot-Black";
|
||||
package = pkgs.google-cursor;
|
||||
};
|
||||
|
||||
theme = {
|
||||
name = "adw-gtk3-dark";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue