diff --git a/.chezmoitemplates/bar-secondary b/.chezmoitemplates/bar-secondary new file mode 100644 index 0000000..3749a5f --- /dev/null +++ b/.chezmoitemplates/bar-secondary @@ -0,0 +1,19 @@ +{ + "output": "DP-2", + "layer": "top", + "position": "top", + "height": 44, + "modules-left": ["clock"], + "modules-right": ["tray"], + "modules-center": ["sway/workspaces"], + "tray": { + "icon-size": 21, + "spacing": 10 + }, +{{ template "workspaces" (dict "out" "DP-2" "ws" (list "5" "6" "7" "8")) }} + "clock": { + "timezone": "America/Montreal", + "tooltip-format": "{:%Y %B}\n{calendar}", + "format": "🕐 {:%H:%M 📅 %d/%m/%y}" + } +} diff --git a/dot_config/waybar/config.jsonc.tmpl b/dot_config/waybar/config.jsonc.tmpl index eb94077..b1ba4f5 100644 --- a/dot_config/waybar/config.jsonc.tmpl +++ b/dot_config/waybar/config.jsonc.tmpl @@ -1,8 +1,11 @@ {{- if eq .chezmoi.hostname "framework13pro" -}} -[{{ template "bar-primary" (dict "out" "eDP-1" "ws" (list "1" "2" "3" "4")) }}] +[{{ template "bar-primary" (dict "out" "eDP-1" "ws" (list "1" "2" "3" "4")) }}, +{{ template "bar-secondary" . }}] {{- else if eq .chezmoi.hostname "flow" -}} -[{{ template "bar-primary" (dict "out" "DP-1" "ws" (list "1" "2" "3" "4")) }}] +[{{ template "bar-primary" (dict "out" "DP-1" "ws" (list "1" "2" "3" "4")) }}, +{{ template "bar-secondary" . }}] {{- else if eq .chezmoi.hostname "gata" -}} // TODO: confirm gata's primary output (run: swaymsg -t get_outputs) -[{{ template "bar-primary" (dict "out" "DP-1" "ws" (list "1" "2" "3" "4")) }}] +[{{ template "bar-primary" (dict "out" "DP-1" "ws" (list "1" "2" "3" "4")) }}, +{{ template "bar-secondary" . }}] {{- end }}