mac 命令行更改时间
![](https://i-blog.csdnimg.cn/blog_migrate/dca81ad2ca3b33d618888b6e0a412f82.png)
Earlier this week I posted about how you can modify your Mac's volume from command line. Little command line scripts make me smile because I spend so much of my day in command line, and automation can be the key to productivity. I next thought about modifying brightness from command line and I found out that changing Mac brightness is super easy!s
本周早些时候,我发布了有关如何从命令行修改Mac音量的信息。 很少的命令行脚本让我微笑,因为我将大部分时间都花在命令行上,而自动化可能是提高生产力的关键。 接下来我想到了从命令行修改亮度,然后发现更改Mac 亮度非常简单!
The first step to changing Mac brightness is installing the brightness
utility with Homebrew:
更改Mac亮度的第一步是使用Homebrew安装brightness
实用程序:
brew install brightness
With brightness
installed, you can change the brightness of a Mac from command line:
安装brightness
,您可以从命令行更改Mac的亮度:
brightness 0.3
This utility could be used somewhat like ding; you could execute a long-running script and then modify brightness to signify the task has completed:
可以像ding一样使用此实用程序; 您可以执行长时间运行的脚本,然后修改亮度以表示任务已完成:
brightness 0.1 && ./do-long-task && brightness 1
The brightness of a screen is a simple setting but you can make it work for you via automation with brightness
!
屏幕的亮度是一个简单的设置,但是您可以通过brightness
自动控制使其适合您!
mac 命令行更改时间