summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmitt <git@smittie.de>2022-08-20 17:32:11 +0200
committerJan Schmitt <git@smittie.de>2022-08-20 22:48:59 +0200
commitfbca12e524fc8bae0dffbcd97fe2be196a9a3e8c (patch)
tree9c92252ce5bf2b38a5d2b96ac10d3b1cd7ce1479
parent80871c71edb3da76d40bdff9cae007a2a035c074 (diff)
feat: provide option to display the appswitcher on all displays
-rw-r--r--modules/system/defaults/dock.nix8
-rw-r--r--tests/system-defaults-write.nix2
2 files changed, 10 insertions, 0 deletions
diff --git a/modules/system/defaults/dock.nix b/modules/system/defaults/dock.nix
index 3e56fae..3156e90 100644
--- a/modules/system/defaults/dock.nix
+++ b/modules/system/defaults/dock.nix
@@ -15,6 +15,14 @@ let
in {
options = {
+ system.defaults.dock.appswitcher-all-displays = mkOption {
+ type = types.nullOr types.bool;
+ default = null;
+ description = ''
+ Whether to display the appswitcher on all displays or only the main one. The default is false.
+ '';
+ };
+
system.defaults.dock.autohide = mkOption {
type = types.nullOr types.bool;
default = null;
diff --git a/tests/system-defaults-write.nix b/tests/system-defaults-write.nix
index bcbed09..821e340 100644
--- a/tests/system-defaults-write.nix
+++ b/tests/system-defaults-write.nix
@@ -36,6 +36,7 @@
system.defaults.NSGlobalDomain."com.apple.springing.delay" = "0.0";
system.defaults.NSGlobalDomain."com.apple.swipescrolldirection" = true;
system.defaults.".GlobalPreferences"."com.apple.sound.beep.sound" = "/System/Library/Sounds/Funk.aiff";
+ system.defaults.dock.appswitcher-all-displays = false;
system.defaults.dock.autohide-delay = "0.24";
system.defaults.dock.orientation = "left";
system.defaults.screencapture.location = "/tmp";
@@ -92,6 +93,7 @@
grep "defaults write -g 'com.apple.swipescrolldirection' -bool YES" ${config.out}/activate-user
grep "defaults write .GlobalPreferences 'com.apple.sound.beep.sound' -string '/System/Library/Sounds/Funk.aiff'" ${config.out}/activate-user
grep "defaults write com.apple.dock 'autohide-delay' -float 0.24" ${config.out}/activate-user
+ grep "defaults write com.apple.dock 'appswitcher-all-displays' -bool NO" ${config.out}/activate-user
grep "defaults write com.apple.dock 'orientation' -string 'left'" ${config.out}/activate-user
grep "defaults write com.apple.screencapture 'location' -string '/tmp'" ${config.out}/activate-user
grep "defaults write com.apple.universalaccess 'reduceTransparency' -bool YES" ${config.out}/activate-user