Skip to content
/ sunsetr Public

Automatic color temperature controller for hyprsunset

License

Notifications You must be signed in to change notification settings

psi4j/sunsetr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sunsetr

Automatic color temperature controller for hyprsunset.

This image was taken using a shader to simulate the effect of hyprsunset

Use

Add this line to your hyprland.conf

exec-once = sunsetr &

Alternatively, you can place and use the Systemd service and enable it:

systemctl --user enable --now sunsetr.service

Testing different temperatures

If you want to test different temperatures before setting your sunset temp in the config, I recommend using hyprsunset directly:

pkill sunsetr

then:

hyprsunset -t 4000

Config

A default config will be generated on the first run. sunsetr.toml can be found in ~/.config/hypr/sunsetr.toml

# Sunsetr configuration
sunset = "19:00:00"   # Time to transition to night mode (HH:MM:SS)
sunrise = "06:00:00"  # Time to transition to day mode (HH:MM:SS)
temp = 4000           # Color temperature after sunset (1000-6500) Kelvin

Installation

Arch Linux

AUR installation coming soon.

Build from source:

You will need to have Rust version 1.78.0 or greater installed. Clone the repo, cd into sunsetr, then:

cargo build --release

You can find the sunsetr binary in the ./target/release directory and move it to /usr/local/bin or where ever you place your custom binaries.

Dependencies

This controller has only been tested on these versions of Hyprland and hyprsunset:

  • Hyprland 0.47.2
  • hyprsunset v0.1.0

TODO

  • Set up AUR package
  • Implement gradual transitions
  • Make Nix installation available

Thanks

Thanks to Vaxry and the Hyprwm team for making the best Wayland experience possible for the rest of us.

About

Automatic color temperature controller for hyprsunset

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages