Redshift: Difference between revisions

From wikinotes
 
No edit summary
Line 1: Line 1:
redshift is a commandline program inspired by f.lux to modify your computer's colour temperature for
Redshift overlays a filter overtop of your screen to make the colour temperature warmer at night.
reduced eye strain depending on the time of day. If it's working properly you won't notice a thing until it has been
turned off. There is a CLI version of F.lux, but it only supports a single screen. Redshift supports multiple screens.


= Warm Screen =
= Documentation =
<blockquote>
<blockquote>
<source lang="bash">
{| class="wikitable"
### Install
|-
pacman -S redshift
| <code>man redshift</code> || https://man.archlinux.org/man/community/redshift/redshift.1.en
|-
|}
</blockquote><!-- Documentation -->


### Start/test colour
= Locations =
redshift -l 45:-75
<blockquote>
{| class="wikitable"
|-
| <code>~/.config/redshift/</code>
|-
|}
</blockquote><!-- Locations -->
 
= Install =
<blockquote>
<syntaxhighlight lang="bash">
pacman -S redshift  # arch
</syntaxhighlight>
</blockquote><!-- Install -->


### Autostart redshift
= Configuration =
sudo cp /usr/lib/systemd/user/redshift.service /etc/systemd/system
<blockquote>
sudo systemctl start redshift
<syntaxhighlight lang="dosini">
sudo systemctl enable redshift
# ~/.config/redshift/redshift.conf
#  (I had issues starting it with systemd, so I've temporarily added it to my .start script)


#### ~/.config/redshift.conf
[redshift]
lat=45.42
adjustment-method=randr
lon=-75.69
location-provider=manual
screen=0
</source>
</blockquote>
<!-- warm tone -->


= Darken Screen =
[manual]
# see https://www.geonames.org/
#  + == north/east
#  - == south/west
# north
lat=44
lon=-79
</syntaxhighlight>
</blockquote><!-- Configuration -->
 
= Usage =
<blockquote>
<blockquote>
If the warm tone isn't enough, you can also darken your screen below the hardware amount using xrandr.
== Service ==
<blockquote>
<syntaxhighlight lang="bash">
systemctl --user enable redshift-gtk.service
systemctl --user start redshift-gtk.service
</syntaxhighlight>
</blockquote><!-- Service -->


<source lang="bash">
== Cli ==
xrandr --output eDP1 --brightness 0.4
<blockquote>
</source>


</blockquote><!-- darken screen -->
</blockquote><!-- Cli -->
</blockquote><!-- Usage -->

Revision as of 02:43, 14 May 2023

Redshift overlays a filter overtop of your screen to make the colour temperature warmer at night.

Documentation

man redshift https://man.archlinux.org/man/community/redshift/redshift.1.en

Locations

~/.config/redshift/

Install

pacman -S redshift  # arch

Configuration

# ~/.config/redshift/redshift.conf

[redshift]
adjustment-method=randr
location-provider=manual

[manual]
# see https://www.geonames.org/
#   + == north/east
#   - == south/west
# north
lat=44
lon=-79

Usage

Service

systemctl --user enable redshift-gtk.service
systemctl --user start redshift-gtk.service

Cli