mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
home-cursor: add sway support (#6459)
This commit is contained in:
parent
148a6b5565
commit
dde2fba628
1 changed files with 18 additions and 0 deletions
|
|
@ -56,6 +56,11 @@ let
|
||||||
description = "The cursor size for hyprcursor.";
|
description = "The cursor size for hyprcursor.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sway = {
|
||||||
|
enable = mkEnableOption
|
||||||
|
"sway config generation for {option}`home.pointerCursor`";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -197,5 +202,18 @@ in {
|
||||||
if cfg.hyprcursor.size != null then cfg.hyprcursor.size else cfg.size;
|
if cfg.hyprcursor.size != null then cfg.hyprcursor.size else cfg.size;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(mkIf cfg.sway.enable {
|
||||||
|
wayland.windowManager.sway = {
|
||||||
|
config = {
|
||||||
|
seat = {
|
||||||
|
"*" = {
|
||||||
|
xcursor_theme =
|
||||||
|
"${cfg.name} ${toString config.gtk.cursorTheme.size}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue