linux-scripts/options/gnome-configs.sh
billypom on debian 30f9fed77a update
2025-06-28 13:08:06 -04:00

60 lines
2.2 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

fg_black="$(tput setaf 0)"
fg_red="$(tput setaf 1)"
fg_green="$(tput setaf 2)"
fg_yellow="$(tput setaf 3)"
fg_blue="$(tput setaf 4)"
fg_magenta="$(tput setaf 5)"
fg_cyan="$(tput setaf 6)"
fg_white="$(tput setaf 7)"
reset="$(tput sgr0)"
scriptdir=$PWD
cecho() {
local text="$1"
local color="$2"
# Ensure the color variable exists and is valid
if [[ -z "$color" || -z "${!color}" ]]; then
echo "Error: Invalid color variable"
return 1
fi
local fg_color="${!color}"
# Print the colored string
echo -e "${fg_color}${text}${reset}"
}
cecho "Installing gnome-specific packages" fg_cyan
sudo apt install -y gnome-tweaks
gsettings set org.gnome.desktop.interface gtk-theme Tokyonight-Dark
gsettings set org.gnome.shell.extensions.user-theme name Tokyonight-Dark
gsettings set org.gnome.desktop.interface icon-theme kora
gsettings set org.gnome.desktop.default-applications.terminal exec kitty
# better alt tab functionality
cecho "Making alt-tab better :)" fg_cyan
gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Alt>Tab']"
gsettings set org.gnome.desktop.wm.keybindings switch-windows-backward "['<Shift><Alt>Tab', '<Alt>Above_Tab']"
gsettings set org.gnome.desktop.wm.keybindings switch-applications "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "[]"
if $is_macbook; then
cecho "Swapping left Super & left Control" fg_cyan
bash options/toggle-gnome-macbook-keyboard.sh 1
fi
sudo apt install -y pipx
# adds ~/.local/bin to PATH
pipx ensurepath
# https://github.com/essembeh/gnome-extensions-cli
pipx install gnome-extensions-cli --system-site-packages
# install gnome extensions
gext install dash-to-dock@micxgx.gmail.com user-theme@gnome-shell-extensions.gcampax.github.com openbar@neuromorph emoji-copy@felipeftn tiling-assistant@leleat-on-github Vitals@CoreCoding.com compiz-windows-effect@hermes83.github.com
# enable gnome extensions
gext enable dash-to-dock@micxgx.gmail.com user-theme@gnome-shell-extensions.gcampax.github.com openbar@neuromorph emoji-copy@felipeftn tiling-assistant@leleat-on-github Vitals@CoreCoding.com compiz-windows-effect@hermes83.github.com
bash gnome-custom-keybinds.sh