install: gtk no prompt if already using papirus

Don't prompt if already using papirus icon theme
This commit is contained in:
2 * r + 2 * t
2025-03-03 14:51:21 +11:00
parent 80e0da3bb6
commit 9155a09c79
+2 -2
View File
@@ -15,8 +15,8 @@ setup-systemd-monitor gtk $dist
# Set theme
gsettings set org.gnome.desktop.interface gtk-theme \'adw-gtk3-dark\'
if pacman -Q papirus-icon-theme &> /dev/null
read -l -p "input 'Set icon theme to Papirus-Dark? [Y/n] ' -n" confirm
if pacman -Q papirus-icon-theme &> /dev/null && test "$(gsettings get org.gnome.desktop.interface icon-theme | cut -d - -f 1 | string sub -s 2)" != Papirus
read -l -p "input 'Set icon theme to Papirus? [Y/n] ' -n" confirm
test "$confirm" = 'n' -o "$confirm" = 'N' || gsettings set org.gnome.desktop.interface icon-theme \'Papirus-Dark\'
end