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/ddcutil/handlers | |
| 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/ddcutil/handlers')
| -rw-r--r-- | roles/ddcutil/handlers/main.yml | 12 |
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 |
