Fix template folding

This commit is contained in:
2019-04-26 00:48:31 -04:00
parent ab6887fe03
commit 762994e648
12 changed files with 1107 additions and 910 deletions

View File

@@ -1,4 +1,6 @@
# Global properties {{{ #
# vim: fdm=marker ft=conf.go-template
# Global properties [[[ #
# The top properties below are applied to every block, but can be overridden.
# Each block command defaults to the script name to avoid boilerplate.
align=center
@@ -7,7 +9,9 @@ separator=true
separator_block_width=25
markup=pango
color=#cbe4ff
# }}} Global properties #
# ]]] Global properties #
# volume/spotify [[[ #
[spotify]
# command=python ~/linux-config/configs/i3blocks-scripts/spotify.py
@@ -25,12 +29,31 @@ interval=once
signal=1
interval=60
# ]]] volume/spotify #
# time [[[ #
[calendar]
interval=30
label=
{{ if eq .chezmoi.fullHostname "nzxt" }}
DATEFMT=+%H:%M.%a-%m-%d
{{ else }}
DATEFMT=+%H:%M
{{ end }}
# SHORTFMT=+%H:%M:%S
SHORTFMT=+%H:%M.%a-%m-%d
# SHORTFMT=+%H:%M.%a-%m-%d
HEIGHT=180
WIDTH=220
# ]]] time #
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
[temperature]
label=
interval=5
[name]
label=
interval=30
{{ end }}

View File

@@ -1,3 +1,7 @@
# vim: fdm=marker ft=conf.go-template
# global [[[ #
# The top properties below are applied to every block, but can be overridden.
# Each block command defaults to the script name to avoid boilerplate.
align=center
@@ -7,6 +11,10 @@ separator_block_width=25
markup=pango
color=#cbe4ff
# ]]] global #
# volume/spotify [[[ #
{{ if eq .chezmoi.fullHostname "nzxt" }}
[volume]
interval=once
@@ -20,6 +28,10 @@ SHORT_NAME=
interval=5
{{ end }}
# ]]] volume/spotify #
# laptop [[[ #
{{ if eq .chezmoi.fullHostname "x1-carbon" }}
[battery]
label=⚡
@@ -35,6 +47,10 @@ label=
interval=5
{{ end }}
# ]]] laptop #
# time [[[ #
[calendar]
interval=30
label=
@@ -47,6 +63,10 @@ DATEFMT=+%H:%M.%a-%m-%d
HEIGHT=180
WIDTH=220
# ]]] time #
# sys.monitoring [[[ #
{{ if eq .chezmoi.fullHostname "nzxt" }}
[temperature]
label=
@@ -69,12 +89,18 @@ label=
# color=#3da061
interval=5
# ]]] sys.monitoring #
# name [[[ #
[name]
label=
interval=30
{{ end }}
# unused blocks #
# ]]] name #
# unused blocks [[[ #
# [memory]
# label=SWAP
@@ -154,9 +180,11 @@ interval=30
#instance=NUM
#interval=once
#signal=11
# unused blocks #
# list of properties #
# ]]] unused blocks #
# properties [[[ #
# i3blocks config file
#
# Please see man i3blocks for a complete reference!
@@ -178,5 +206,5 @@ interval=30
# short_text
# signal
# urgent
# properties #
# ]]] properties #