linux中使用 redshift 进行防蓝光:保护眼睛

Linux防蓝光(Redshift)

linux中使用 redshift 进行防蓝光

==========================

Linux防蓝光(Redshift)

最近有点用眼过度, 突然灵机一动想到可以给电脑加上防蓝光,这样眼睛没那么累. 今天介绍一个小工具---Redshift, 简单实用, 一行代码轻松搞定.

首先要先安装:

sudo apt-get install redshift

如果安装不成功update一下再安装:

sudo apt-get update

最后一行代码轻松让电脑"换脸":

redshift -O 4500

后边的数字可以调节, 本人比较适用4500, 往高调会变白, 往低调会变更黄, 看自己喜欢~

原文链接:https://blog.csdn.net/xu823508091/article/details/123252511

linux中使用 redshift 进行防蓝光

电脑太刺眼时,可以使用redshift来调整光线
安装方式:
可以直接用command装
参考:https://blog.csdn.net/xu823508091/article/details/123252511

最近有点用眼过度, 突然灵机一动想到可以给电脑加上防蓝光,这样眼睛没那么累. 今天介绍一个小工具—Redshift, 简单实用, 一行代码轻松搞定.

首先要先安装:

sudo apt-get install redshift
如果安装不成功update一下再安装:

sudo apt-get update
最后一行代码轻松让电脑"换脸":

redshift -O 4500
后边的数字可以调节, 本人比较适用4500, 往高调会变白, 往低调会变更黄, 看自己喜欢~

也可以直接在
在这里插入图片描述
在这里插入图片描述
注意装完可能会报错,这时需要打开位置服务
在这里插入图片描述
服务

原文链接:https://blog.csdn.net/qq_21237549/article/details/126369916

第二种方法: 配置文件

  https://blog.csdn.net/qq_35072703/article/details/80193542 

在 ~/.config 目录中建立文件 redshift.conf

输入以下内容

[redshift]
; 白天屏幕温度
temp-day=5000
; 夜晚屏幕温度
temp-night=4100
; 昼夜是否平滑过度(1/0)
transition=1

; 位置提供方式(redshift -l list)
location-provider=manual

[manual]
; 位置提供方式设置
; 经纬度(北京)
lat=39.90
lon=116.41

 

x1.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

原文链接:https://blog.csdn.net/qq_42306803/article/details/103682937

Linux高效护眼——怎样将redshift设置成全天高效护眼

redshift是Linux下一款非常优秀的护眼软件,可以自动定位经纬度,然后根据时间进行调整屏幕颜色,达到护眼的目的。但是我们可能想增强一下护眼力度,怎么办呢?

通过查阅官网文档,得到的方案如下:

vim ~/.config/redshift.conf

在redshift.conf中输入下面代码:

    ; Global settings for redshift
    [redshift]
    ; Set the day and night screen temperatures
    temp-day=5000
    temp-night=3500
     
    ; Enable/Disable a smooth transition between day and night
    ; 0 will cause a direct change from day to night screen temperature.
    ; 1 will gradually increase or decrease the screen temperature.
    transition=1
     
    ; Set the screen brightness. Default is 1.0.
    ;brightness=0.9
    ; It is also possible to use different settings for day and night
    ; since version 1.8.
    ;brightness-day=0.7
    ;brightness-night=0.4
    ; Set the screen gamma (for all colors, or each color channel
    ; individually)
    gamma=0.8
    ;gamma=0.8:0.7:0.8
    ; This can also be set individually for day and night since
    ; version 1.10.
    ;gamma-day=0.8:0.7:0.8
    ;gamma-night=0.6
     
    ; Set the location-provider: geoclue, geoclue2, manual
    ; type redshift -l list to see possible values.
    ; The location provider settings are in a different section.
    location-provider=manual
     
    ; Set the adjustment-method: randr, vidmode
    ; type redshift -m list to see all possible values.
    ; randr is the preferred method, vidmode is an older API.
    ; but works in some cases when randr does not.
    ; The adjustment method settings are in a different section.
    adjustment-method=randr
     
    ; Configuration of the location-provider:
    ; type redshift -l PROVIDER:help to see the settings.
    ; ex: redshift -l manual:help
    ; Keep in mind that longitudes west of Greenwich (e.g. the Americas)
    ; are negative numbers.
    [manual]
    lat=22.5
    lon=88.3
     
    ; Configuration of the adjustment-method
    ; type redshift -m METHOD:help to see the settings.
    ; ex: redshift -m randr:help
    ; In this example, randr is configured to adjust screen 1.
    ; Note that the numbering starts from 0, so this is actually the
    ; second screen. If this option is not specified, Redshift will try
    ; to adjust _all_ screens.
    [randr]
    screen=0

; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=5000
temp-night=3500
 
; Enable/Disable a smooth transition between day and night
; 0 will cause a direct change from day to night screen temperature.
; 1 will gradually increase or decrease the screen temperature.
transition=1
 
; Set the screen brightness. Default is 1.0.
;brightness=0.9
; It is also possible to use different settings for day and night
; since version 1.8.
;brightness-day=0.7
;brightness-night=0.4
; Set the screen gamma (for all colors, or each color channel
; individually)
gamma=0.8
;gamma=0.8:0.7:0.8
; This can also be set individually for day and night since
; version 1.10.
;gamma-day=0.8:0.7:0.8
;gamma-night=0.6
 
; Set the location-provider: geoclue, geoclue2, manual
; type redshift -l list to see possible values.
; The location provider settings are in a different section.
location-provider=manual
 
; Set the adjustment-method: randr, vidmode
; type redshift -m list to see all possible values.
; randr is the preferred method, vidmode is an older API.
; but works in some cases when randr does not.
; The adjustment method settings are in a different section.
adjustment-method=randr
 
; Configuration of the location-provider:
; type redshift -l PROVIDER:help to see the settings.
; ex: redshift -l manual:help
; Keep in mind that longitudes west of Greenwich (e.g. the Americas)
; are negative numbers.
[manual]
lat=22.5
lon=88.3
 
; Configuration of the adjustment-method
; type redshift -m METHOD:help to see the settings.
; ex: redshift -m randr:help
; In this example, randr is configured to adjust screen 1.
; Note that the numbering starts from 0, so this is actually the
; second screen. If this option is not specified, Redshift will try
; to adjust _all_ screens.
[randr]
screen=0

其中temp-day是白天的色温,temp-night是晚上的色温,全天色温在此区间变动,可以适当将其调低,护眼效果更明显。

之后执行命令:

redshift -c .config/redshift.conf
重新开启redshift,一定要注意先把原来的redshift关闭掉,不然两个redshift会相互影响,看到的效果就是不断闪屏

原文链接:https://blog.csdn.net/songchuwang1868/article/details/104406574

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值