Skip to content

Commit

Permalink
kde(options): add custom window decorations option
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuklik committed Jan 11, 2025
1 parent 91aa455 commit 0f9fb38
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion modules/kde/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ let
last
mapAttrsToList
mkIf
mkOption
optional
partition
types
;

formatValue = value: if isBool value then if value then "true" else "false" else toString value;
Expand Down Expand Up @@ -148,7 +150,7 @@ let
};

lookAndFeelDefaults = {
kwinrc."org.kde.kdecoration2".library = "org.kde.breeze";
kwinrc."org.kde.kdecoration2".library = cfg.decorations;
plasmarc.Theme.name = "default";

kdeglobals = {
Expand Down Expand Up @@ -288,6 +290,15 @@ in
{
options.stylix.targets.kde = {
enable = mkEnableTarget "KDE" true;
decorations = mkOption {
type = types.str;
default = "org.kde.breeze";
description =
let
url = "https://nix-community.github.io/plasma-manager/options.xhtml#opt-programs.plasma.workspace.windowDecorations.library";
in
"Custom border decorations. See [plasma-manager docs](${url}).";
};
};

config = mkIf (config.stylix.enable && cfg.enable && pkgs.stdenv.hostPlatform.isLinux) {
Expand Down

0 comments on commit 0f9fb38

Please sign in to comment.