diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-09 19:00:45 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-09 19:03:37 +0100 |
| commit | 89773438b6583dd1dcaf33ad6d581eee697246f2 (patch) | |
| tree | 7cfdc647507af97bcb29f6907c87eaadba476882 /roles/hyprland/tasks | |
| parent | dc8f42e5666e9d498bd19b323f5e1c3b9440ba3f (diff) | |
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/<id> which can't be
figured automatically or correlated with hyprctl monitors command
Diffstat (limited to 'roles/hyprland/tasks')
| -rw-r--r-- | roles/hyprland/tasks/main.yml | 11 |
1 files changed, 11 insertions, 0 deletions
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" |
