Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/macform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ dock:
# Default: false
scroll-to-open: false

# Description: Animate application icons in the Dock when opening them
# Type: bool
# Default: true
animate-opening-applications: true

# Description: Bundle IDs of applications to remove from the Dock. For example:
# remove-apps:
# - com.apple.apps.launcher
Expand Down
4 changes: 4 additions & 0 deletions internal/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ var sections = map[string][]SettingDef{
SpecKey: "scroll-to-open", Type: "bool", RestartCommand: killDock,
Provider: provider.NewDefaults("com.apple.dock", "scroll-to-open", "bool"),
},
{
SpecKey: "animate-opening-applications", Type: "bool", RestartCommand: killDock,
Provider: provider.NewDefaults("com.apple.dock", "launchanim", "bool"),
},
{
SpecKey: "remove-apps", Type: "list", RestartCommand: killDock,
ProviderFor: provider.NewDockAppPresence,
Expand Down
1 change: 1 addition & 0 deletions internal/registry/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func TestAllDockSettingsRegistered(t *testing.T) {
expected := []string{
"autohide", "tile-size", "orientation", "minimize-to-application",
"show-recents", "magnification", "large-size", "min-effect", "scroll-to-open",
"animate-opening-applications",
}
for _, key := range expected {
if _, ok := Lookup("dock", key); !ok {
Expand Down