From c4e2bd1145ff5961a50a187945aad14fa713c1ba Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 18 Oct 2026 11:44:57 +0200 Subject: chore: rofi menu scripts move to rofi-scripts udt-powermenu.sh, udt-launcher.sh, qar-scrotmenu.sh and blackpearl-sshmenu.sh now live in the sibling rofi-scripts repo with the other rofi scripts, which links them into ~/bin itself. This repo keeps their layouts. install.sh generates header.rasi alongside launcher.rasi. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 9 ++++----- install.sh | 12 ++++++------ 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 57f9ea5..a6a9f62 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -14,10 +14,9 @@ the working config cannot drift from what is committed. Everything outside `~/.config/rofi/udt/` and `~/bin/` was edited in place; `docs/MIGRATION.md` is the record of what changed and where the backups are. -The rofi menus' launch scripts (`udt-powermenu.sh`, `udt-launcher.sh`, -`qar-scrotmenu.sh`, `blackpearl-sshmenu.sh`) live in `bin/` and are symlinked into `~/bin/` under the -names hypr-theme's keybindings call. They used to sit loose in `~/bin/`, so the -themes were tracked and the only things that open them were not. +The rofi menus' launch scripts live in the sibling `rofi-scripts` repo, which +symlinks them into `~/bin/` itself. This repo holds their layouts only; the +per-menu title, message and `-theme-str` overrides are the scripts' business. Sibling checkouts are wired from here, each skipped when not cloned: `conky-theme-udt` (five links into @@ -344,7 +343,7 @@ them by exit code: rofi exits non-zero for ordinary reasons such as Escape. data (`qt6ct.conf` has an `ignored_applications` list), track only the theme-relevant keys. - **Themes that reference an image cannot be committed with a real path.** - `launcher.rasi` and `ssh.rasi` carry an `@WPAPER@` placeholder that `install.sh` rewrites. + `launcher.rasi` and `header.rasi` carry an `@WPAPER@` placeholder that `install.sh` rewrites. rofi does not expand `~` inside a `url()`. - After editing anything under `rofi/udt/` or `palette/`, run `./install.sh`. - `bin/udt-palette --selftest` resolves every role in every scheme. Run it diff --git a/install.sh b/install.sh index 45deb76..830871f 100755 --- a/install.sh +++ b/install.sh @@ -84,14 +84,14 @@ fi # Theme files are symlinked individually; accent.rasi is NOT, it points at the # generated file in the wal cache instead. -for f in palette.rasi common.rasi menu.rasi list.rasi grid.rasi powermenu.rasi confirm.rasi screenshot.rasi; do +for f in palette.rasi common.rasi menu.rasi list.rasi grid.rasi powermenu.rasi confirm.rasi screenshot.rasi ssh.rasi; do ln -sfn "$repo/rofi/udt/$f" "$target/$f" done -# launcher.rasi and ssh.rasi are generated rather than symlinked: their +# launcher.rasi and header.rasi are generated rather than symlinked: their # wallpaper path comes from the wal cache and cannot be committed. Regenerating # them is why re-running this script after moving the repo is safe. -for f in launcher.rasi ssh.rasi; do +for f in launcher.rasi header.rasi; do rm -f "$target/$f" sed "s|@WPAPER@|$HOME/.cache/udt/wpaper|" "$repo/rofi/udt/$f" > "$target/$f" done @@ -124,9 +124,9 @@ fi mkdir -p "$HOME/.cache/wal" ln -sfn "$HOME/.cache/udt/colors.json" "$HOME/.cache/wal/colors.json" -# 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 blackpearl-sshmenu.sh; do +# The rofi menus' scripts live in the sibling rofi-scripts repo, which links +# its own. +for f in udt-accent udt-grub udt-keyboard udt-steps udt-palette udt-machine-name; do ln -sfn "$repo/bin/$f" "$HOME/bin/$f" done -- cgit v1.2.3