Skip to content

How to reset background color after metrics section #88

@learmond

Description

@learmond

I can't seem to figure out how to reset the background color after the CPU (etc) metrics section so that the system time shows up again in the normal status bar background. I was hoping might update your README example to optionally include how to do this?

i.e. How to apply the specific cpu/ram/temp_bg_color to only their section?
image

Thanks a bunch!

Activity

casperdcl

casperdcl commented on May 9, 2024

@casperdcl
Collaborator

You can (re)set using #[bg=green], #[fg=#000000], etc. e.g.:

#{cpu_bg_color}#{cpu_percentage}#[bg=green]
self-assigned this
on May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @learmond@casperdcl

      Issue actions

        How to reset background color after metrics section · Issue #88 · tmux-plugins/tmux-cpu