diff --git a/common/doas b/common/doas new file mode 100755 index 0000000..94609ee --- /dev/null +++ b/common/doas @@ -0,0 +1,23 @@ +#!/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