From 11e95d89c48d1de17b85b9cc2cff10fd099a446d Mon Sep 17 00:00:00 2001 From: Devan Looches Date: Thu, 3 Nov 2022 21:02:52 -0700 Subject: [PATCH] ci(workflow): Add seperate config file for workflow --- .github/workflows/rust.yml | 2 +- workflow_config.toml | 84 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 workflow_config.toml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e30abaf..036563f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -31,4 +31,4 @@ jobs: - name: Build run: cargo build - name: Run - run: ./target/debug/rocketfetch --no-line-wrap + run: ./target/debug/rocketfetch -c workflow_config.toml diff --git a/workflow_config.toml b/workflow_config.toml new file mode 100644 index 0000000..5ad4585 --- /dev/null +++ b/workflow_config.toml @@ -0,0 +1,84 @@ +module-order = "user delimiter os host kernel uptime packages shell resolution desktop-environment window-manager cpu" +offset = 4 +logo-cmd = "auto" +wrap-lines = false + +[format] +mode = "classic" +top-left-corner-char = "╭" +top-right-corner-char = "╮" +bottom-left-corner-char = "╰" +bottom-right-corner-char = "╯" +horizontal-char = "─" +vertical-char = "│" +padding-left = 1 +padding-right = 1 +padding-top = 0 + +[user] +pre-text-style = "bold.yellow" +pre-text = "" +output-style = "bold.yellow" +separator-style = "white" +separator-char = "@" + +[delimiter] +style = "white" +repeat-num = 0 +char = "-" + +[os] +pre-text-style = "bold.yellow" +pre-text = "OS: " +output-style = "white" + +[host] +pre-text-style = "bold.yellow" +pre-text = "Host: " +output-style = "white" + +[kernel] +pre-text-style = "bold.yellow" +pre-text = "Kernel: " +output-style = "white" + +[uptime] +pre-text-style = "bold.yellow" +pre-text = "Uptime: " +output-style = "white" +time-format = "$days days, $hours hours, $minutes minutes" + +[packages] +pre-text-style = "bold.yellow" +pre-text = "Packages: " +output-style = "white" + +[shell] +pre-text-style = "bold.yellow" +pre-text = "Shell: " +output-style = "white" + +[resolution] +pre-text-style = "bold.yellow" +pre-text = "Resolution: " +output-style = "white" + +[desktop-environment] +pre-text-style = "bold.yellow" +pre-text = "Desktop Environment: " +output-style = "white" + +[window-manager] +pre-text-style = "bold.yellow" +pre-text = "Window Manager: " +output-style = "white" + +[terminal] +pre-text-style = "bold.yellow" +pre-text = "Terminal: " +output-style = "white" + +[cpu] +pre-text-style = "bold.yellow" +pre-text = "CPU: " +output-style = "white"