Skip to content

Commit

Permalink
Merge pull request #5 from roles-ansible/light
Browse files Browse the repository at this point in the history
Create permissions for light
  • Loading branch information
DO1JLR authored Sep 2, 2024
2 parents 0b2f336 + 3b19dd4 commit 8a1fe12
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ sway__install_launcher: ['fuzzel']
sway__waybar_font_size: '13px'
sway__waybar_light_up: 'light -A 1'
sway__waybar_light_down: 'light -U 1'
sway__waybar_light_suid: true
sway__wlsunset: true
sway__wlsunset_params: '-l 49 -L 8.4'

Expand Down
10 changes: 10 additions & 0 deletions tasks/waybar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- 'wlogout'
- 'qpwgraph'
- 'pavucontrol'
- 'light'

- name: Create waybar config folder
become: true
Expand Down Expand Up @@ -58,3 +59,12 @@
owner: "{{ swayusr.user }}"
group: "{{ swayusr.user }}"
backup: true

- name: Ensure the SUID bit is set on /usr/bin/light
become: true
ansible.builtin.file:
path: '/usr/bin/light'
mode: '4755'
owner: 'root'
group: 'root'
when: sway__waybar_light_suid | bool
1 change: 1 addition & 0 deletions vars/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ __i3_packages:
- imagemagick
- fonts-fork-awesome
- pulsemixer
- light
2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
playbook_version_number: 12 # should be int
playbook_version_number: 13 # should be int
playbook_version_path: 'role-roles-ansible.sway.version'

0 comments on commit 8a1fe12

Please sign in to comment.