Skip to content

Commit

Permalink
hyprsunset: Add IPC support (#976)
Browse files Browse the repository at this point in the history
* Hypr Ecosystem/hyprsunset: Add IPC support

* Add gamma color accuracy warning
  • Loading branch information
aaronjamt authored Feb 14, 2025
1 parent 7dc705a commit be1affa
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions pages/Hypr Ecosystem/hyprsunset.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ for your system.

This method is preferred to screen shaders as it will _not_ be captured via recording / screenshots.

hyprsunset also provides a gamma filter, which can be used to
adjust percieved display brightness on monitors that do not
support software control, or to reduce percieved brightness
below the monitor's minimum.

{{< callout type=warning >}}

`hyprsunset` is supported since Hyprland 0.45.0.
Expand All @@ -21,3 +26,37 @@ This method is preferred to screen shaders as it will _not_ be captured via reco
## Usage

See `hyprsunset --help`.

## IPC

`hyprsunset` supports IPC via hyprctl. Both color temperature and the gamma filter are adjustable:
```sh
# Enable blue-light filter
hyprctl hyprsunset temperature 2500
# Disable blue-light filter
hyprctl hyprsunset identity

# Set gamma to 50%
hyprctl hyprsunset gamma 50
# Increase gamma by 10%
hyprctl hyprsunset gamma +10
```

{{< callout type=warning >}}

`hyprsunset` is supported since Hyprland 0.45.0.

{{< /callout >}}

This can be used by other software to change the temperature throughout the day, or to adjust perceieved
monitor brightness, such as with the following Hyprland keybinds:
```ini
bindel = ,XF86MonBrightnessDown, exec, hyprctl hyprsunset gamma -10
bindel = ,XF86MonBrightnessUp, exec, hyprctl hyprsunset gamma +10
```

{{< callout type=warning >}}

Using the gamma control will degrade color accuracy. If your monitor does support software control, it is highly recommended to use that instead.

{{< /callout >}}

0 comments on commit be1affa

Please sign in to comment.