feat(plasma): home-manager cursor and image

This commit is contained in:
514fpv 2024-05-14 11:20:51 +08:00
parent e60e11bc37
commit f32845138e
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw

View file

@ -3,15 +3,16 @@
, config , config
, ... }: with lib; let , ... }: with lib; let
cfg = config.passthrough.plasma; cfg = config.passthrough.plasma;
image = ../../share/54345906_p0.jpg;
in mkIf cfg.enable { in mkIf cfg.enable {
programs.plasma = { programs.plasma = {
# https://github.com/pjones/plasma-manager # https://github.com/pjones/plasma-manager
enable = true; enable = true;
overrideConfig = true; #overrideConfig = true;
workspace = { workspace = {
lookAndFeel = "org.kde.breezedark.desktop"; lookAndFeel = "org.kde.breezedark.desktop";
wallpaper = ../../share/54345906_p0.jpg; wallpaper = image;
}; };
hotkeys.commands = { hotkeys.commands = {
@ -24,19 +25,15 @@ in mkIf cfg.enable {
configFile = { configFile = {
baloofilerc."Basic Settings"."Indexing-Enabled" = false; baloofilerc."Basic Settings"."Indexing-Enabled" = false;
kwalletrc.Wallet.Enabled = false;
kscreenlockerrc.Greeter.Wallpaper."org.kde.image".General.Image = image;
kscreenlockerrc.Greeter.Wallpaper."org.kde.image".General.PreviewImage = image;
}; };
} // cfg.extraConfig; } // cfg.extraConfig;
qt.enable = false; qt.enable = false;
qt.platformTheme.name = null; qt.platformTheme.name = null;
# cursor theme
home.pointerCursor = {
package = pkgs.kdePackages.breeze;
name = "breeze_cursors";
size = 24;
};
# gtk theme # gtk theme
gtk.theme = { gtk.theme = {
package = pkgs.kdePackages.breeze-gtk; package = pkgs.kdePackages.breeze-gtk;