Config
TUI and Accessibility configuration
You can configure the TUI (Terminal User Interface), including accessibility features, either via the config file, or via the TUI itself.
From any screen in the TUI, you can press C and it will bring up the Accessibility and TUI config screen.
Some options may not take effect until you return to the start screen or restart the program.
To exit the TUI config screen, just press Q or Esc.
To checkout more information on configuring accessibility options via the config file, check out our examples here.
Disabling the TUI
There are two ways to disable the TUI, but both accomplish the same thing: modifying the $XDG_CONFIG_HOME/smol-k8s-lab/config.yaml
.
Here's a short video showing how to do this. I don't know how to add subtitles, but the voice says "Welcome to smol-k8s-lab. Press Tab, then C, to configure accessibility options." If you have an existing cluster, you can just just press C without needing to press tab first.
Disable TUI via TUI
Launch the TUI with smol-k8s-lab
and then press C. Click the switch next to the word "enabled", and this will disable the TUI from launching automatically. You can still launch the tui with smol-k8s-lab -i
or smol-k8s-lab --interactive
. Once disabled by default, you can only re-enable it by default from the config file.
Disable TUI via the config file
In $XDG_CONFIG_HOME/smol-k8s-lab/config.yaml
, set smol_k8s_lab.tui.enabled
to false
like this:
1 2 3 |
|
To re-enable the tui, set smol_k8s_lab.tui.enabled
to true
Logging, Password Management, and Run Command
There's a special screen that pops up just before the confirmation screen where we ask for a few last minute run-specific options.
FAQ
I'm getting Alsa errors whenever I launch the TUI over SSH or on a machine without audio drivers.
This is because we use your terminal bell or we're trying to use text to speech. You can disable text to speech and bell by hitting ++C++ anywhere in the TUI and then switching all the switches under Accessibility to the off position. Alternatively, you can disable all of this in the $XDG_CONFIG_HOME/smol-k8s-lab/config.yaml
(If you don't have the $XDG_CONFIG_HOME
env var configured, we will default to ~/.config/smol-k8s-lab/config.yaml
). See the TUI and Accessibility config file docs for more info on how to do this via the config file.
Why does the smol-k8s-lab
look weird in the default macOS terminal?
Please see the official textual docs for this, but the gist of it is:
You can (mostly) fix this by opening settings -> profiles > Text tab, and changing the font settings. We have found that Menlo Regular font, with a character spacing of 1 and line spacing of 0.805 produces reasonable results. If you want to use another font, you may have to tweak the line spacing until you get good results.
What terminal do you recommend for using the smol-k8s-lab
TUI?
We use wezterm, because it works on both Linux and macOS. Before we used wezterm, on macOS, we used iTerm2. Both are great terminals with a lot of love put into them.