我想要来自 GNOME shell 3.24 的夜灯小程序

Wag*_*ira 1 software-recommendation gnome-shell

我是一名 Web 开发人员,在我的 Ubuntu 16.04 上工作,我想更新到 Ubuntu 17.04 以安装新的 gnome-shell 3.24 版,因为我真的想要夜灯小程序等新功能,我试过使用通量应用程序,但它不起作用。我已经寻找了一个可行的替代方案,但我没有任何运气。

Ter*_*nce 7

您可以redshift从以下命令安装:

sudo apt install redshift
Run Code Online (Sandbox Code Playgroud)

redshift如果您可以使用redshift自己的默认设置,则可以添加到您的启动中。或者,您可以像我在下面列出的那样手动配置它。


您可以从https://www.latlong.net/获取您的经度和纬度

然后,您可以创建一个配置文件,该文件redshift将在您的主文件夹中使用~/.config/redshift.conf。向其中添加以下几行,我为波特兰或俄勒冈州添加了latlon。但是您可以为您的位置添加这些。如果要使用 LAT 和 LONG,请确保设置location-provider=manualthen。但是,该应用程序geoclue2应该能够找到您的位置。根据您的喜好更改temp-daytemp-night

~/.config/redshift.conf

; Global settings
[redshift]
temp-day=6500K
temp-night=3500
transition=1
gamma=1.000:1.000:1.000
location-provider=geoclue2
adjustment-method=randr

; The location provider and adjustment method settings
; are in their own sections.
; These are the location for Portland, OR.
[manual]
lat=45.523062
lon=-122.676482
Run Code Online (Sandbox Code Playgroud)

然后您所要做的就是将 的应用程序添加redshift -c ~/.config/redshift.conf到您的启动应用程序中,默认情况下它将在启动时使用您的配置文件。

您可以redshift通过运行redshift -pv或检查您的参数redshift -p

terrance@terrance-ubuntu:~$ redshift -pv
Location: 45.55 N, 122.68 W
Temperatures: 6500K at day, 3500K at night
Solar elevations: day above 3.0, night below -6.0
Brightness: 1.00:1.00
Gamma (Daytime): 1.000, 1.000, 1.000
Gamma (Night): 1.000, 1.000, 1.000
Solar elevation: -22.482371
Period: Night
Color temperature: 3500K
Brightness: 1.00



terrance@terrance-ubuntu:~$ redshift -p
Period: Night
Color temperature: 3500K
Brightness: 1.00
Run Code Online (Sandbox Code Playgroud)

希望这可以帮助!