summaryrefslogtreecommitdiff
path: root/modules/system/defaults/dock.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/defaults/dock.nix')
-rw-r--r--modules/system/defaults/dock.nix92
1 files changed, 62 insertions, 30 deletions
diff --git a/modules/system/defaults/dock.nix b/modules/system/defaults/dock.nix
index 9d54f75..bba0afb 100644
--- a/modules/system/defaults/dock.nix
+++ b/modules/system/defaults/dock.nix
@@ -6,12 +6,16 @@ let
# Should only be used with options that previously used floats defined as strings.
inherit (config.lib.defaults.types) floatWithDeprecationError;
in {
+ imports = [
+ (mkRenamedOptionModule [ "system" "defaults" "dock" "expose-group-by-app" ] [ "system" "defaults" "dock" "expose-group-apps" ])
+ ];
+
options = {
system.defaults.dock.appswitcher-all-displays = mkOption {
type = types.nullOr types.bool;
default = null;
- description = lib.mdDoc ''
+ description = ''
Whether to display the appswitcher on all displays or only the main one. The default is false.
'';
};
@@ -19,8 +23,8 @@ in {
system.defaults.dock.autohide = mkOption {
type = types.nullOr types.bool;
default = null;
- description = lib.mdDoc ''
- Whether to automatically hide and show the dock. The default is false.
+ description = ''
+ Whether to automatically hide and show the dock. The default is false.
'';
};
@@ -28,7 +32,7 @@ in {
type = types.nullOr floatWithDeprecationError;
default = null;
example = 0.24;
- description = lib.mdDoc ''
+ description = ''
Sets the speed of the autohide delay. The default is given in the example.
'';
};
@@ -37,7 +41,7 @@ in {
type = types.nullOr floatWithDeprecationError;
default = null;
example = 1.0;
- description = lib.mdDoc ''
+ description = ''
Sets the speed of the animation when hiding/showing the Dock. The default is given in the example.
'';
};
@@ -45,7 +49,7 @@ in {
system.defaults.dock.dashboard-in-overlay = mkOption {
type = types.nullOr types.bool;
default = null;
- description = lib.mdDoc ''
+ description = ''
Whether to hide Dashboard as a Space. The default is false.
'';
};
@@ -53,7 +57,7 @@ in {
system.defaults.dock.enable-spring-load-actions-on-all-items = mkOption {
type = types.nullOr types.bool;
default = null;
- description = lib.mdDoc ''
+ description = ''
Enable spring loading for all Dock items. The default is false.
'';
};
@@ -62,23 +66,23 @@ in {
type = types.nullOr floatWithDeprecationError;
default = null;
example = 1.0;
- description = lib.mdDoc ''
+ description = ''
Sets the speed of the Mission Control animations. The default is given in the example.
'';
};
- system.defaults.dock.expose-group-by-app = mkOption {
+ system.defaults.dock.expose-group-apps = mkOption {
type = types.nullOr types.bool;
default = null;
- description = lib.mdDoc ''
- Whether to group windows by application in Mission Control's Exposé. The default is true.
+ description = ''
+ Whether to group windows by application in Mission Control's Exposé. The default is false.
'';
};
system.defaults.dock.launchanim = mkOption {
type = types.nullOr types.bool;
default = null;
- description = lib.mdDoc ''
+ description = ''
Animate opening applications from the Dock. The default is true.
'';
};
@@ -86,7 +90,7 @@ in {
system.defaults.dock.mineffect = mkOption {
type = types.nullOr (types.enum [ "genie" "suck" "scale" ]);
default = null;
- description = lib.mdDoc ''
+ description = ''
Set the minimize/maximize window effect. The default is genie.
'';
};
@@ -94,7 +98,7 @@ in {
system.defaults.dock.minimize-to-application = mkOption {
type = types.nullOr types.bool;
default = null;
- description = lib.mdDoc ''
+ description = ''
Whether to minimize windows into their application icon. The default is false.
'';
};
@@ -102,7 +106,7 @@ in {
system.defaults.dock.mouse-over-hilite-stack = mkOption {
type = types.nullOr types.bool;
default = null;
- description = lib.mdDoc ''
+ description = ''
Enable highlight hover effect for the grid view of a stack in the Dock.
'';
};
@@ -110,7 +114,7 @@ in {
system.defaults.dock.mru-spaces = mkOption {
type = types.nullOr types.bool;
default = null;
- description = lib.mdDoc ''
+ description = ''
Whether to automatically rearrange spaces based on most recent use. The default is true.
'';
};
@@ -118,7 +122,7 @@ in {
system.defaults.dock.orientation = mkOption {
type = types.nullOr (types.enum [ "bottom" "left" "right" ]);
default = null;
- description = lib.mdDoc ''
+ description = ''
Position of the dock on screen. The default is "bottom".
'';
};
@@ -127,7 +131,7 @@ in {
type = types.nullOr (types.listOf (types.either types.path types.str));
default = null;
example = [ "/Applications/Safari.app" "/System/Applications/Utilities/Terminal.app" ];
- description = lib.mdDoc ''
+ description = ''
Persistent applications in the dock.
'';
apply = value:
@@ -136,10 +140,31 @@ in {
else map (app: { tile-data = { file-data = { _CFURLString = app; _CFURLStringType = 0; }; }; }) value;
};
+ system.defaults.dock.persistent-others = mkOption {
+ type = types.nullOr (types.listOf (types.either types.path types.str));
+ default = null;
+ example = [ "~/Documents" "~/Downloads" ];
+ description = ''
+ Persistent folders in the dock.
+ '';
+ apply = value:
+ if !(isList value)
+ then value
+ else map (folder: { tile-data = { file-data = { _CFURLString = "file://" + folder; _CFURLStringType = 15; }; }; tile-type = if strings.hasInfix "." (last (splitString "/" folder)) then "file-tile" else "directory-tile"; }) value;
+ };
+
+ system.defaults.dock.scroll-to-open = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ Scroll up on a Dock icon to show all Space's opened windows for an app, or open stack. The default is false.
+ '';
+ };
+
system.defaults.dock.show-process-indicators = mkOption {
type = types.nullOr types.bool;
default = null;
- description = lib.mdDoc ''
+ description = ''
Show indicator lights for open applications in the Dock. The default is true.
'';
};
@@ -147,7 +172,7 @@ in {
system.defaults.dock.showhidden = mkOption {
type = types.nullOr types.bool;
default = null;
- description = lib.mdDoc ''
+ description = ''
Whether to make icons of hidden applications tranclucent. The default is false.
'';
};
@@ -155,15 +180,23 @@ in {
system.defaults.dock.show-recents = mkOption {
type = types.nullOr types.bool;
default = null;
- description = lib.mdDoc ''
+ description = ''
Show recent applications in the dock. The default is true.
'';
};
+ system.defaults.dock.slow-motion-allowed = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ Allow for slow-motion minimize effect while holding Shift key. The default is false.
+ '';
+ };
+
system.defaults.dock.static-only = mkOption {
type = types.nullOr types.bool;
default = null;
- description = lib.mdDoc ''
+ description = ''
Show only open applications in the Dock. The default is false.
'';
};
@@ -171,7 +204,7 @@ in {
system.defaults.dock.tilesize = mkOption {
type = types.nullOr types.int;
default = null;
- description = lib.mdDoc ''
+ description = ''
Size of the icons in the dock. The default is 64.
'';
};
@@ -179,7 +212,7 @@ in {
system.defaults.dock.magnification = mkOption {
type = types.nullOr types.bool;
default = null;
- description = lib.mdDoc ''
+ description = ''
Magnify icon on hover. The default is false.
'';
};
@@ -187,16 +220,15 @@ in {
system.defaults.dock.largesize = mkOption {
type = types.nullOr (types.ints.between 16 128);
default = null;
- description = lib.mdDoc ''
+ description = ''
Magnified icon size on hover. The default is 16.
'';
};
-
system.defaults.dock.wvous-tl-corner = mkOption {
type = types.nullOr types.ints.positive;
default = null;
- description = lib.mdDoc ''
+ description = ''
Hot corner action for top left corner. Valid values include:
* `1`: Disabled
@@ -217,7 +249,7 @@ in {
system.defaults.dock.wvous-bl-corner = mkOption {
type = types.nullOr types.ints.positive;
default = null;
- description = lib.mdDoc ''
+ description = ''
Hot corner action for bottom left corner. Valid values include:
* `1`: Disabled
@@ -238,7 +270,7 @@ in {
system.defaults.dock.wvous-tr-corner = mkOption {
type = types.nullOr types.ints.positive;
default = null;
- description = lib.mdDoc ''
+ description = ''
Hot corner action for top right corner. Valid values include:
* `1`: Disabled
@@ -259,7 +291,7 @@ in {
system.defaults.dock.wvous-br-corner = mkOption {
type = types.nullOr types.ints.positive;
default = null;
- description = lib.mdDoc ''
+ description = ''
Hot corner action for bottom right corner. Valid values include:
* `1`: Disabled