mac 命令行更改时间_从命令行更改Mac亮度

mac 命令行更改时间

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自动控制使其适合您!

翻译自: https://davidwalsh.name/mac-brightness

mac 命令行更改时间

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值