• Ubuntu 的护眼软件 :RedShift


    安装步骤如下:

    1. sudo apt-grt install redshift

    2.sudo apt-get install redshift-gtk

    3.设置一下参数:redshift-gtk -l 34.27:108.93 -t 5500:5000

    其中,34.27:108.93 表示西安的维度,用于昼夜调节 ;5500:5000 表示白天色温5500 夜晚色温5000

    此时理论上在应用界面已经可以看到图标:

    但是,以防看不到,那么,gtk-redshift  语句可以用来打开redshift

    4.但,过了一会这个redshift就停止工作了,再次开启时,虽然是白天,但屏幕色温并不是我设定的5500,我不知道为啥,于是,我通过下面这个博客进行了修改:Linux高效护眼——怎样将redshift设置成全天高效护眼_Lailikes的博客-CSDN博客

    简言之就是要再重定义一下redshift的配置文件:

    gedit ~/.config/redshift.conf  用gedit打开(新建)一个redshift的配置文件

    在redshift.conf中输入下面内容:

    1. ; Global settings for redshift
    2. [redshift]
    3. ; Set the day and night screen temperatures
    4. temp-day=5000
    5. temp-night=3500
    6. ; Enable/Disable a smooth transition between day and night
    7. ; 0 will cause a direct change from day to night screen temperature.
    8. ; 1 will gradually increase or decrease the screen temperature.
    9. transition=1
    10. ; Set the screen brightness. Default is 1.0.
    11. ;brightness=0.9
    12. ; It is also possible to use different settings for day and night
    13. ; since version 1.8.
    14. ;brightness-day=0.7
    15. ;brightness-night=0.4
    16. ; Set the screen gamma (for all colors, or each color channel
    17. ; individually)
    18. gamma=0.8
    19. ;gamma=0.8:0.7:0.8
    20. ; This can also be set individually for day and night since
    21. ; version 1.10.
    22. ;gamma-day=0.8:0.7:0.8
    23. ;gamma-night=0.6
    24. ; Set the location-provider: geoclue, geoclue2, manual
    25. ; type redshift -l list to see possible values.
    26. ; The location provider settings are in a different section.
    27. location-provider=manual
    28. ; Set the adjustment-method: randr, vidmode
    29. ; type redshift -m list to see all possible values.
    30. ; randr is the preferred method, vidmode is an older API.
    31. ; but works in some cases when randr does not.
    32. ; The adjustment method settings are in a different section.
    33. adjustment-method=randr
    34. ; Configuration of the location-provider:
    35. ; type redshift -l PROVIDER:help to see the settings.
    36. ; ex: redshift -l manual:help
    37. ; Keep in mind that longitudes west of Greenwich (e.g. the Americas)
    38. ; are negative numbers.
    39. [manual]
    40. lat=22.5
    41. lon=88.3
    42. ; Configuration of the adjustment-method
    43. ; type redshift -m METHOD:help to see the settings.
    44. ; ex: redshift -m randr:help
    45. ; In this example, randr is configured to adjust screen 1.
    46. ; Note that the numbering starts from 0, so this is actually the
    47. ; second screen. If this option is not specified, Redshift will try
    48. ; to adjust _all_ screens.
    49. [randr]
    50. screen=0

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

    之后执行命令:

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

    参考链接:ubuntu护眼第二大神器 Redshift_Lebhoryi的博客-CSDN博客_ubuntu 护眼

    ubuntu护眼软件——Redshift_aaon22357的博客-CSDN博客

  • 相关阅读:
    10.14~10.15verilog操作流程与Block Design
    如何提高团队协作效率?看完这篇就懂了(附工具)
    SpringBoot——全局异常处理
    Linux Shell脚本练习(一)
    ElasticSearch(ES)简单介绍
    Java变量类型 Java进阶必看
    砥砺的前行|基于labview的机器视觉图像处理|NI Vision Assisant(三)——Image(图像) 功能
    2022-05-21每日一题
    Redis中的SDS理解
    wy的leetcode刷题记录_Day34
  • 原文地址:https://blog.csdn.net/qq_41764621/article/details/126018396