]> git.friedersdorff.com Git - max/saltfiles.git/blob - states/sway/init.sls
Config touchpad
[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: salt://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: salt://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: salt://sway/files/conky-i3bar
37     - user: {{ grains['user'] }}
38     - group: {{ grains['user'] }}
39     - mode: 750
40
41 {% if grains['host'] in ['baryte', 'barium', 'rhenium'] %}
42 monitor switch script:
43   file.managed:
44     - name: {{ grains['homedir'] }}/.local/bin/monitor_switch_sway
45     - source: salt://sway/files/monitor_switch_sway
46     - user: {{ grains['user'] }}
47     - group: {{ grains['user'] }}
48     - mode: 750
49     - template: jinja
50 {% endif %}
51
52 mako config dir:
53   file.directory:
54     - name: {{ grains['homedir'] }}/.config/mako
55     - user: {{ grains['user'] }}
56     - group: {{ grains['user'] }}
57     - dir_mode: 750
58     - makedirs: True
59
60 mako config:
61   file.managed:
62     - name: {{ grains['homedir'] }}/.config/mako/config
63     - source: salt://sway/files/mako_config
64     - template: jinja
65     - user: {{ grains['user']}}
66     - group: {{ grains['user']}}
67     - mode: 640