]> git.friedersdorff.com Git - max/saltfiles.git/blob - states/sway/init.sls
Modify the logic of lock script
[max/saltfiles.git] / states / sway / init.sls
1 include:
2   - sway.{{ grains['os']| lower }}
3   - conky
4   - font.pango-liberation-mono
5   - local.bin
6
7 config dir:
8   file.directory:
9     - name: {{ grains['homedir'] }}/.config/sway
10     - user: {{ grains['user'] }}
11     - group: {{ grains['user'] }}
12     - dir_mode: 750
13     - makedirs: True
14
15 sway config:
16   file.managed:
17     - name: {{ grains['homedir'] }}/.config/sway/config
18     - source: {{ grains['stateroot'] }}/sway/files/config.jinja
19     - template: jinja
20     - user: {{ grains['user']}}
21     - group: {{ grains['user']}}
22     - mode: 640
23
24 lock script:
25   file.managed:
26     - name: {{ grains['homedir'] }}/.local/bin/lock.nosmartcard
27     - source: {{ grains['stateroot'] }}/sway/files/lock
28     - template: jinja
29     - user: {{ grains['user'] }}
30     - group: {{ grains['user'] }}
31     - mode: 750
32
33 conky launch script:
34   file.managed:
35     - name: {{ grains['homedir'] }}/.local/bin/conky-i3bar
36     - source: {{ grains['stateroot'] }}/sway/files/conky-i3bar
37     - user: {{ grains['user'] }}
38     - group: {{ grains['user'] }}
39     - mode: 750