From 02af95a6fe6bfb91316f4a87a8e9c75fbe2a7421 Mon Sep 17 00:00:00 2001 From: Bluemedia Date: Tue, 5 Aug 2025 21:29:16 +0200 Subject: [PATCH] Only install brightnessctl on mobile platform and include udev rules --- roles/desktop-environment/tasks/utils.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/roles/desktop-environment/tasks/utils.yml b/roles/desktop-environment/tasks/utils.yml index 0ecd84a..8ff3570 100644 --- a/roles/desktop-environment/tasks/utils.yml +++ b/roles/desktop-environment/tasks/utils.yml @@ -18,7 +18,6 @@ - wireplumber - qpwgraph - alsa-utils - - brightnessctl - gnome-keyring - adwaita-icon-theme - fonts-firacode @@ -31,6 +30,24 @@ - grim - swappy +- name: Install tools for mobile platform + become: yes + apt: + state: present + name: + - brightnessctl + when: hostvars[ansible_hostname]['mobile_platform'] + +- name: Install brightnessctl udev rules + become: yes + ansible.builtin.get_url: + url: https://github.com/Hummer12007/brightnessctl/raw/refs/heads/master/90-brightnessctl.rules + dest: /etc/udev/rules.d/90-brightnessctl.rules + owner: root + group: root + mode: u=rw,g=r,o=r + when: hostvars[ansible_hostname]['mobile_platform'] + - name: Install zsh become: yes apt: