Script Leaves

cells/scripts/ packages small desktop scripts as Home Manager packages and attaches them to the desktop branch.

Up: cells

Down: Waybar leaf | theme system

Why scripts are leaves

Scripts are behavior. Packaging them with pkgs.writeShellScriptBin makes them reproducible and available through the same branch selection mechanism as any other user tool.

let
  helper = pkgs.writeShellScriptBin "helper" ''
    echo "do work"
  '';
in {
  home.packages = [ helper ];
}

Screenshot leaf

The screenshot leaf builds helper commands around screenshot tools, post-processing, watermarking, clipboard integration, and cleanup.

Keep real watermarks and branding assets out of public docs unless they are intended for publication.

Wallpaper leaf

The wallpaper leaf builds commands for setting a chosen wallpaper, choosing a random wallpaper, running a dynamic wallpaper loop, and restoring a theme default.

It consumes config.my.theme.slug so theme selection and wallpaper selection stay connected.

Waybar scripts leaf

The Waybar scripts leaf creates commands to launch Waybar with the selected theme variation, toggle Waybar state, update Hyprland border colors from the theme, render Cava output, and start a lock helper.

STYLE="$SDIR/themes/catppuccin/${theme.waybarVariation}/style.css"
waybar -c "$CONFIG" -s "$STYLE" &

0 items under this folder.