feat(arch): add pacman hook to notify waybar of update

This commit is contained in:
Price Hiller 2023-08-21 22:02:56 -05:00
parent 62292b77dc
commit 1dd0dbd855
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,10 @@
# vim: filetype=systemd
[Trigger]
Operation = Upgrade
Type = Package
Target = *
[Action]
Description = Inform waybar about pacman upgrade finishing
When = PostTransaction
Exec = /usr/bin/pkill -SIGRTMIN+8 waybar

View File

@ -194,3 +194,4 @@
- disable-gpu.yml
- dns.yml
- powertop.yml
- pacman-hooks.yml

View File

@ -0,0 +1,18 @@
---
- name: Ensure /etc/pacman.d/hooks/ directory exists
become: true
ansible.builtin.file:
path: /etc/pacman.d/hooks
state: directory
mode: '0755'
owner: root
group: root
- name: Install Pacman Hooks
become: true
ansible.builtin.copy:
src: pacman-hooks/
dest: /etc/pacman.d/hooks/
mode: '0644'
owner: root
group: root