From 93aa907852df96e2088d1b912aa900ae76619831 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 7 Oct 2026 19:10:54 +0200 Subject: chore: waybar is gone, stop theming and reloading it The quickshell island replaced both waybar bars and reads the palette itself, so install.sh no longer runs waybar-theme-udt's installer or signals a bar that is not running. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 11 +++++------ README.md | 6 +++--- install.sh | 29 +---------------------------- 3 files changed, 9 insertions(+), 37 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 92f8894..b9cb564 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -20,7 +20,7 @@ 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. Sibling checkouts are wired from here, each skipped when not cloned: -`waybar-theme-udt` (its own `install.sh`), `conky-theme-udt` (five links into +`conky-theme-udt` (five links into `~/.config/conky/`) and `hypr-theme`, which is the whole of `~/.config/hypr` as one symlink. A real `~/.config/hypr` directory is left alone with a warning. `grub-theme-udt` is SDDM's shape: udt-palette renders its `theme.txt.in`, @@ -327,10 +327,10 @@ them by exit code: rofi exits non-zero for ordinary reasons such as Escape. - **`wallp` starts `swaybg` in the background**, which inherits the shell's stdout, so a pipe or command substitution appears to hang after `wallp` has already finished. Redirect its output when calling it from a script. -- **The bar is not in `~/.config/waybar/`.** It is `waybar-theme-udt`, a - separate repository with its own config directory, `~/.config/waybar-udt/`, - and hyprland's autostart launches that. The stock directory has been - deleted; `install.sh` never wrote into it. See `templates/waybar/README.md`. +- **There is no waybar.** The bar is the quickshell island (the `quickshell` + repo, `desktop/island/`), which reads the generated palette itself, so + `install.sh` neither themes nor reloads a bar. `waybar-theme-udt` and + `templates/waybar/` are leftovers from before the island. ## Editing rules @@ -367,7 +367,6 @@ The table is what it does, and what to run if you change a config by hand. | Firefox | `udt-accent` runs `pywalfox update` | | Hyprland | `hyprctl reload` | | hyprlock | nothing; it reads its config per lock, so the next lock picks it up | -| waybar | `killall -SIGUSR2 waybar` | | kitty | `pkill -USR1 -x kitty` | | Sublime Text | nothing; it watches `Packages/User` and reloads both the scheme and the theme | | conky | restart it; no hot-reload | diff --git a/README.md b/README.md index 6ae2ef1..9d46d54 100644 --- a/README.md +++ b/README.md @@ -43,11 +43,11 @@ and run `./install.sh`. That file is yours, not the repo's: `install.sh` creates it on a first run and never overwrites it, so switching scheme leaves the working tree clean. -`install.sh` reloads whatever is running (waybar, kitty, Hyprland, conky), so +`install.sh` reloads whatever is running (kitty, Hyprland, conky), so the switch is visible immediately. Qt and GTK apps only reread a theme on startup, so those need restarting by hand. Ships with `macchiato`, -`tokyo-night`, `nord` and `dracula`; rofi, conky, waybar, kitty, Firefox and -quickshell all follow. +`tokyo-night`, `nord` and `dracula`; rofi, conky, kitty, Firefox and +quickshell all follow. The bar is quickshell's island now; waybar is gone. A scheme is two files: `palette/.conf` for the colours under the scheme's own names, and `palette/roles-.conf` saying what each is for. diff --git a/install.sh b/install.sh index 7a78f80..7ac2c91 100755 --- a/install.sh +++ b/install.sh @@ -134,32 +134,6 @@ done # with settings that are none of this repo's business. scheme="$(sed -n 's/^scheme *= *//p' "$selector")" -# waybar. The bar is waybar-theme-udt, a sibling checkout with its own -# install.sh, and that script is called here rather than having this one copy -# the stylesheet into place. -# -# The reason is that the palette reaches the bar as THREE generated files, not -# one: styles/theme.css, dots.colors for the two dot scripts, which are bash -# and cannot read @define-color, and two tints of the Slackware mark, which -# has to contrast with the accent pill at rest and the dark pill on hover. -# Copying only the stylesheet left the dots and the mark on the previous -# scheme's colours after a switch, and a second writer for those files here -# would drift from the one over there. -# -# Called with the palette already generated, and never fatal: a failure in the -# bar's install must not stop kitty, Kvantum or Sublime from being themed. The -# same reasoning as udt-appthemes below. -# -# The stock ~/.config/waybar/ is deliberately left alone. Nothing launches it -# any more, and its stylesheets still reference the per-module role names this -# generator no longer emits, so writing a new theme in there would leave it -# referencing colours that do not exist rather than simply sitting unused. -waybar_repo="$repo/../waybar-theme-udt" -if [ -x "$waybar_repo/install.sh" ]; then - UDT_PALETTE_DONE=1 "$waybar_repo/install.sh" >/dev/null || \ - echo "waybar: its install.sh failed, bar left on the old colours" >&2 -fi - # Written through, not replaced: current-theme.conf is a symlink into the # kitty-conf repo, and install -D would unlink it and leave a plain file behind. mkdir -p "$HOME/.config/kitty" @@ -307,12 +281,11 @@ if [ -d "$hypr_repo" ]; then fi fi -# Reload what is running. Writing the configs is not enough: waybar, kitty and +# Reload what is running. Writing the configs is not enough: kitty and # Hyprland reread on a signal, conky only on a restart, and rofi # reads its theme per launch so it needs nothing. Each is guarded, because none # of them is necessarily running, and a missing one is not an error. reloaded="" -pgrep -x waybar >/dev/null 2>&1 && killall -SIGUSR2 waybar 2>/dev/null && reloaded="$reloaded waybar" pgrep -x kitty >/dev/null 2>&1 && pkill -USR1 -x kitty 2>/dev/null && reloaded="$reloaded kitty" command -v hyprctl >/dev/null 2>&1 && hyprctl reload >/dev/null 2>&1 && reloaded="$reloaded hyprland" -- cgit v1.2.3