mirror of
https://github.com/yannbertrand/macos-defaults
synced 2024-11-13 23:27:17 +00:00
⬆️ Add Sonoma compatibility info (#313)
This commit is contained in:
parent
bcb917ab77
commit
efcf613b62
36 changed files with 31 additions and 323 deletions
|
@ -17,6 +17,7 @@ Choose what information should be shown in the app's Dock icon, if any.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- **Parameter type**: int
|
||||
|
|
|
@ -17,6 +17,7 @@ How frequently Activity Monitor should update its data, in seconds.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- **Parameter type**: int
|
||||
|
|
|
@ -17,6 +17,7 @@ Hide all icons on desktop
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Change the Dock opening delay.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Change the Dock opening and closing animation times.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Autohides the Dock. You can toggle the Dock using `⌥ alt`+`⌘ cmd`+`d`.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Change the Dock minimize animation.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Set the Dock position
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Scroll up on a Dock icon to show all Space's opened windows for an app, or open
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Show recently used apps in a separate section of the Dock.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Set the icon size of Dock items in pixels.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Keep folders on top when sorting by name
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Show all file extensions in the Finder.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Show hidden files in the Finder. You can toggle the value using `⌘ cmd`+`⇧ s
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Set the default search scope when performing a search
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Choose whether to display a warning when changing a file extension.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Set the default view style for folders without custom setting
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Choose the size of Finder sidebar icons
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Add a quit option to the Finder. Behaves strangely when activated, would not rec
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Show path bar in the bottom of the Finder windows
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -18,6 +18,7 @@ The focus change only works between the Terminal windows.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- **Parameter type**: bool
|
||||
|
|
|
@ -18,6 +18,7 @@ Requires closing and opening the app before working. Tested on Apple Preview.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- **Parameter type**: bool
|
||||
|
|
|
@ -17,6 +17,7 @@ When switching to an app, switch to a space with open windows for this app.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Big Sur
|
||||
- **Parameter type**: bool
|
||||
|
|
|
@ -18,6 +18,7 @@ Mission Control.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Big Sur
|
||||
- **Parameter type**: bool
|
||||
|
|
|
@ -17,6 +17,7 @@ Choose whether to rearrange Spaces automatically.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Disable screenshot shadow when capturing an app (`⌘ cmd`+`⇧ shift`+`4` then
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Include date and time in screenshot filenames.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Set default screenshot location.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Choose whether to display a thumbnail after taking a screenshot.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Choose the screenshots image format.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- Big Sur
|
||||
|
|
|
@ -17,6 +17,7 @@ Choose between Light/Medium/Firm.
|
|||
<!-- break lists -->
|
||||
|
||||
- **Tested on macOS**:
|
||||
- Sonoma
|
||||
- Ventura
|
||||
- Monterey
|
||||
- **Parameter type**: int
|
||||
|
|
|
@ -1,75 +0,0 @@
|
|||
const aperture = require('aperture')()
|
||||
const delay = require('delay')
|
||||
const robot = require('robotjs')
|
||||
const util = require('util')
|
||||
const exec = util.promisify(require('child_process').exec)
|
||||
const { makeAppActive, compressVideo } = require('../../utils')
|
||||
|
||||
module.exports = {
|
||||
run: async (outputPath) => {
|
||||
console.log(
|
||||
'> Recording menu bar clock DateFormat with param set to "EEE HH:mm:ss"',
|
||||
)
|
||||
|
||||
// Set the menu bar menuExtras to only show the clock, it will be on the left of notification center, siri, and spotlight search.
|
||||
const { stderr: setEnvError } = await exec(
|
||||
`defaults write com.apple.menuextra.clock DateFormat -string "EEE HH:mm:ss" && killall SystemUIServer && sleep 10`,
|
||||
)
|
||||
|
||||
if (setEnvError) {
|
||||
console.error(
|
||||
'An error occured while setting up the menu bar clock DateFormat command',
|
||||
)
|
||||
logRollbackInfo()
|
||||
throw new Error(setEnvError)
|
||||
}
|
||||
|
||||
// Preparation
|
||||
await makeAppActive('Finder')
|
||||
const { width, height } = robot.getScreenSize()
|
||||
const recordWidth = 400
|
||||
const recordHeight = 29
|
||||
const cropArea = {
|
||||
x: width - recordWidth,
|
||||
y: height - recordHeight, // Film the menu bar, which is 29 pixels
|
||||
width: recordWidth,
|
||||
height: recordHeight,
|
||||
}
|
||||
|
||||
// Action!
|
||||
await aperture.startRecording({ cropArea })
|
||||
await delay(2000)
|
||||
|
||||
const fp = await aperture.stopRecording()
|
||||
// End recording
|
||||
|
||||
try {
|
||||
await compressVideo(fp, outputPath, 'EEE_HH.mm.ss')
|
||||
} catch (compressVideoError) {
|
||||
logRollbackInfo()
|
||||
throw new Error(compressVideoError)
|
||||
}
|
||||
|
||||
const { stderr: deleteEnvError } = await exec(
|
||||
'defaults delete com.apple.menuextra.clock DateFormat && killall SystemUIServer && sleep 5',
|
||||
)
|
||||
if (deleteEnvError) {
|
||||
console.error(
|
||||
'An error occured while cleaning the menu bar clock DateFormat environment',
|
||||
)
|
||||
logRollbackInfo()
|
||||
throw new Error(deleteEnvError)
|
||||
}
|
||||
|
||||
return { filepath: `${outputPath}/EEE_HH.mm.ss`, isVideo: true }
|
||||
},
|
||||
}
|
||||
|
||||
function logRollbackInfo() {
|
||||
console.info(
|
||||
'Please manually run this command to make sure everything is properly reset:',
|
||||
)
|
||||
console.info(
|
||||
'defaults delete com.apple.menuextra.clock DateFormat && killall SystemUIServer',
|
||||
)
|
||||
}
|
|
@ -1,75 +0,0 @@
|
|||
const aperture = require('aperture')()
|
||||
const delay = require('delay')
|
||||
const robot = require('robotjs')
|
||||
const util = require('util')
|
||||
const exec = util.promisify(require('child_process').exec)
|
||||
const { makeAppActive, compressVideo } = require('../../utils')
|
||||
|
||||
module.exports = {
|
||||
run: async (outputPath) => {
|
||||
console.log(
|
||||
'> Recording menu bar clock DateFormat with param set to "EEE d MMM HH:mm:ss"',
|
||||
)
|
||||
|
||||
// Set the menu bar menuExtras to only show the clock, it will be on the left of notification center, siri, and spotlight search.
|
||||
const { stderr: setEnvError } = await exec(
|
||||
`defaults write com.apple.menuextra.clock DateFormat -string "EEE d MMM HH:mm:ss" && killall SystemUIServer && sleep 10`,
|
||||
)
|
||||
|
||||
if (setEnvError) {
|
||||
console.error(
|
||||
'An error occured while setting up the menu bar clock DateFormat command',
|
||||
)
|
||||
logRollbackInfo()
|
||||
throw new Error(setEnvError)
|
||||
}
|
||||
|
||||
// Preparation
|
||||
await makeAppActive('Finder')
|
||||
const { width, height } = robot.getScreenSize()
|
||||
const recordWidth = 400
|
||||
const recordHeight = 29
|
||||
const cropArea = {
|
||||
x: width - recordWidth,
|
||||
y: height - recordHeight, // Film the menu bar, which is 29 pixels
|
||||
width: recordWidth,
|
||||
height: recordHeight,
|
||||
}
|
||||
|
||||
// Action!
|
||||
await aperture.startRecording({ cropArea })
|
||||
await delay(2000)
|
||||
|
||||
const fp = await aperture.stopRecording()
|
||||
// End recording
|
||||
|
||||
try {
|
||||
await compressVideo(fp, outputPath, 'EEE_d_MMM_HH.mm.ss')
|
||||
} catch (compressVideoError) {
|
||||
logRollbackInfo()
|
||||
throw new Error(compressVideoError)
|
||||
}
|
||||
|
||||
const { stderr: deleteEnvError } = await exec(
|
||||
'defaults delete com.apple.menuextra.clock DateFormat && killall SystemUIServer && sleep 5',
|
||||
)
|
||||
if (deleteEnvError) {
|
||||
console.error(
|
||||
'An error occured while cleaning the menu bar clock DateFormat environment',
|
||||
)
|
||||
logRollbackInfo()
|
||||
throw new Error(deleteEnvError)
|
||||
}
|
||||
|
||||
return { filepath: `${outputPath}/EEE_d_MMM_HH.mm.ss`, isVideo: true }
|
||||
},
|
||||
}
|
||||
|
||||
function logRollbackInfo() {
|
||||
console.info(
|
||||
'Please manually run this command to make sure everything is properly reset:',
|
||||
)
|
||||
console.info(
|
||||
'defaults delete com.apple.menuextra.clock DateFormat && killall SystemUIServer',
|
||||
)
|
||||
}
|
|
@ -1,75 +0,0 @@
|
|||
const aperture = require('aperture')()
|
||||
const delay = require('delay')
|
||||
const robot = require('robotjs')
|
||||
const util = require('util')
|
||||
const exec = util.promisify(require('child_process').exec)
|
||||
const { makeAppActive, compressVideo } = require('../../utils')
|
||||
|
||||
module.exports = {
|
||||
run: async (outputPath) => {
|
||||
console.log(
|
||||
'> Recording menu bar clock DateFormat with param set to "EEE h:mm:ss"',
|
||||
)
|
||||
|
||||
// Set the menu bar menuExtras to only show the clock, it will be on the left of notification center, siri, and spotlight search.
|
||||
const { stderr: setEnvError } = await exec(
|
||||
`defaults write com.apple.menuextra.clock DateFormat -string "EEE h:mm:ss" && killall SystemUIServer && sleep 10`,
|
||||
)
|
||||
|
||||
if (setEnvError) {
|
||||
console.error(
|
||||
'An error occured while setting up the menu bar clock DateFormat command',
|
||||
)
|
||||
logRollbackInfo()
|
||||
throw new Error(setEnvError)
|
||||
}
|
||||
|
||||
// Preparation
|
||||
await makeAppActive('Finder')
|
||||
const { width, height } = robot.getScreenSize()
|
||||
const recordWidth = 400
|
||||
const recordHeight = 29
|
||||
const cropArea = {
|
||||
x: width - recordWidth,
|
||||
y: height - recordHeight, // Film the menu bar, which is 29 pixels
|
||||
width: recordWidth,
|
||||
height: recordHeight,
|
||||
}
|
||||
|
||||
// Action!
|
||||
await aperture.startRecording({ cropArea })
|
||||
await delay(2000)
|
||||
|
||||
const fp = await aperture.stopRecording()
|
||||
// End recording
|
||||
|
||||
try {
|
||||
await compressVideo(fp, outputPath, 'EEE_h.mm.ss')
|
||||
} catch (compressVideoError) {
|
||||
logRollbackInfo()
|
||||
throw new Error(compressVideoError)
|
||||
}
|
||||
|
||||
const { stderr: deleteEnvError } = await exec(
|
||||
'defaults delete com.apple.menuextra.clock DateFormat && killall SystemUIServer && sleep 5',
|
||||
)
|
||||
if (deleteEnvError) {
|
||||
console.error(
|
||||
'An error occured while cleaning the menu bar clock DateFormat environment',
|
||||
)
|
||||
logRollbackInfo()
|
||||
throw new Error(deleteEnvError)
|
||||
}
|
||||
|
||||
return { filepath: `${outputPath}/EEE_h.mm.ss`, isVideo: true }
|
||||
},
|
||||
}
|
||||
|
||||
function logRollbackInfo() {
|
||||
console.info(
|
||||
'Please manually run this command to make sure everything is properly reset:',
|
||||
)
|
||||
console.info(
|
||||
'defaults delete com.apple.menuextra.clock DateFormat && killall SystemUIServer',
|
||||
)
|
||||
}
|
|
@ -1,49 +0,0 @@
|
|||
const MacRunner = require('../../mac-runner')
|
||||
const { compressPngImage } = require('../../utils')
|
||||
|
||||
module.exports = {
|
||||
run: async (outputPath) => {
|
||||
console.log(
|
||||
'> Recording safari ShowFullURLInSmartSearchField with param set to false',
|
||||
)
|
||||
|
||||
try {
|
||||
const runner = new MacRunner()
|
||||
await runner
|
||||
.setDefault(
|
||||
'com.apple.Safari',
|
||||
'ShowFullURLInSmartSearchField',
|
||||
'-bool false',
|
||||
'0',
|
||||
)
|
||||
.openApp('Safari', '-F https://www.apple.com/macos/ventura/')
|
||||
.activateApp('Safari')
|
||||
.moveAndResizeApp('Safari', 0, 0, 740, 250)
|
||||
.captureApp('Safari', `${outputPath}/false-tmp.png`)
|
||||
.deleteDefault('com.apple.Safari', 'ShowFullURLInSmartSearchField')
|
||||
.killApp('Safari')
|
||||
.run()
|
||||
} catch (runnerError) {
|
||||
logRollbackInfo()
|
||||
throw new Error(runnerError)
|
||||
}
|
||||
|
||||
try {
|
||||
await compressPngImage(`${outputPath}/false-tmp.png`, outputPath, 'false')
|
||||
} catch (compressPngImageError) {
|
||||
logRollbackInfo()
|
||||
throw new Error(compressPngImageError)
|
||||
}
|
||||
|
||||
return { filepath: `${outputPath}/false` }
|
||||
},
|
||||
}
|
||||
|
||||
function logRollbackInfo() {
|
||||
console.info(
|
||||
'Please manually run this command to make sure everything is properly reset:',
|
||||
)
|
||||
console.info(
|
||||
'defaults delete com.apple.Safari ShowFullURLInSmartSearchField && killall Safari',
|
||||
)
|
||||
}
|
|
@ -1,49 +0,0 @@
|
|||
const MacRunner = require('../../mac-runner')
|
||||
const { compressPngImage } = require('../../utils')
|
||||
|
||||
module.exports = {
|
||||
run: async (outputPath) => {
|
||||
console.log(
|
||||
'> Recording safari ShowFullURLInSmartSearchField with param set to true',
|
||||
)
|
||||
|
||||
try {
|
||||
const runner = new MacRunner()
|
||||
await runner
|
||||
.setDefault(
|
||||
'com.apple.Safari',
|
||||
'ShowFullURLInSmartSearchField',
|
||||
'-bool true',
|
||||
'1',
|
||||
)
|
||||
.openApp('Safari', '-F https://www.apple.com/macos/ventura/')
|
||||
.activateApp('Safari')
|
||||
.moveAndResizeApp('Safari', 0, 0, 740, 250)
|
||||
.captureApp('Safari', `${outputPath}/true-tmp.png`)
|
||||
.deleteDefault('com.apple.Safari', 'ShowFullURLInSmartSearchField')
|
||||
.killApp('Safari')
|
||||
.run()
|
||||
} catch (runnerError) {
|
||||
logRollbackInfo()
|
||||
throw new Error(runnerError)
|
||||
}
|
||||
|
||||
try {
|
||||
await compressPngImage(`${outputPath}/true-tmp.png`, outputPath, 'true')
|
||||
} catch (compressPngImageError) {
|
||||
logRollbackInfo()
|
||||
throw new Error(compressPngImageError)
|
||||
}
|
||||
|
||||
return { filepath: `${outputPath}/true` }
|
||||
},
|
||||
}
|
||||
|
||||
function logRollbackInfo() {
|
||||
console.info(
|
||||
'Please manually run this command to make sure everything is properly reset:',
|
||||
)
|
||||
console.info(
|
||||
'defaults delete com.apple.Safari ShowFullURLInSmartSearchField && killall Safari',
|
||||
)
|
||||
}
|
Loading…
Reference in a new issue