Update active Wezterm window with CLI #4300
joshmedeski
started this conversation in
Ideas
Replies: 2 comments
-
There isn't a way to achieve this directly. https://wezfurlong.org/wezterm/recipes/passing-data.html#user-vars for the general concept https://wezfurlong.org/wezterm/config/lua/window/set_config_overrides.html for overriding config |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks, that's exactly what I need to mess around with my program. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I would like to be able to update the active Wezterm window using the command line. I want to update the background and color scheme based on when I switch tmux sessions.
I will be writing some bash for my t - the smart tmux session manager plugin.
Right now, I've been able to map a keybinding to reload the config and write the appropriate lua code to change the background. I want a way to find a way to update wezterm via a CLI command.
Perhaps we can add an
--active
page and it will allow me to update the current config of the active wezterm window.My use case will be grabbing the photo from the root of current tmux directory (after switching) and overwriting the background config to switch to that image. There will be some rules to decide which image to use, and what to do when no image is found.
Can anyone help me figure out what I need to do to get this working?
Thanks!
p.s. big fan of Wezterm, thanks for all the hard work so far!
Beta Was this translation helpful? Give feedback.
All reactions