#!/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"