mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
create slim role
This commit is contained in:
parent
841ba28471
commit
e16243e913
5 changed files with 4 additions and 12 deletions
|
|
@ -5,6 +5,7 @@
|
|||
- { role: base, tags: ['base'] }
|
||||
- { role: fonts, tags: ['fonts'] }
|
||||
- { role: x, tags: ['x'] }
|
||||
- { role: slim, tags: ['slim'] }
|
||||
- { role: i3, tags: ['i3'] }
|
||||
- { role: network, tags: ['network'] }
|
||||
- { role: networkmanager, tags: ['networkmanager'] }
|
||||
|
|
|
|||
3
roles/slim/meta/main.yml
Normal file
3
roles/slim/meta/main.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
dependencies:
|
||||
- { role: fonts }
|
||||
|
|
@ -1,34 +1,24 @@
|
|||
---
|
||||
- name: Install SLiM
|
||||
pacman: name=slim state=present
|
||||
tags:
|
||||
- slim
|
||||
|
||||
- name: Enable SLiM
|
||||
service: name=slim.service enabled=yes
|
||||
tags:
|
||||
- slim
|
||||
|
||||
- name: Set the SLiM login shell
|
||||
lineinfile: dest=/etc/slim.conf
|
||||
regexp=^login_cmd
|
||||
state=present
|
||||
line="login_cmd exec {{ user.shell }} --login ~/.xinitrc %session"
|
||||
tags:
|
||||
- slim
|
||||
|
||||
- name: Configure SLiM to properly log logins to utmp and wtmp
|
||||
lineinfile: dest=/etc/slim.conf
|
||||
regexp=^sessionstart_cmd
|
||||
state=present
|
||||
line="sessionstart_cmd /usr/bin/sessreg -a -l tty$(fgconsole) %user"
|
||||
tags:
|
||||
- slim
|
||||
|
||||
- name: Configure SLiM to properly log logouts to utmp and wtmp
|
||||
lineinfile: dest=/etc/slim.conf
|
||||
regexp=^sessionstop_cmd
|
||||
state=present
|
||||
line="sessionstop_cmd /usr/bin/sessreg -d -l tty$(fgconsole) %user"
|
||||
tags:
|
||||
- slim
|
||||
|
|
@ -1,4 +1,3 @@
|
|||
---
|
||||
dependencies:
|
||||
- { role: base }
|
||||
- { role: fonts }
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@
|
|||
- name: Add user to video group
|
||||
user: name={{ user.name }} groups=video append=yes
|
||||
|
||||
- include: slim.yml
|
||||
- include: sxhkd.yml
|
||||
- include: unclutter.yml
|
||||
- include: volwheel.yml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue