Adds GTK theme and bootstrap file

This commit is contained in:
Michel Fedde 2025-02-12 18:46:10 +01:00
parent cdc55cfec9
commit 084c39594e
9 changed files with 62 additions and 25 deletions

View file

View file

@ -0,0 +1,17 @@
[Settings]
gtk-theme-name=Gruvbox-Material-Dark
gtk-icon-theme-name=Adwaita
gtk-font-name=Cantarell 11
gtk-cursor-theme-name=default
gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintslight
gtk-xft-rgba=rgb
gtk-application-prefer-dark-theme=0

View file

@ -1,32 +1,29 @@
#!/bin/bash #!/bin/bash
confirm() { # Save this file as ~/.config/yadm/bootstrap and make it executable. It will
# call with a prompt string or use a default # execute all executable files (excluding templates and editor backups) in the
read -r -p "${1} [y/N] " response # ~/.config/yadm/bootstrap.d directory when run.
case "$response" in
[yY][eE][sS] | [yY])
1
;;
*)
0
;;
esac
}
debug() { set -eu
echo "Debug:"
echo "XDG_SESSION_DESKTOP $XDG_SESSION_DESKTOP"
}
CYAN='\033[0;36m' # Directory to look for bootstrap executables in
NC='\033[0m' BOOTSTRAP_D="${BASH_SOURCE[0]}.d"
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) if [[ ! -d "$BOOTSTRAP_D" ]]; then
echo "Error: bootstrap directory '$BOOTSTRAP_D' not found" >&2
exit 1
fi
# install dependencies declare -a bootstraps
source "$SCRIPT_DIR/_install_dependencies.sh" while IFS= read -r bootstrap; do
if [[ -x "$bootstrap" && ! "$bootstrap" =~ "##" && ! "$bootstrap" =~ ~$ ]]; then
bootstraps+=("$bootstrap")
fi
done < <(find -L "$BOOTSTRAP_D" -type f | sort)
source "$SCRIPT_DIR/_install_desktop_env.sh" for bootstrap in "${bootstraps[@]}"; do
if ! "$bootstrap"; then
source "$SCRIPT_DIR/_install_keymap.sh" echo "Error: bootstrap '$bootstrap' failed" >&2
source "$SCRIPT_DIR/_install_fonts.sh" exit 1
fi
done

View file

@ -0,0 +1,4 @@
#!/bin/env sh
echo "# Installing GTK Theme (gruvbox)"
yay -S gruvbox-material-gtk-theme-git gruvbox-material-icon-theme-git

19
.gtkrc-2.0 Normal file
View file

@ -0,0 +1,19 @@
# DO NOT EDIT! This file will be overwritten by nwg-look.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
include "/home/michel/.gtkrc-2.0.mine"
gtk-theme-name="Gruvbox-Material-Dark"
gtk-icon-theme-name="Adwaita"
gtk-font-name="Cantarell 11"
gtk-cursor-theme-name="default"
gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintslight"
gtk-xft-rgba="rgb"