From 89773438b6583dd1dcaf33ad6d581eee697246f2 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Mon, 9 Feb 2026 19:00:45 +0100 Subject: Add brightness control using ddcutil to hyprland The ddcutil is really slow by design and needing to wait the recommended 40-200ms after each request to get the response according to the ddc protocol specifications. For now this is a working draft, might switch to ddccontrol which is much faster but limited to communicate over /dev/ which can't be figured automatically or correlated with hyprctl monitors command --- roles/hyprland/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'roles/hyprland/tasks') diff --git a/roles/hyprland/tasks/main.yml b/roles/hyprland/tasks/main.yml index 5255a318..fc8c0f29 100644 --- a/roles/hyprland/tasks/main.yml +++ b/roles/hyprland/tasks/main.yml @@ -36,6 +36,7 @@ mode: "0755" loop: - "/etc/hypr" + - "/etc/hypr/scripts" - "{{ ansible_facts['env']['HOME'] }}/.config/hypr" - name: "Configure system defaults" @@ -89,3 +90,13 @@ block: | # System defaults source = /etc/hypr/hypridle.conf + +- name: "Copy hyprland scripts" + become: true + ansible.builtin.copy: + src: "{{ item.src }}" + dest: "{{ item.dest }}" + mode: "0755" + loop: + - src: "scripts/brightness.sh" + dest: "/etc/hypr/scripts/brightness.sh" -- cgit v1.2.3