updated kitty state

This commit is contained in:
Paul 2023-04-28 18:11:38 +02:00
parent f9b74b5f4c
commit 9ea9bc4983
4 changed files with 7 additions and 19 deletions

View File

@ -1,24 +1,12 @@
--- ---
{%- from "kitty/map.jinja" import users with context %} {%- from "kitty/map.jinja" import kitty with context %}
{%- for name, user in users.items() %} kitty-config:
{%- if user.enabled %}
kitty-config-dir-{{ name }}:
file.directory:
- name: {{ user.home }}/.config/kitty
- user: {{ name }}
- group: {{ user.gid }}
- mode: 0755
kitty-user-{{ name }}:
file.managed: file.managed:
- name: {{ user.home }}/.config/kitty/kitty.conf - name: {{ kitty.config_file }}
- source: salt://kitty/templates/kitty.conf.j2 - source: salt://kitty/templates/kitty.conf.j2
- user: {{ name }} - user: root
- group: {{ user.gid }} - group: root
- mode: 0644 - mode: 0644
- template: jinja - template: jinja
- require: - require:
- pkg: kitty-pkg - pkg: kitty-pkg
- file: kitty-config-dir-{{ name }}
{%- endif %}
{%- endfor %}

View File

@ -1,7 +1,9 @@
--- ---
kitty: kitty:
config_file: /etc/xdg/kitty/kitty.conf
config: config:
term: "xterm-256color" term: "xterm-256color"
foreground: "#55ee55" foreground: "#55ee55"
detect_urls: "no" detect_urls: "no"
mouse_map: "left click ungrabbed no_op" mouse_map: "left click ungrabbed no_op"
map ctrl+shift+w: "no_op"

View File

@ -1,5 +1,4 @@
--- ---
include: include:
- users
- .install - .install
- .config - .config

View File

@ -1,4 +1,3 @@
{%- import_yaml "kitty/defaults.yaml" as defaults -%} {%- import_yaml "kitty/defaults.yaml" as defaults -%}
{%- set kitty = salt['pillar.get']('kitty', default=defaults.kitty, merge=True) -%} {%- set kitty = salt['pillar.get']('kitty', default=defaults.kitty, merge=True) -%}
{%- set users = salt['pillar.get']('users') -%}