Skip to content

Commit afb6a81

Browse files
author
Markus Tauchnitz
committed
fix: empty load status panel
1 parent 073ee54 commit afb6a81

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

‎run_tests.sh‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
99

1010
"${script_dir}"/tests/harness.sh --test "${script_dir}"/tests/application_module.sh --expected "${script_dir}"/tests/application_module_expected.txt "$@"
1111
"${script_dir}"/tests/harness.sh --test "${script_dir}"/tests/battery_module.sh --expected "${script_dir}"/tests/battery_module_expected.txt "$@"
12+
"${script_dir}"/tests/harness.sh --test "${script_dir}"/tests/load_module.sh --expected "${script_dir}"/tests/load_module_expected.txt "$@"
1213
"${script_dir}"/tests/harness.sh --test "${script_dir}"/tests/cpu_module.sh --expected "${script_dir}"/tests/cpu_module_expected.txt "$@"
1314
"${script_dir}"/tests/harness.sh --test "${script_dir}"/tests/pane_styling.sh --expected "${script_dir}"/tests/pane_styling_expected.txt "$@"

‎status/load.conf‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
set -ogq "@catppuccin_${MODULE_NAME}_icon" "ó°Šš "
55
set -ogqF "@catppuccin_${MODULE_NAME}_color" "#{E:@thm_blue}"
6-
set -ogq "@catppuccin_${MODULE_NAME}_text" " #{load_full}"
6+
set -ogq "@catppuccin_${MODULE_NAME}_text" " #{l:#{load_full}}"
77

88
source -F "#{d:current_file}/../utils/status_module.conf"

‎tests/load_module.sh‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd -P)
4+
# shellcheck disable=SC1091
5+
source "${script_dir}/helpers.sh"
6+
7+
# Tests that the default options are set correctly
8+
tmux source "${script_dir}/../catppuccin_options_tmux.conf"
9+
tmux source "${script_dir}/../catppuccin_tmux.conf"
10+
11+
print_option E:@catppuccin_status_load
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
E:@catppuccin_status_load #[fg=#89b4fa]î‚¶#[fg=#11111b,bg=#89b4fa]ó°Šš #[fg=#cdd6f4,bg=#313244] #{load_full}#[fg=#313244]

0 commit comments

Comments
 (0)