{ inputs, ... }: {
  flake.modules.homeManager.backlight = { pkgs, ... }:
    let
      brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
    in
    {
      wayland.windowManager.hyprland.extraConfig = ''
        hl.bind("XF86MonBrightnessUp",  hl.dsp.exec_cmd("${brightnessctl} -e4 -n2 set 5%+"),                  { locked = true, repeating = true })
        hl.bind("XF86MonBrightnessDown",hl.dsp.exec_cmd("${brightnessctl} -e4 -n2 set 5%-"),                  { locked = true, repeating = true })
      '';
    };
}
