From af8db1eb8fff0f645c234420ec8ecb8915ebe7ee Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 10 Jul 2023 12:41:33 +0530 Subject: [PATCH] Add an example for how to get a single color from @ get-colors --- kitty/rc/get_colors.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kitty/rc/get_colors.py b/kitty/rc/get_colors.py index 32cd3b721..2631bd1d2 100644 --- a/kitty/rc/get_colors.py +++ b/kitty/rc/get_colors.py @@ -23,7 +23,10 @@ class GetColors(RemoteCommand): short_desc = 'Get terminal colors' desc = ( 'Get the terminal colors for the specified window (defaults to active window).' - ' Colors will be output to stdout in the same syntax as used for :file:`kitty.conf`.' + ' Colors will be output to STDOUT in the same syntax as used for :file:`kitty.conf`.' + '\n\nTo get a single color use:' + '\n get-colors | grep "^background " | tr -s | cut -d" " -f2' + '\n\nChange background above to whatever color you are interested in.' ) options_spec = '''\ --configured -c