| Crates.io | hyprlux |
| lib.rs | hyprlux |
| version | 0.1.6 |
| created_at | 2024-10-30 20:26:00.13272+00 |
| updated_at | 2025-07-16 09:57:45.599219+00 |
| description | Hyprland utility that automates vibrance and night light control |
| homepage | |
| repository | https://github.com/amadejkastelic/Hyprlux |
| max_upload_size | |
| id | 1429155 |
| size | 80,321 |
A Hyprland utility program that automatically switches between shaders.
It currently supports two shaders with configurable strengths:
cargo install hyprlux
Add hyprlux to your flake inputs:
inputs = {
hyprlux = {
url = "github:amadejkastelic/Hyprlux";
};
};
Then import either the home manager module or nixos module:
imports = [
inputs.hyprlux.nixosModules.default
];
imports = [
inputs.hyprlux.homeManagerModules.default
];
And configure it:
{inputs, ...}: {
programs.hyprlux = {
enable = true;
systemd = {
enable = true;
target = "hyprland-session.target";
};
night_light = {
enabled = true;
# Manual sunset and sunrise
start_time = "22:00";
end_time = "06:00";
# Automatic sunset and sunrise
latitude = 46.056946;
longitude = 14.505751;
temperature = 3500;
};
vibrance_configs = [
{
window_class = "steam_app_1172470";
window_title = "Apex Legends";
strength = 100;
}
{
window_class = "cs2";
window_title = "";
strength = 100;
}
];
};
}
Install using your favorite AUR helper:
paru -S hyprlux
Hyprlux looks for configs in the following locations (sorted by priority):
$XDG_CONFIG_HOME/hypr/hyprlux.toml/etc/hyprlux/config.tomlExample configurations are available in examples.
Either run it as a systemd service or include it in your hyprland exec-once config:
exec-once=hyprlux > /tmp/hyprlux.log 2>&1
Run cargo build