]> git.friedersdorff.com Git - max/saltfiles.git/blob - states/qutebrowser/init.sls
Do not install zsh-completion on ubuntu
[max/saltfiles.git] / states / qutebrowser / init.sls
1 include:
2   - qutebrowser.{{ grains['os'] | lower}}
3   - local.bin
4
5 qute config dir:
6   file.directory:
7     - name: {{ grains['homedir'] }}/.config/qutebrowser
8     - user: {{ grains['user'] }}
9     - group: {{ grains['user'] }}
10     - mode: 750
11     - makedirs: True
12
13 userscripts dir:
14   file.directory:
15     - name: {{ grains['homedir'] }}/.local/share/qutebrowser/userscripts
16     - user: {{ grains['user'] }}
17     - group: {{ grains['user'] }}
18     - mode: 750
19     - makedirs: True
20     - require:
21       - pkg: install qutebrowser
22
23 symlink qute-pass:
24   file.symlink:
25     - name: {{ grains['homedir'] }}/.local/share/qutebrowser/userscripts/qute-pass
26     - target: /usr/share/qutebrowser/userscripts/qute-pass
27     - user: {{ grains['user'] }}
28     - group: {{ grains['user'] }}
29     - mode: 750
30     - require:
31       - file: userscripts dir
32
33 noscript_enable file:
34   file.managed:
35     - name: {{ grains['homedir'] }}/.local/share/qutebrowser/userscripts/noscript_enable
36     - source: salt://qutebrowser/files/noscript_enable
37     - user: {{ grains['user'] }}
38     - groups: {{ grains['user'] }}
39     - mode: 750
40     - require:
41       - file: userscripts dir
42
43 noscript_disable file:
44   file.managed:
45     - name: {{ grains['homedir'] }}/.local/share/qutebrowser/userscripts/noscript_disable
46     - source: salt://qutebrowser/files/noscript_disable
47     - user: {{ grains['user'] }}
48     - groups: {{ grains['user'] }}
49     - mode: 750
50     - require:
51       - file: userscripts dir
52
53 qutebrowser wrapper:
54   file.managed:
55     - name: {{ grains['homedir'] }}/.local/bin/qutebrowser
56     - contents:
57       - '#!/bin/sh'
58       - /usr/bin/qutebrowser --qt-flag disable-reading-from-canvas $@
59     - user: {{ grains['user'] }}
60     - group: {{ grains['user'] }}
61     - mode: 750
62
63 qutebrowser config:
64   file.managed:
65     - name: {{ grains['homedir'] }}/.config/qutebrowser/config.py
66     - source: salt://qutebrowser/files/config.py
67     - user: {{ grains['user'] }}
68     - group: {{ grains['user'] }}
69     - mode: 640
70     - require:
71       - file: qute config dir