From cc380a1eeb2fd611cfb96574b44dd00e2e168b92 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Tue, 4 Oct 2022 10:25:17 +0100 Subject: [PATCH] Configure some moar --- states/sway/files/baryte | 2 +- states/sway/files/mako_config | 4 ++++ states/sway/init.sls | 17 +++++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 states/sway/files/mako_config diff --git a/states/sway/files/baryte b/states/sway/files/baryte index e2f7bc0..6503657 100644 --- a/states/sway/files/baryte +++ b/states/sway/files/baryte @@ -66,7 +66,7 @@ output DP-3 { output HDMI-A-1 { background ~/Pictures/Backgrounds/DSC02121.jpg fill position 2560 0 - scale 1.5 + scale 1 } diff --git a/states/sway/files/mako_config b/states/sway/files/mako_config new file mode 100644 index 0000000..367e779 --- /dev/null +++ b/states/sway/files/mako_config @@ -0,0 +1,4 @@ +height=300 +sort=+time +font=monospace 12 +default-timeout=15000 diff --git a/states/sway/init.sls b/states/sway/init.sls index 8d5c3e5..a0dc71b 100644 --- a/states/sway/init.sls +++ b/states/sway/init.sls @@ -48,3 +48,20 @@ monitor switch script: - mode: 750 - template: jinja {% endif %} + +mako config dir: + file.directory: + - name: {{ grains['homedir'] }}/.config/mako + - user: {{ grains['user'] }} + - group: {{ grains['user'] }} + - dir_mode: 750 + - makedirs: True + +mako config: + file.managed: + - name: {{ grains['homedir'] }}/.config/mako/config + - source: salt://sway/files/mako_config + - template: jinja + - user: {{ grains['user']}} + - group: {{ grains['user']}} + - mode: 640 -- 2.47.1