Skip to content

v0.11.1

Latest

Choose a tag to compare

@psi4j psi4j released this 06 Nov 18:34
· 85 commits to main since this release

This update fixes an issue where the gamma table sizes for multiple monitors could be different when using the Wayland backend, causing niri (and potentially other compositors) to reject the gamma control/updates for some of the monitors, if not all of them.

This update also adds a new target_period field to the IPC for better control over the timing of the Period update when switching presets. This gives immediate feedback for the new Period where otherwise you would have to wait for the period_changed event after the smooth transition completes when smoothing is enabled. You can use the IPC directly or via proxy through the status command (sunsetr status --json --follow).

Usage e.g.:

// ~/.config/waybar/config
{
  "custom/sunsetr": {
    "exec": "sunsetr status --json --follow | jq --unbuffered --compact-output 'if .event_type == \"preset_changed\" then {text: \"\\(.target_temp)K\", alt: .target_period, tooltip: \"Preset: \\(.to_preset // \"default\")\\nTarget: \\(.target_temp)K @ \\(.target_gamma)%\"} elif .event_type == \"state_applied\" then {text: \"\\(.current_temp)K\", alt: .period, tooltip: \"Period: \\(.period)\\nTemp: \\(.current_temp)K @ \\(.current_gamma)%\"} else empty end'",
    "return-type": "json",
    "format": "{icon} {text}",
    "format-icons": {
      "day": "󰖨",
      "night": "",
      "sunset": "󰖛",
      "sunrise": "󰖜",
      "static": "󰋙"
    },
    "on-click": "sunsetr preset day"
  }
}