mirror of
https://github.com/nix-community/plasma-manager.git
synced 2024-12-14 22:02:25 +03:00
24 lines
522 B
Nix
24 lines
522 B
Nix
# General workspace behavior settings:
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.programs.plasma;
|
|
in
|
|
{
|
|
options.programs.plasma.workspace = {
|
|
clickItemTo = lib.mkOption {
|
|
type = lib.types.enum [ "open" "select" ];
|
|
default = "open";
|
|
description = ''
|
|
Clicking files or folders should open or select them.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.plasma.files.kdeglobals = {
|
|
KDE.SingleClick = lib.mkDefault (cfg.workspace.clickItemTo == "open");
|
|
};
|
|
};
|
|
}
|