Merge pull request #5028 from geekpi/master

translated
This commit is contained in:
geekpi 2017-01-22 10:19:00 +08:00 committed by GitHub
commit c7d5ec18f9
2 changed files with 89 additions and 90 deletions

View File

@ -1,90 +0,0 @@
translating----geekpi
[Improve your sleep by using Redshift on Fedora][1]
===============================================
![redshift](https://cdn.fedoramagazine.org/wp-content/uploads/2017/01/redshift-945x400.png)
The blue light emitted by most electronic devices, is known for having a negative impact on our sleep. We could simply quit using each of our electronic devices after dark, as an attempt to improve our sleep. However, since that is not really convenient for most of us, a better way is to adjusts the color temperature of your screen according to your surroundings. One of the most popular ways to achieve this is with the Redshift utility. Jon Lund Steffensen , the creator of Redshift, describes his program in the following way:
> Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.
The Redshift utility only works in the X11 session on Fedora Workstation. So if youre using Fedora 24, Redshift will work with the default login session. However, on Fedora 25, the default session at login is Wayland, so you will have to use the GNOME shell extension instead. Note, too that the GNOME Shell extension also works with X11 sessions.
### **Redshift utility**
#### Installation
Redshift is in the Fedoras repos, and thus, all we have to do to install is run this command:
```
sudo dnf install redshift
```
The package also provides a GUI. To use this, install `redshift-gtk` instead. Remember, though, that the utility only works on X11 sessions.
#### Using the Redshift utility
Run the utility from the command line with a command like the following:
```
redshift -l 23.6980:133.8807 -t 5600:3400
```
In the above command, the_ -l 23.6980:133.8807 _means we are informing Redshift that our current location is 23.6980° S, 133.8807° E. The_ -t 5600:3400_ declares that during the day you want a colour temperature of 5600, and 3400 at night.
The temperature is proportional to the amount of blue light emitted: a lower temperature, implies a lower amount of blue light.  I prefer to use 5600K (6500K is neutral daylight) during the day, and 3400K at night (anything lower makes me feel like Im staring at a tomato), but feel free to experiment with it.
If you dont specify a location, Redshift attempts to use the Geoclue method in order to determine your location coordinates. If this method doesnt work, you could use multiple [websites][2] and online maps to find the coordinates.
![screenshot1](https://cdn.fedoramagazine.org/wp-content/uploads/2017/01/screenshot1.png)
Dont forget to set Redshift as an autostart command, and to check [Jons website][3] for more information.
### Redshift GNOME Shell extension
The utility does not work when running the Wayland display server (which is standard in Fedora 25). Fortunately, there is a handy GNOME Shell extension that will do the same job. To install, run the the following commands`:`
```
sudo dnf copr enable mystro256/gnome-redshift
sudo dnf install gnome-shell-extension-redshift
```
After installing from the COPR repo, log out and log back in of your Fedora Workstation, then enable it in the GNOME Tweak tool. For more information, check the gnome-redshift [copr repo][4], or the [github repo][5].
After enabling the extension, a little sun (or moon) icon appears in the top right of your GNOME shell. The extension also provides a settings dialog to tweak the times of the redshift and the temperature.
![screenshot-from-2017-01-18-15-21-47](https://cdn.fedoramagazine.org/wp-content/uploads/2017/01/Screenshot-from-2017-01-18-15-21-47.jpg)
### Relative software
#### F.lux
Redshift could be seen as the open-source variant of F.lux. There is a [linux version of F.lux][6] now. You could consider using it if you dont mind using closed-source software, or if Redshift doesnt work properly.
#### Twilight for Android
Twilight is similar to Redshift, but for Android. It makes reading on your smartphone or tablet late at night more comfortable.
#### Redshift plasmoid
This is the Redshift GUI version for KDE. You can find more information on [github][7].
--------------------------------------------------------------------------------
via: https://fedoramagazine.org/safe-eyes-redshift/
作者:[novel][a]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]:http://novel.id.fedoraproject.org/
[1]:https://fedoramagazine.org/safe-eyes-redshift/
[2]:http://www.latlong.net/
[3]:http://jonls.dk/redshift/
[4]:https://copr.fedorainfracloud.org/coprs/mystro256/gnome-redshift/
[5]:https://github.com/benzea/gnome-shell-extension-redshift
[6]:https://justgetflux.com/linux.html
[7]:https://github.com/simgunz/redshift-plasmoid

View File

@ -0,0 +1,89 @@
[在 Fedora 上使用 Redshift 提升你的睡眠][1]
===============================================
![redshift](https://cdn.fedoramagazine.org/wp-content/uploads/2017/01/redshift-945x400.png)
大多数电子设备发射的蓝光被认为对我们的睡眠有负面影响。作为一个尝试,我们可以在黑暗中直接不再使用我们的电子设备,以改善我们的睡眠。然而,由于这对我们大多数人并不是很方便,更好的方法是根据你周围环境调整屏幕的色温。实现这一点的最流行的方法之一是使用 Redshift。 Redshift 的创建者 Jon Lund Steffensen 按如下方式描述了他的程序:
> Redshift 根据你周围的环境调整屏幕的色温。如果你在夜间在屏幕前工作,它可以帮助你减少眼睛伤害。
Redshift 仅在Fedora Workstation 上的 X11 会话中有效。所以如果你使用 Fedora 24Redshift 将使用默认的登录会话。然而,在 Fedora 25 上,登录的默认会话是 Wayland因此你将不得不使用 GNOME shell 扩展。注意GNOME Shell 扩展也适用于 X11 会话。
### **Redshift 工具**
#### 安装
Redshift 在 Fedora 的仓库中,因此我们使用下面的命令安装:
```
sudo dnf install redshift
```
这里也提供 GUI 包。要使用这个就安装 `redshift-gtk`。记住,这个工具只能在 X11 会话中使用:
#### 使用 Redshift 工具
用像下面的命令在命令行中运行:
```
redshift -l 23.6980:133.8807 -t 5600:3400
```
在以上命令中_ -l 23.6980:133.8807 _意思是我们通知 Redshift 我们当前的位置是 23.6980°S133.8807°E。 _ -t 56003400_ 声明你白天想要的色温是 5600晚上是 3400。
温度与发射的蓝光的量成比例:较低的温度意味着较低量的蓝光。我喜欢在白天使用 5600K6500K 是中性日光),在晚上使用 3400K更低的色温让我觉得我盯着番茄但你可以随意尝试。
如果你不指定位置Redshift 会尝试使用 Geoclue 方法来确定你的位置坐标。如果此方法不起作用,你可以使用多个[网站][2]和在线地图来查找坐标。
![screenshot1](https://cdn.fedoramagazine.org/wp-content/uploads/2017/01/screenshot1.png)
别忘记将 Redshift 设置自动启动,查看[ Jon 的网站][3]来获取更多信息。
### Redshift GNOME Shell 扩展
该程序不能在运行 Wayland 显示服务器(这是 Fedora 25 中的标准)的环境工作。幸运的是,这里有一个方便的 GNOME Shell 扩展可以做到同样的工作。要安装它,请运行以下命令:
```
sudo dnf copr enable mystro256/gnome-redshift
sudo dnf install gnome-shell-extension-redshift
```
从 COPR 仓库安装后,注销并重新登录你的 Fedora Workstation然后在 GNOME Tweak 工具中启用它。关于更多信息,请查看 gnome-redshift 的[ copr 仓库][4]或[ github 仓库][5]。
启用扩展后GNOME shell 右上角会出现一个小小的太阳(或月亮)图标。该扩展还提供了一个设置对话框来调整 redshift 和温度的时间。
![screenshot-from-2017-01-18-15-21-47](https://cdn.fedoramagazine.org/wp-content/uploads/2017/01/Screenshot-from-2017-01-18-15-21-47.jpg)
### 相关软件
#### F.lux
Redshift 可以被看作是 F.lux 的开源变体。现在有一个[ linux 版本的 F.lux][6]。如果你不介意使用闭源软件,或者 Redshift 不能正常工作,你可以考虑使用它。
#### Android 版 Twilight
Twilight 与 Redshift 相似,但是在 Android 中。它让你在晚上在智能手机或平板上阅读更加舒服。
#### Redshift plasmoid
这是 Redshift GUI 的 KDE 版本。你可以在[ github ][7] 中找到更多信息。
--------------------------------------------------------------------------------
via: https://fedoramagazine.org/safe-eyes-redshift/
作者:[novel][a]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]:http://novel.id.fedoraproject.org/
[1]:https://fedoramagazine.org/safe-eyes-redshift/
[2]:http://www.latlong.net/
[3]:http://jonls.dk/redshift/
[4]:https://copr.fedorainfracloud.org/coprs/mystro256/gnome-redshift/
[5]:https://github.com/benzea/gnome-shell-extension-redshift
[6]:https://justgetflux.com/linux.html
[7]:https://github.com/simgunz/redshift-plasmoid