diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-29 10:12:17 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-29 10:12:17 +0100 |
| commit | 0a7db3b48cce5f064c20f280e345a8bf1feb5ecb (patch) | |
| tree | eaf9c4be1a832893acf327019ef71a352d9d6647 /desktop/companion/prep-frames | |
| parent | 28beb8a9600b6e74cab454401cc94c664d90bfe5 (diff) | |
| download | quickshell-0a7db3b48cce5f064c20f280e345a8bf1feb5ecb.tar.gz quickshell-0a7db3b48cce5f064c20f280e345a8bf1feb5ecb.zip | |
companion: remove from the tree, archived as tag archive/companion
The chibi 2B companion is retired for now. Its last state is kept in the
signed tag archive/companion (the commit before this one), so it can be
revisited with `git checkout archive/companion`; hypr-theme carries a tag
of the same name for its compositor hooks (typing/delete events and the
SUPER+\ bind).
Removed with it, since nothing else used them: the Companion, phrases
and artists settings pages, the five companion prefs in Prefs.qml and
Prefs.ready, the wallpaper heart (Admired.qml's list), the assistant's
replied() signal and cardTop, and the keybinds reminder's name for the
code:49 bind. The design specs and plans under docs/ stay as history.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/companion/prep-frames')
| -rwxr-xr-x | desktop/companion/prep-frames | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/desktop/companion/prep-frames b/desktop/companion/prep-frames deleted file mode 100755 index 462657e..0000000 --- a/desktop/companion/prep-frames +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2026 Danilo M. <danix@danix.xyz> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# prep-frames: the companion's generated images to the frames she shows. -# -# prep-frames [ART_DIR] default: ~/.local/share/keystone/companion/2b -# -# Reads ART_DIR/dress/*.png and ART_DIR/leotard/*.png, 1024x1024 on white, -# and writes ART_DIR/frames/<outfit>/<name>.png: background removed, trimmed -# to her, scaled by a quarter. One scale for every frame keeps her the same -# size whatever the pose, which scaling each to a fixed height would not: -# lying down would come out huge. Sprite.qml draws them at half size and -# stands each on its bottom edge. -# -# The background goes by flood fill from the four corners: the dark line art -# stops the fill, so the white hair and the white leotard inside it stay. - -set -euo pipefail - -art=${1:-$HOME/.local/share/keystone/companion/2b} -n=0 -for outfit in dress leotard; do - [[ -d $art/$outfit ]] || continue - mkdir -p "$art/frames/$outfit" - for src in "$art/$outfit"/*.png; do - [[ -e $src ]] || continue - read -r w h < <(magick identify -format '%w %h\n' "$src") - magick "$src" -alpha set -fuzz 6% -fill none \ - -draw "color 0,0 floodfill" -draw "color $((w - 1)),0 floodfill" \ - -draw "color 0,$((h - 1)) floodfill" -draw "color $((w - 1)),$((h - 1)) floodfill" \ - -trim +repage -resize 25% "$art/frames/$outfit/$(basename "$src")" - n=$((n + 1)) - done -done -echo "prep-frames: $n frames in $art/frames" |
