Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amadejkastelic/Hyprlux
Hyprland utility that automates vibrance and night light control
https://github.com/amadejkastelic/Hyprlux
hyprland nix rust
Last synced: 10 days ago
JSON representation
Hyprland utility that automates vibrance and night light control
- Host: GitHub
- URL: https://github.com/amadejkastelic/Hyprlux
- Owner: amadejkastelic
- License: mit
- Created: 2024-09-07T18:26:24.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-02T21:20:30.000Z (10 days ago)
- Last Synced: 2025-01-02T21:43:36.148Z (10 days ago)
- Topics: hyprland, nix, rust
- Language: Rust
- Homepage:
- Size: 75.2 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-hyprland - Hyprlux
README
# Hyprlux
A Hyprland utility program that automatically switches between shaders.
It currently supports two shaders with configurable strengths:
- Night light (blue light filter) - based on location or custom times
- Vibrance - toggles digital vibrance based on currently active window## Installation
Cargo
Click to expand
```bash
cargo install hyprlux
```
NixOS
Click to expand
Add hyprlux to your flake inputs:
```nix
inputs = {
hyprlux = {
url = "github:amadejkastelic/Hyprlux";
};
};
```
Then import either the home manager module or nixos module:
```nix
imports = [
inputs.hyprlux.nixosModules.default
];
```
```nix
imports = [
inputs.hyprlux.homeManagerModules.default
];
```
And configure it:
```nix
{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;
}
];
};
}
```
Arch
Click to expand
Install using your favorite AUR helper:
```bash
paru -S hyprlux
```## Configuration
Hyprlux looks for configs in the following locations (sorted by priority):
- Path passed as first argument when running the binary
- `$XDG_CONFIG_HOME/hypr/hyprlux.toml`
- `/etc/hyprlux/config.toml`Example configurations are available in [examples](examples/).
## Running
Either run it as a systemd service or include it in your hyprland exec-once config:
```hypr
exec-once=hyprlux > /tmp/hyprlux.log 2>&1
```## Building
Run `cargo build`