Add dracula cursors

This commit is contained in:
Tobias Reisinger 2022-10-22 01:39:28 +02:00
parent e0b2cc16fb
commit b7c91e79d9
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 20 additions and 3 deletions

View file

@ -49,6 +49,10 @@ _autoinstall_all () {
_autoinstall_git \ _autoinstall_git \
"https://github.com/dracula/gtk.git" \ "https://github.com/dracula/gtk.git" \
"$HOME/.themes/Dracula" "$HOME/.themes/Dracula"
_autoinstall_archive \
"https://github.com/dracula/gtk/releases/download/v3.0/Dracula-cursors.tar.xz" \
"$HOME/.icons/Dracula-cursors.tar.xz"
} }
_autoinstall_git () { _autoinstall_git () {
@ -67,7 +71,19 @@ _autoinstall_file () {
file_path=$(dirname "$2") file_path=$(dirname "$2")
mkdir -p "$file_path" mkdir -p "$file_path"
cd "$file_path" || exit cd "$file_path" || exit
curl -sSo "$2" "$1" curl -LsSo "$2" "$1"
fi
}
_autoinstall_archive () {
if [ ! -f "$2" ]
then
echo "Installing archive $1 to $2"
file_path=$(dirname "$2")
mkdir -p "$file_path"
cd "$file_path" || exit
curl -LsSo "$2" "$1"
tar xaf "$2"
fi fi
} }
@ -75,5 +91,6 @@ case $1 in
all) _autoinstall_all ;; all) _autoinstall_all ;;
git) _autoinstall_git "$2" "$3" ;; git) _autoinstall_git "$2" "$3" ;;
file) _autoinstall_file "$2" "$3" ;; file) _autoinstall_file "$2" "$3" ;;
archive) _autoinstall_archive "$2" "$3" ;;
*) echo "'$1' is not valid" ;; *) echo "'$1' is not valid" ;;
esac esac

View file

@ -1,8 +1,8 @@
[Settings] [Settings]
gtk-theme-name=Dracula gtk-theme-name=Dracula
gtk-icon-theme-name=Dracula gtk-icon-theme-name=Adwaita
gtk-font-name=Sans 11 gtk-font-name=Sans 11
gtk-cursor-theme-name=Adwaita gtk-cursor-theme-name=Dracula-cursors
gtk-cursor-theme-size=0 gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_TEXT gtk-toolbar-style=GTK_TOOLBAR_TEXT
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR