aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh23
1 files changed, 19 insertions, 4 deletions
diff --git a/install.sh b/install.sh
index ff08dba..80d5f13 100755
--- a/install.sh
+++ b/install.sh
@@ -7,6 +7,19 @@ set -euo pipefail
repo="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
target="$HOME/.config/rofi/udt"
+# Everything this prints also becomes the install tab of quickshell's steps
+# window, from whichever caller: the usual one is the appearance panel, not a
+# terminal, so the hints are assumed wanted on screen. The script reruns
+# itself as a child so the output can be both shown live and kept whole.
+if [ -z "${UDT_INSTALL_CHILD:-}" ]; then
+ log="$(mktemp)"
+ trap 'rm -f "$log"' EXIT
+ rc=0
+ UDT_INSTALL_CHILD=1 "$repo/install.sh" "$@" 2>&1 | tee "$log" || rc=$?
+ "$repo/bin/udt-steps" install < "$log"
+ exit "$rc"
+fi
+
mkdir -p "$target" "$HOME/bin" "$HOME/.cache/udt"
# Merge an ini template into a live file key by key: every key the template
@@ -59,7 +72,10 @@ if [ ! -f "$selector" ]; then
install -Dm644 "$repo/palette/roles.conf.default" "$selector"
echo "seeded $selector"
fi
-"$repo/bin/udt-palette"
+# Only the summary line: the list of every generated file, 86 of them, buried
+# the hints in the steps window. sed, not head: head would close the pipe
+# early, and pipefail would read the SIGPIPE as a failed generation.
+"$repo/bin/udt-palette" | sed -n 1p
# Theme files are symlinked individually; accent.rasi is NOT, it points at the
# generated file in the wal cache instead.
@@ -356,7 +372,6 @@ fi
echo
"$repo/bin/udt-grub"
+echo
[ -n "$reloaded" ] && echo "reloaded:$reloaded"
-
-echo "installed:"
-ls -l "$target" "$HOME/bin/udt-accent"
+echo "Qt and GTK apps only reread a theme when they restart; neovim needs :colorscheme udt."