# Redshift not working with i3wm

**URL:** <https://forum.endeavouros.com/t/redshift-not-working-with-i3wm/53515>\
**Category:** Newbie\
**Created:** [April 3, 2024, 7:44pm UTC](https://forum.endeavouros.com/t/redshift-not-working-with-i3wm/53515 "2024-04-03T19:44:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trichter](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/t/9e8a1a/32.png) [@Trichter](https://forum.endeavouros.com/u/Trichter)\
**Post date:** [April 3, 2024, 7:44pm UTC](https://forum.endeavouros.com/t/redshift-not-working-with-i3wm/53515/1 "2024-04-03T19:44:31Z")

</div>

Hi!

I was just looking around to figure out how to enable something like night shift for my display. After looking around for a bit I found redshift which works great when I run this command in my terminal:

```auto
redshift -l 52.1326:5.2913

```

Since I wanted redshift to start whenever I’m starting my pc and I’m using i3 I put it into the i3 config like this:

```auto
exec --no-startup-id redshift -l 52.1326:5.2913

```

I saved the file and refreshed the config and I didn’t work so I restarted my pc, it didn’t work again. I checked the i3 config and the line is still in there so it should’ve worked.

So I ran

```auto
redshift -l 52.1326:5.2913

```

again and the display dims again but now it’s also flickering every few seconds (irregularly).

Any ideas how I can fix this or generally speaking enable redshift (or any alternatives?) for endeavour with i3wm?

---

<div class="post-metadata">

**Author:** ![drunkenvicar](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/drunkenvicar/32/112222_2.png) [@drunkenvicar](https://forum.endeavouros.com/u/drunkenvicar)\
**Post date:** [April 3, 2024, 7:58pm UTC](https://forum.endeavouros.com/t/redshift-not-working-with-i3wm/53515/2 "2024-04-03T19:58:58Z")

</div>

> [@Trichter](#):
>
> `52.1326:5.2913`

not sure it’s a WM thing (yet). the thing with `redshift` is you need to amend it’s startup .`conf` file with those coordinates. I’ve had that flickering.  
I’ve never had much luck appending the `conf` file [the internets all say must append conf file with coordinates etc]…

so I did find a workaround.  
I used to run this command in autostart (budgie) every time it booted: `redshift -O 4000`.  
the 4000 is just my preference of brightness.  
later I got rid of the script so I could just adjust as needed during the day with a fast terminal command.

you could see if the -O thing gets rid of your flickering. good luck.

---

<div class="post-metadata">

**Author:** ![pebcak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pebcak/32/100472_2.png) [@pebcak](https://forum.endeavouros.com/u/pebcak)\
**Post date:** [April 3, 2024, 8:14pm UTC](https://forum.endeavouros.com/t/redshift-not-working-with-i3wm/53515/3 "2024-04-03T20:14:02Z")

</div>

There is quite some info here: [https://wiki.archlinux.org/title/Redshift#](https://wiki.archlinux.org/title/Redshift#)

---

<div class="post-metadata">

**Author:** ![andrewb](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/85e7bf/32.png) [@andrewb](https://forum.endeavouros.com/u/andrewb)\
**Post date:** [April 3, 2024, 11:14pm UTC](https://forum.endeavouros.com/t/redshift-not-working-with-i3wm/53515/4 "2024-04-03T23:14:51Z")

</div>

I’ve never used a redshift config.file, preferring to put my config all on a command line in a small shell file.

I’d suggest the OP try just two decimals for their lat/long coordinates.

```auto
redshift -l 52.13:5.29

```

ensure you don’t have any stray redshift processess running, as this might cause the flashing.

```auto
ps axu | grep redshift

```

then kill any errant processes:

```auto
kill NNNN

```

where NNNN is the process number from the process stack printout

---

<div class="post-metadata">

**Author:** ![Trichter](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/t/9e8a1a/32.png) [@Trichter](https://forum.endeavouros.com/u/Trichter)\
**Post date:** [April 4, 2024, 5:17pm UTC](https://forum.endeavouros.com/t/redshift-not-working-with-i3wm/53515/5 "2024-04-04T17:17:25Z")

</div>

I solved it now like this:

1. Created a`~/.config/redshift/redshift.conf` (modified version of [this example](https://github.com/jonls/redshift/blob/master/redshift.conf.sample) from the GitHub page)
2. Used `redshift-gtk` instead (don’t know how much that has helped but I like to have the icon)
3. In my i3 config: `exec --no-startup-id redshift-gtk`

That seems to work now. Thanks for all the replies!

---

<div class="post-metadata">

**Author:** ![drunkenvicar](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/drunkenvicar/32/112222_2.png) [@drunkenvicar](https://forum.endeavouros.com/u/drunkenvicar)\
**Post date:** [April 4, 2024, 9:01pm UTC](https://forum.endeavouros.com/t/redshift-not-working-with-i3wm/53515/6 "2024-04-04T21:01:12Z")

</div>

you did the tried and true internet method (I could not make that happen) so congrats! I made a `~/.config/redshift/redshift.conf` file, alternated between `redshift` and `redshift-gtk`, which spawned more `conf` files…then I had it set to autostart so that changed everything and nothing worked and flickering started and I really made a mess of it. Enter `redshift -O XXXX`.

We each solved it a different way, that’s what I love about linux. Good job @Trichter !

---

<div class="post-metadata">

**Author:** ![system](https://forum.endeavouros.com/uploads/default/original/2X/9/9ea52f9fd5ef8e609e593c362d61a36295f48be8.png) [@system](https://forum.endeavouros.com/u/system)\
**Post date:** [April 6, 2024, 9:01pm UTC](https://forum.endeavouros.com/t/redshift-not-working-with-i3wm/53515/7 "2024-04-06T21:01:52Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
