Skip to content

Instantly share code, notes, and snippets.

@demacdolincoln
Created April 18, 2022 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save demacdolincoln/22a54a9a8d63e669c26da4b96d0fdf91 to your computer and use it in GitHub Desktop.
Save demacdolincoln/22a54a9a8d63e669c26da4b96d0fdf91 to your computer and use it in GitHub Desktop.
for i in (cat ~/.config/zellij/config.yaml | rg "\[\d+, \d+, \d+\]")
echo $i | sd " " "" | read -d ":" -l colorname rgb
set c "#"
for j in (echo $rgb | grep -ohP "\d+" )
set c $c(python -c "print(hex($j)[2:])")
end
set_color $c; echo $colorname: $c
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment