summaryrefslogtreecommitdiffstats
path: root/roles/ddcutil/handlers
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/ddcutil/handlers
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/ddcutil/handlers')
-rw-r--r--roles/ddcutil/handlers/main.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/ddcutil/handlers/main.yml b/roles/ddcutil/handlers/main.yml
new file mode 100644
index 00000000..85720137
--- /dev/null
+++ b/roles/ddcutil/handlers/main.yml
@@ -0,0 +1,12 @@
+---
+- name: "Reload rules"
+ become: true
+ ansible.builtin.command:
+ cmd: "udevadm control --reload-rules"
+ changed_when: true
+
+- name: "Trigger rules"
+ become: true
+ ansible.builtin.command:
+ cmd: "udevadm trigger"
+ changed_when: true