由於某種神祕力量,ubuntu16.04下f.lux不能使用,現在用Redshift
參考:
- 使用 Linux 也要愛護眼睛 https://zhuanlan.zhihu.com/p/34562682
- Ubuntu16.04安裝Redshift色溫調節工具https://blog.csdn.net/DreamHome_S/article/details/78439098
- ubuntu下 保護眼睛的RedShift https://blog.csdn.net/Dr_Unknown/article/details/53766921
0x01 安裝
# 只安裝Redshift發現沒有界面,所以安裝了三個包
$ sudo apt install gtk-redshift redshift python-appindicator
# 執行
$ gtk-redshift
也可以直接搜索應用執行:
執行後選擇Autostart
0x02 配置
生成配置文件(杭州)
$ sudo gedit ~/.config/redshift.conf
[redshift]
; 白天屏幕溫度
temp-day=6500
; 夜晚屏幕溫度
temp-night=3500
; 晝夜是否平滑過度(1/0)
transition=1
; 位置提供方式(redshift -l list)
location-provider=manual
; 夜晚 gamma 值
gamma-night=0.8
; 手動設置位置
location-provider=manual
; 新校準方法 API
adjustment-method=randr
[manual]
; 緯度
lat=30
; 經度
lon=120
[randr]
screen=0