summaryrefslogtreecommitdiffstats
path: root/roles/hyprland/tasks
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-02-09 19:00:45 +0100
committerAhmed Abdelhalim <[email protected]>2026-02-09 19:03:37 +0100
commit89773438b6583dd1dcaf33ad6d581eee697246f2 (patch)
tree7cfdc647507af97bcb29f6907c87eaadba476882 /roles/hyprland/tasks
parentdc8f42e5666e9d498bd19b323f5e1c3b9440ba3f (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.yml11
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"