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

View File

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

View File

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

View File

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