1.1 更新软件
ybx@ybx-PC:~$ sudo apt-get update
命中:1 http://packages.deepin.com/deepin lion InRelease
正在读取软件包列表... 完成
1.2 查找redshift软件
ybx@ybx-PC:~$ apt-cache search redshift | grep ^r
redshift - Adjusts the color temperature of your screen
redshift-gtk - Adjusts the color temperature of your screen with GTK+ integration
1.3 安装软件
ybx@ybx-PC:~$ sudo apt-get install redshift
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
redshift 已经是最新版 (1.11-1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
1.4 创建配置文件
- redshift.conf
; 白天屏幕温度
temp-day=5800
; 夜晚屏幕温度
temp-night=4600
; 昼夜是否平滑过度(1/0)
transition=1
; 全局屏幕亮度
;brightness=0.9
; 昼夜屏幕亮度(version >= 1.8)
brightness-day=0.9
brightness-night=0.7
; 屏幕gamma
gamma=0.9
; 位置提供方式(redshift -l list)
location-provider=manual
; 调整工具(redshift -m list)
adjustment-method=randr
[manual]
; 位置提供方式设置
; 经纬度(北京)lat=39.90
lon=116.41
; 屏幕调整工具设置
; 第1 块屏幕(0)
[randr]
screen=0
来源:CSDN
作者:初心魏
链接:https://blog.csdn.net/qq_42306803/article/details/103682937