Skip to content
Snippets Groups Projects
  1. Nov 11, 2023
    • Gaël Bonithon's avatar
      brightness: Rework min level management · 3829c45a
      Gaël Bonithon authored
      It is now set in XfpmBrightness, so xfpm_brightness_decrease() and
      xfpm_brightness_increase() can work internally as they should. This
      significantly simplifies the plugin code.
      
      This also makes the behavior of brightness keys a little more
      consistent: if a custom minimum is set (this requires the systray icon
      or plugin to be used), it also affects brightness keys, otherwise the
      hardware minimum is used (#174).
      
      Finally, the default custom minimum is set a little more intelligently,
      depending on hardware delta and setting step.
      
      Fixes: #174
      Related: !21, !35
      3829c45a
    • Gaël Bonithon's avatar
      Refactor XfpmBrightness · 3bc29f25
      Gaël Bonithon authored
      * Make xfpm_brightness_new() a failable constructor, so don't expose
        xfpm_brightness_setup() and remove xfpm_brightness_has_hw().
      * Same for XfpmBacklight.
      * Remove dead code.
      3bc29f25
    • Gaël Bonithon's avatar
      Remove useless logs · da75535d
      Gaël Bonithon authored
      da75535d
  2. Nov 10, 2023
  3. Nov 09, 2023
Loading