From 9155a09c79e0f45d752fc5864f35c05f7fe03a98 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 3 Mar 2025 14:51:21 +1100 Subject: install: gtk no prompt if already using papirus Don't prompt if already using papirus icon theme --- install/gtk.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/gtk.fish b/install/gtk.fish index b4e8f0a..6925d24 100755 --- a/install/gtk.fish +++ b/install/gtk.fish @@ -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 -- cgit v1.2.3-freya