diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-01-22 21:07:05 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-01-22 21:07:05 +0100 |
| commit | 34c927e98a33ac2c074450fd1688bae1609fde42 (patch) | |
| tree | bd3c7ccf9fc46ccd00467a34c678e71399871b13 /roles | |
| parent | a6225807bbac6bb576eb582eddc8725f1ace24e5 (diff) | |
Use aur/yay helper to install wlctl
Diffstat (limited to 'roles')
| -rw-r--r-- | roles/waybar/templates/waybar/config.jsonc.j2 | 2 | ||||
| -rw-r--r-- | roles/wlctl/meta/main.yml | 3 | ||||
| -rw-r--r-- | roles/wlctl/tasks/main.yml | 7 |
3 files changed, 6 insertions, 6 deletions
diff --git a/roles/waybar/templates/waybar/config.jsonc.j2 b/roles/waybar/templates/waybar/config.jsonc.j2 index 0e78caef..f02e0a50 100644 --- a/roles/waybar/templates/waybar/config.jsonc.j2 +++ b/roles/waybar/templates/waybar/config.jsonc.j2 @@ -55,7 +55,7 @@ "interval": 5, "spacing": 1, "on-click": "/etc/xdg/waybar/scripts/toggle-wifi", - "on-click-right": "/etc/xdg/waybar/scripts/launch-tui ~/.cargo/bin/wlctl" + "on-click-right": "/etc/xdg/waybar/scripts/launch-tui wlctl" }, "bluetooth": { "format-on": "", diff --git a/roles/wlctl/meta/main.yml b/roles/wlctl/meta/main.yml index 814bd22e..d02a6032 100644 --- a/roles/wlctl/meta/main.yml +++ b/roles/wlctl/meta/main.yml @@ -1,7 +1,6 @@ --- dependencies: - - role: "gcc" - - role: "rust" + - role: "yay" galaxy_info: author: "a14m" description: "Install wlctl" diff --git a/roles/wlctl/tasks/main.yml b/roles/wlctl/tasks/main.yml index da22bb07..e7eff1b8 100644 --- a/roles/wlctl/tasks/main.yml +++ b/roles/wlctl/tasks/main.yml @@ -1,7 +1,8 @@ --- - name: "Ensure wlctl is installed" - community.general.cargo: + become: true + become_user: "aur_builder" + kewlfft.aur.aur: name: "wlctl" state: "present" - environment: - PATH: "{{ ansible_env.HOME }}/.cargo/bin:{{ ansible_env.PATH }}" + use: "yay" |
