#!/bin/sh # Gnome Terminal color scheme install script # https://terminal.sexy/ dset() { local key="$1" local val="$2" if [ "$type" = "string" ] then val="'$val'" fi printf 'dconf write "%s" "%s";\n' "$PROFILE_KEY/$key" "$val" } [ "$BASE_KEY_NEW" ] || BASE_KEY_NEW=/org/gnome/terminal/legacy/profiles: if [ "`dconf list $BASE_KEY_NEW/`" ] then if [ "`dconf read $BASE_KEY_NEW/default`" ] then PROFILE_SLUG=`dconf read $BASE_KEY_NEW/default | tr -d \'` else PROFILE_SLUG=`dconf list $BASE_KEY_NEW/ | grep '^:' | head -n1 | tr -d :/` fi PROFILE_KEY="$BASE_KEY_NEW/:$PROFILE_SLUG" # update profile values with theme options dset palette "['#000000', '#f18a78', '#c3f985', '#fffdc9', '#afd4fb', '#f295f8', '#d1d1fb', '#f1f1f1', '#8f8f8f', '#f7c7bf', '#defbc0', '#fffed9', '#c8e2fc', '#f5b5fa', '#e6e6fc', '#ffffff']" dset background-color "'#000000'" dset foreground-color "'#c7c7c7'" dset bold-color "'#c7c7c7'" dset bold-color-same-as-fg "true" dset use-theme-colors "false" dset use-theme-background "false" fi