aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-05 19:02:00 +0200
committerDanilo M. <danix@danix.xyz>2026-10-05 19:02:00 +0200
commit8cffa0ce6348255e3e917fa26d30b16552fe6262 (patch)
treee70e9237c851b4c5a727581f41ed025177779b56 /install.sh
parenta8f0a5f74cf44cb1877154cf71b5c594bc303b05 (diff)
downloadunified-desktop-theme-8cffa0ce6348255e3e917fa26d30b16552fe6262.tar.gz
unified-desktop-theme-8cffa0ce6348255e3e917fa26d30b16552fe6262.zip
feat(firefox): new tab background follows the wallpaper
FF Ultima selects the new tab image from a fixed list by pref. Its darknix.png slot is now a link to ~/.cache/udt/wpaper, so selecting it once in about:config makes the new tab show the current wallpaper, and Firefox picks up a change without a restart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 7a78f80..b0fd835 100755
--- a/install.sh
+++ b/install.sh
@@ -123,6 +123,15 @@ fi
mkdir -p "$HOME/.cache/wal"
ln -sfn "$HOME/.cache/udt/colors.json" "$HOME/.cache/wal/colors.json"
+# Firefox's new tab background. FF Ultima picks it from a fixed list of
+# images by pref; its darknix.png slot is pointed at the wallpaper udt-accent
+# tracks, so selecting it once (user.theme.wallpaper.darknix in about:config)
+# makes the new tab follow every wallpaper change. Skipped per profile
+# without FF Ultima.
+for walls in "$HOME"/.mozilla/firefox/*/chrome/theme/color-schemes/walls; do
+ [ -d "$walls" ] && ln -sfn "$HOME/.cache/udt/wpaper" "$walls/darknix.png"
+done
+
# The rofi menus are bound by name in hypr-theme's keybindings, so they keep
# the names they had when they lived loose in ~/bin.
for f in udt-accent udt-grub udt-keyboard udt-steps udt-palette udt-machine-name udt-powermenu.sh udt-launcher.sh qar-scrotmenu.sh; do