Skip to content

Instantly share code, notes, and snippets.

@chibby0ne
Created February 12, 2020 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chibby0ne/cdd76c593df8edeb91db70d1061eda9b to your computer and use it in GitHub Desktop.
Save chibby0ne/cdd76c593df8edeb91db70d1061eda9b to your computer and use it in GitHub Desktop.
redshift in sway arch linux
To run redshift in sway:
1. Install redshift-wlr-gamma-control
2. Edit the redshift.service and add:
a. Environment=XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR_ACTUALLY
b. Environment=WAYLAND_DISPLAY=$WAYLAND_DISPLAY_ACTUAL_VALUE
Since the XDG_RUNTIME_DIR, might not be set you can set it using:
export XDG_RUNTIME_DIR=/run/user/$ID
The $ID will be expanded by the uid of your user.
3. Enable and start the systemd unit.
To install the unit which might not be in /usr/lib/systemd/systemd but in /usr/lib/systemd/user, you need to use the absolute path like:
sudo systemctl install /usr/lib/systemd/user/redshift.service
That's it!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment