1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-08-17 00:20:44 +03:00

feat: provide option to display the appswitcher on all displays

This commit is contained in:
Jan Schmitt 2022-08-20 17:32:11 +02:00
parent 80871c71ed
commit fbca12e524
No known key found for this signature in database
GPG Key ID: F03E7A35B52BA595
2 changed files with 10 additions and 0 deletions

View File

@ -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;

View File

@ -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