Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Support for Customizing Active and Inactive Process Icon Colors #39

Open
0xJWLabs opened this issue Oct 7, 2024 · 4 comments

Comments

@0xJWLabs
Copy link

0xJWLabs commented Oct 7, 2024

Currently, the process_to_icon functionality allows setting an icon color, but the same color is applied to both active and inactive states. This limits customization and visual distinction between different states of a process. Adding the ability to customize the icon color separately for active and inactive states would provide more flexibility and enhance the UI's clarity and responsiveness.

Proposal

Maybe a config like this?

process_to_icon = {
  ['apt'] = { wezterm.nerdfonts.dev_debian, active_color = { fg = scheme.ansi[2] }, inactive_color = { fg = scheme.ansi[1] }
}
@michaelbrusegard
Copy link
Owner

Since process is using the same color function as every other component, it would be a larger rewrite to support this. I will accept a good PR if everything is implemented correctly, but it will lead to breaking changes for others. I think it would actually be better to have its own plugin for a component like this than can be added to tabline.wez similar to the battery.wez plugin component.

@0xJWLabs
Copy link
Author

0xJWLabs commented Oct 7, 2024

Uhm maybe something like lualine might be good? it has like extend from base component?

because i don’t know how to get like tab to update like the default process one. find the window and list all tabs?

@0xJWLabs
Copy link
Author

0xJWLabs commented Oct 7, 2024

Btw this is kind of out of topic, does wezterm use somehow like encoder for the plugin path? if i wanna refer it to local directory how to get the encoded path?

@0xJWLabs
Copy link
Author

0xJWLabs commented Oct 7, 2024

Or maybe something like this?

{
  function()
    return " "
  end,
  padding = { left = 0, right = 1 }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants