hyprland-dotfiles/.install/gtk.sh

57 lines
1.0 KiB
Bash
Raw Normal View History

2024-01-22 12:51:18 +00:00
#!/bin/bash
cat <<"EOF"
____ _____ _ __
/ ___|_ _| |/ /
| | _ | | | ' /
| |_| | | | | . \
\____| |_| |_|\_\
EOF
2024-01-24 08:48:01 +00:00
# version="dotfiles"
# Remove existing symbolic links
gtk_symlink=0
gtk_overwrite=1
if [ -L ~/.config/gtk-3.0 ]; then
rm ~/.config/gtk-3.0
gtk_symlink=1
fi
if [ -L ~/.config/gtk-4.0 ]; then
rm ~/.config/gtk-4.0
gtk_symlink=1
fi
if [ -L ~/.gtkrc-2.0 ]; then
rm ~/.gtkrc-2.0
gtk_symlink=1
fi
if [ -L ~/.Xresources ]; then
rm ~/.Xresources
gtk_symlink=1
fi
if [ "$gtk_symlink" == "1" ] ;then
echo ":: Existing symbolic links to GTK configurations removed"
fi
if [ -d ~/.config/gtk-3.0 ] ;then
echo "The script has detected an existing GTK configuration."
if gum confirm "Do you want to overwrite your configuration?" ;then
gtk_overwrite=1
else
gtk_overwrite=0
fi
fi
if [ "$gtk_overwrite" == "1" ] ;then
2024-01-24 10:05:56 +00:00
cp -r gtk/gtk-3.0 ~/.config/
cp -r gtk/gtk-4.0 ~/.config/
cp -r gtk/xsettingsd ~/.config/
cp gtk/.gtkrc-2.0 ~/
cp gtk/.Xresources ~/
2024-01-24 08:48:01 +00:00
echo ":: GTK Theme installed"
fi