support setting terminal via variable

This commit is contained in:
Pig Monkey 2025-04-11 15:34:00 -07:00
parent 21d0588aab
commit 9ce5f50780
4 changed files with 8 additions and 6 deletions

View file

@ -347,3 +347,5 @@ illuminanced:
backlight_file: /sys/class/backlight/amdgpu_bl1/brightness
illuminance_file: /sys/bus/iio/devices/iio:device0/in_illuminance_raw
min_backlight: 60
terminal: alacritty

View file

@ -15,7 +15,7 @@
- { role: interception, tags: ['interception'], when: "interception is defined" }
- { role: fonts, tags: ['fonts'] }
- { role: x, tags: ['x'] }
- { role: alacritty, tags: ['alacritty'] }
- { role: terminal, tags: ['terminal'], when: "terminal is defined" }
- { role: lightdm, tags: ['lightdm'], when: "display_manager == 'lightdm'" }
- { role: gdm, tags: ['gdm'], when: "display_manager == 'gdm'" }
- { role: i3, tags: ['i3'], when: "desktop_environment == 'i3'" }

View file

@ -1,5 +0,0 @@
---
- name: Install alacritty
pacman:
name: alacritty
state: present

View file

@ -0,0 +1,5 @@
---
- name: Install {{ terminal }}
pacman:
name: "{{ terminal }}"
state: present