← 返回命令列表

Linux command

redshift 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start redshift

redshift

Set color temperature manually

redshift -O [3500]

Set day and night temperatures

redshift -t [5500]:[3500]

Set location manually

redshift -l [40.7]:[74.0]

Reset screen to normal color

redshift -x

Run in one-shot mode

redshift -o

Print current color temperature

redshift -p

说明

redshift adjusts the color temperature of the screen based on time of day, reducing blue light exposure in the evening. This can help reduce eye strain and improve sleep quality by matching screen color to ambient lighting. During the day, the screen maintains normal color temperature (around 5500-6500K). As the sun sets, redshift gradually transitions to warmer colors (3000-4000K), reducing blue light that can interfere with circadian rhythms. Location can be determined automatically using geolocation services (geoclue) or specified manually. The program runs continuously, adjusting temperature throughout the day based on calculated sunrise and sunset times. Different backends support different display systems: randr for X11, wayland for Wayland compositors, and drm for console/framebuffer.

参数

-l _lat_:_lon_
Set location (latitude:longitude) for sunrise/sunset calculation
-t _day_:_night_
Set color temperature in Kelvin (default: 5500:3500)
-b _day_:_night_
Set screen brightness (0.1-1.0)
-O _temp_
Set specific color temperature immediately
-o
One-shot mode; set temperature and exit
-x
Reset color temperature to default
-p
Print current settings and parameters
-m _method_
Adjustment method (randr, vidmode, drm, wayland)
-g _r_:_g_:_b_
Set gamma correction
-r
Disable temperature transitions
-v
Verbose output
-c _file_
Load configuration from file

FAQ

What is the redshift command used for?

redshift adjusts the color temperature of the screen based on time of day, reducing blue light exposure in the evening. This can help reduce eye strain and improve sleep quality by matching screen color to ambient lighting. During the day, the screen maintains normal color temperature (around 5500-6500K). As the sun sets, redshift gradually transitions to warmer colors (3000-4000K), reducing blue light that can interfere with circadian rhythms. Location can be determined automatically using geolocation services (geoclue) or specified manually. The program runs continuously, adjusting temperature throughout the day based on calculated sunrise and sunset times. Different backends support different display systems: randr for X11, wayland for Wayland compositors, and drm for console/framebuffer.

How do I run a basic redshift example?

Run `redshift` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -l _lat_:_lon_ do in redshift?

Set location (latitude:longitude) for sunrise/sunset calculation