Ignore not set swayProfile variable

This commit is contained in:
2026-01-26 15:20:27 +01:00
parent 50e1922fed
commit 7523ab9b67
2 changed files with 6 additions and 2 deletions

View File

@@ -36,7 +36,9 @@ output * bg ~/.config/sway/od_arch.png fill
output * bg ~/.config/sway/od_freebsd.png fill
{{ end }}
include ~/.config/sway/outputs.d/{{ .swayProfile }}.conf
{{- with .swayProfile }}
include ~/.config/sway/outputs.d/{{ . }}.conf
{{- end }}
#
# You can get the names of your outputs by running: swaymsg -t get_outputs

View File

@@ -9,7 +9,9 @@
{
"include": ["~/.config/waybar/media.json"],
"layer": "top",
{{ include (printf "dot_config/waybar/outputs.d/%s.conf" .swayProfile) }}
{{- with .swayProfile }}
{{ include (printf "dot_config/waybar/outputs.d/%s.conf" .) }}
{{- end }}
"gtk-layer-shell": "true",
"spacing": 0,
"margin-top": 0,