Created
February 12, 2020 21:26
-
-
Save chibby0ne/cdd76c593df8edeb91db70d1061eda9b to your computer and use it in GitHub Desktop.
redshift in sway arch linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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