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;
|
config.home-manager.users.${config.custom.username}.home.sessionVariables;
|
||||||
|
|
||||||
# https://github.com/YaLTeR/niri/wiki/Configuration:-Miscellaneous#cursor
|
# 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;
|
inherit size;
|
||||||
|
theme = name;
|
||||||
|
|
||||||
hide-after-inactive-ms = 1000 * 15; # Milliseconds
|
hide-after-inactive-ms = 1000 * 15; # Milliseconds
|
||||||
hide-when-typing = true;
|
hide-when-typing = true;
|
||||||
theme = name;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://github.com/YaLTeR/niri/wiki/Configuration:-Miscellaneous#hotkey-overlay
|
# https://github.com/YaLTeR/niri/wiki/Configuration:-Miscellaneous#hotkey-overlay
|
||||||
|
|
|
@ -10,13 +10,6 @@ in {
|
||||||
options.custom.settings.gtk.enable = mkOption {default = false;};
|
options.custom.settings.gtk.enable = mkOption {default = false;};
|
||||||
|
|
||||||
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
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
|
gtk = let
|
||||||
css = readFile ./style.css;
|
css = readFile ./style.css;
|
||||||
in {
|
in {
|
||||||
|
@ -38,6 +31,13 @@ in {
|
||||||
package = pkgs.papirus-icon-theme;
|
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 = {
|
theme = {
|
||||||
name = "adw-gtk3-dark";
|
name = "adw-gtk3-dark";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue