Skip to content

Commit

Permalink
chore: tmux_batch_setup_module -> tmux_batch_setup_status_module
Browse files Browse the repository at this point in the history
  • Loading branch information
vdbe committed Aug 10, 2024
1 parent 4595cd3 commit 4a021a3
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion status/application.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
show_application() {
local index icon color text module

tmux_batch_setup_module "application"
tmux_batch_setup_status_module "application"
run_tmux_batch_commands

index=$1
Expand Down
2 changes: 1 addition & 1 deletion status/battery.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
show_battery() {
local index icon color text module

tmux_batch_setup_module "battery"
tmux_batch_setup_status_module "battery"

tmux_batch_options_commands+=("set-option -gq @batt_icon_charge_tier8 󰁹 ;")
tmux_batch_options_commands+=("set-option -gq @batt_icon_charge_tier7 󰂁 ;")
Expand Down
2 changes: 1 addition & 1 deletion status/clima.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
show_clima() {
local index icon color text module

tmux_batch_setup_module "clima"
tmux_batch_setup_status_module "clima"
run_tmux_batch_commands

index=$1
Expand Down
2 changes: 1 addition & 1 deletion status/cpu.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
show_cpu() {
local index icon color text module

tmux_batch_setup_module "cpu"
tmux_batch_setup_status_module "cpu"

tmux_batch_options_commands+=("set-option -gq @cpu_low_bg_color $thm_yellow ;") # background color when cpu is low
tmux_batch_options_commands+=("set-option -gq @cpu_medium_bg_color $thm_orange ;") # background color when cpu is medium
Expand Down
2 changes: 1 addition & 1 deletion status/date_time.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
show_date_time() {
local index icon color text module

tmux_batch_setup_module "date_time"
tmux_batch_setup_status_module "date_time"
run_tmux_batch_commands

index=$1
Expand Down
2 changes: 1 addition & 1 deletion status/directory.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
show_directory() {
local index icon color text module

tmux_batch_setup_module "directory"
tmux_batch_setup_status_module "directory"
run_tmux_batch_commands

index=$1
Expand Down
2 changes: 1 addition & 1 deletion status/gitmux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
show_gitmux() {
local index icon color text module

tmux_batch_setup_module "gitmux"
tmux_batch_setup_status_module "gitmux"
run_tmux_batch_commands

index=$1
Expand Down
2 changes: 1 addition & 1 deletion status/host.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
show_host() {
local index icon color text module

tmux_batch_setup_module "host"
tmux_batch_setup_status_module "host"
run_tmux_batch_commands

index=$1
Expand Down
2 changes: 1 addition & 1 deletion status/kube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
show_kube() {
local index icon color text context_color namespace_color symbol_enabled module

tmux_batch_setup_module "kube"
tmux_batch_setup_status_module "kube"

add_tmux_batch_option "@catppuccin_kube_context_color"
add_tmux_batch_option "@catppuccin_kube_namespace_color"
Expand Down
2 changes: 1 addition & 1 deletion status/load.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
show_load() {
local index icon color text module

tmux_batch_setup_module "load"
tmux_batch_setup_status_module "load"
run_tmux_batch_commands

index=$1
Expand Down
2 changes: 1 addition & 1 deletion status/pomodoro_plus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
show_pomodoro_plus() {
local index icon color text module

tmux_batch_setup_module "pomodoro_plus"
tmux_batch_setup_status_module "pomodoro_plus"
run_tmux_batch_commands

index=$1
Expand Down
2 changes: 1 addition & 1 deletion status/session.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
show_session() {
local index icon color text module

tmux_batch_setup_module "session"
tmux_batch_setup_status_module "session"
run_tmux_batch_commands

index=$1
Expand Down
2 changes: 1 addition & 1 deletion status/uptime.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
show_uptime() {
local index icon color text module

tmux_batch_setup_module "uptime"
tmux_batch_setup_status_module "uptime"
run_tmux_batch_commands

index=$1
Expand Down
2 changes: 1 addition & 1 deletion status/user.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
show_user() {
local index icon color text module

tmux_batch_setup_module "user"
tmux_batch_setup_status_module "user"
run_tmux_batch_commands

index=$1
Expand Down
2 changes: 1 addition & 1 deletion status/weather.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
show_weather() {
local index icon color text module

tmux_batch_setup_module "weather"
tmux_batch_setup_status_module "weather"
run_tmux_batch_commands

index=$1
Expand Down
2 changes: 1 addition & 1 deletion utils/tmux_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ run_tmux_batch_commands() {
tmux_batch_options_commands=()
}

tmux_batch_setup_module() {
tmux_batch_setup_status_module() {
local name="$1"

# Don't want to run commands set before since we can't update
Expand Down

0 comments on commit 4a021a3

Please sign in to comment.