blob: 2ed0a78c35b3feb260bbcfd8b562b824db170b72 (
plain)
1
2
3
4
5
|
#!/usr/bin/env bash
# Sets the background color of the current foot terminal to the given hex color.
rgb_with_slashes=$(echo "$1" | sed -r 's,(..)(..),\1/\2/,')
echo -en "\033]11;rgb:$rgb_with_slashes\007"
|