diff --git a/test-configs/orientation.corn b/test-configs/orientation.corn new file mode 100644 index 0000000..c01d0d2 --- /dev/null +++ b/test-configs/orientation.corn @@ -0,0 +1,192 @@ + +{ + position = "bottom" + start = [ + { + type = "clock" + format = "%H:%M" + } + { + type = "clock" + format = "%H:%M" + orientation = "horizontal" + } + { + type = "clock" + format = "%H:%M" + orientation = "h" + } + { + type = "clock" + format = "%H:%M" + orientation = "vertical" + } + { + type = "clock" + format = "%H:%M" + orientation = "v" + } + { + type = "custom" + bar = [ + { + type = "label" + label = "label" + } + { + type = "label" + label = "label" + orientation = "horizontal" + } + { + type = "label" + label = "label" + orientation = "h" + } + { + type = "label" + label = "label" + orientation = "vertical" + } + { + type = "label" + label = "label" + orientation = "v" + } + ] + } + { + type = "custom" + bar = [ + { + type = "button" + label = "label" + } + { + type = "button" + label = "label" + orientation = "horizontal" + } + { + type = "button" + label = "label" + orientation = "h" + } + { + type = "button" + label = "label" + orientation = "vertical" + } + { + type = "button" + label = "label" + orientation = "v" + } + ] + } + { + type = "custom" + bar = [ + { + type = "progress" + value = "echo 50" + } + { + type = "progress" + value = "echo 50" + orientation = "horizontal" + } + { + type = "progress" + value = "echo 50" + orientation = "h" + } + { + type = "progress" + value = "echo 50" + orientation = "vertical" + } + { + type = "progress" + value = "echo 50" + orientation = "v" + } + ] + } + { + type = "custom" + bar = [ + { + type = "slider" + value = "echo 50" + length = 100 + } + { + type = "slider" + value = "echo 50" + length = 100 + orientation = "horizontal" + } + { + type = "slider" + value = "echo 50" + length = 100 + orientation = "h" + } + { + type = "slider" + value = "echo 50" + length = 100 + orientation = "vertical" + } + { + type = "slider" + value = "echo 50" + length = 100 + orientation = "v" + } + ] + } + { + type = "sys_info" + interval.memory = 30 + interval.cpu = 1 + interval.temps = 5 + interval.disks = 300 + interval.networks = 3 + format = [ + " {cpu_percent}%" + " {memory_used} / {memory_total} GB ({memory_percent}%)" + "󰥔 {uptime}" + ] + } + { + type = "sys_info" + orientation = "vertical" + interval.memory = 30 + interval.cpu = 1 + interval.temps = 5 + interval.disks = 300 + interval.networks = 3 + format = [ + " {cpu_percent}%" + " {memory_used} / {memory_total} GB ({memory_percent}%)" + "󰥔 {uptime}" + ] + } + { + type = "sys_info" + layout = "vertical" + interval.memory = 30 + interval.cpu = 1 + interval.temps = 5 + interval.disks = 300 + interval.networks = 3 + format = [ + " {cpu_percent}%" + " {memory_used} / {memory_total} GB ({memory_percent}%)" + "󰥔 {uptime}" + ] + } + ] +} \ No newline at end of file diff --git a/test-configs/orientation.yaml b/test-configs/orientation.yaml deleted file mode 100644 index 8aefd7a..0000000 --- a/test-configs/orientation.yaml +++ /dev/null @@ -1,117 +0,0 @@ -position: "bottom" -start: - - type: clock - format: "%H:%M" - - type: clock - format: "%H:%M" - orientation: horizontal - - type: clock - format: "%H:%M" - orientation: h - - type: clock - format: "%H:%M" - orientation: vertical - - type: clock - format: "%H:%M" - orientation: v - - type: custom - bar: - - type: label - label: "label" - - type: label - label: "label" - orientation: horizontal - - type: label - label: "label" - orientation: h - - type: label - label: "label" - orientation: vertical - - type: label - label: "label" - orientation: v - - type: custom - bar: - - type: button - label: "label" - - type: button - label: "label" - orientation: horizontal - - type: button - label: "label" - orientation: h - - type: button - label: "label" - orientation: vertical - - type: button - label: "label" - orientation: v - - type: custom - bar: - - type: progress - value: "echo 50" - - type: progress - value: "echo 50" - orientation: horizontal - - type: progress - value: "echo 50" - orientation: h - - type: progress - value: "echo 50" - orientation: vertical - - type: progress - value: "echo 50" - orientation: v - - type: custom - bar: - - type: slider - value: "echo 50" - - type: slider - value: "echo 50" - orientation: horizontal - - type: slider - value: "echo 50" - orientation: h - - type: slider - value: "echo 50" - length: 100 - orientation: vertical - - type: slider - value: "echo 50" - length: 100 - orientation: v - - type: sys_info - format: - - ' {cpu_percent}%' - - ' {memory_used} / {memory_total} GB ({memory_percent}%)' - - '󰥔 {uptime}' - interval: - cpu: 1 - disks: 300 - memory: 30 - networks: 3 - temps: 5 - - type: sys_info - orientation: vertical - format: - - ' {cpu_percent}%' - - ' {memory_used} / {memory_total} GB ({memory_percent}%)' - - '󰥔 {uptime}' - interval: - cpu: 1 - disks: 300 - memory: 30 - networks: 3 - temps: 5 - - type: sys_info - layout: vertical - format: - - ' {cpu_percent}%' - - ' {memory_used} / {memory_total} GB ({memory_percent}%)' - - '󰥔 {uptime}' - interval: - cpu: 1 - disks: 300 - memory: 30 - networks: 3 - temps: 5 \ No newline at end of file