jammy-setup/gnome-terminal-profile.sh

35 lines
1.3 KiB
Bash
Executable File

################################################################################
################################################################################
################################################################################
# Configure Terminal (Luc)
# TODO: Better check
if command -v gconf2 > /dev/null 2>&1; then
echo 'Skipping configure terminal...'
else
sudo nala install -y gconf2
# Download and import elementary theme from Gogh
cd ~
git clone https://github.com/Gogh-Co/Gogh
# Set Terminal Manually
export TERMINAL='gnome-terminal'
./Gogh/themes/elementary.sh
# Set profile to elementary
DEFAULT_GNOME_TERMINAL_PROFILE=`gsettings get org.gnome.Terminal.ProfilesList default | awk -F \' '{print $2}'`
NEW_GNOME_TERMINAL_PROFILE=`dconf list /org/gnome/terminal/legacy/profiles:/ | grep -v $GNOME_TERMINAL_PROFILE | grep -v default | grep -v list | sed 's|:||; s|/||'`
gsettings set org.gnome.Terminal.ProfilesList default "$NEW_GNOME_TERMINAL_PROFILE"
# TODO: delete previous profile?
# Other gnome-terminal tweaks
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:$NEW_GNOME_TERMINAL_PROFILE/ audible-bell false
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:$NEW_GNOME_TERMINAL_PROFILE/ scrollback-unlimited true
# TODO: font?
cd -
fi