#!/bin/sh admin_bg="#2d161d" admin_fg="#e3ccd2" user_bg="#232627" user_fg="#fcfcfc" set_colours () { echo -en "\e]11;$admin_bg\e\\" echo -en "\e]10;$admin_fg\e\\" } reset_colours () { echo -en "\e]11;$user_bg\e\\" echo -en "\e]10;$user_fg\e\\" } # Reset colour if ^C trap "reset_colours" INT set_colours /usr/bin/doas "$@" reset_colours