Ignore not set swayProfile variable
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user