Appearance now opens on Themes: light and dark side by side, each remembering its own choice, over galleries of ten shipped themes — Tokyo Moon and Day joined by Moon Rose, Catppuccin, Nord, Gruvbox and Everforest in both modes. A theme is a complete palette: the catalog lives in themes.json, Theme.qml reads every color token from the active record, and one render pipeline carries it to kitty, tmux, btop, GTK, Vicinae, Firefox's chrome, and the lock screen. The Theme editor builds new ones from four wells — wheel, hex, or eyedropper — with derived surfaces, a saturation slider, debounced fine-tune, and effects that save with the theme. Custom edits finally keep GNOME's accent, kitty's border, and hyprlock in sync. Wallpapers can be video: mpvpaper per output, hardware-decoded, muted and looped, supervised and respawned. Panama owns the pausing — games, battery, and a bar pill for right now — because the compositor rebuilds full-screen blur for every frame a video wallpaper draws. The lock screen gets a still frame. Titlebars stop lying. GNOME apps get close-only on your chosen side, the maximize and double-click settings are gone, the Settings window obeys the same rules, and its titlebar can be turned off entirely. Typography becomes five labeled dropdowns instead of a wall of samples. Contracts updated and written throughout (165 now); per the redesign workflow none were executed — the full sweep runs once at the end. Claude-Session: https://claude.ai/code/session_01Ms2FbjQy31TVf3CEvQhGM8
38 lines
1.3 KiB
Bash
Executable File
38 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Video wallpaper support: discovery and still frames. Playback itself is
|
|
# mpvpaper, launched and supervised by services/VideoWallpaper.qml — this
|
|
# helper only answers questions a QML Process shouldn't shell-script inline.
|
|
#
|
|
# scan <dir> newest 60 videos under the folder, one path per line
|
|
# frame <video> <out.png> a single still frame, for the lock screen
|
|
#
|
|
# The scan mirrors panama-wallpaper-scan's discipline exactly: two levels deep,
|
|
# newest first, a hard cap so a dumping-ground folder cannot flood the picker.
|
|
|
|
set -euo pipefail
|
|
|
|
command="${1:-}"
|
|
|
|
case "$command" in
|
|
scan)
|
|
dir="${2:-}"
|
|
[ -d "$dir" ] || exit 0
|
|
find "$dir" -maxdepth 2 -type f \
|
|
\( -iname '*.mp4' -o -iname '*.mkv' -o -iname '*.webm' \) \
|
|
-printf '%T@ %p\n' 2>/dev/null | sort -rn | cut -d' ' -f2- | awk 'NR <= 60'
|
|
;;
|
|
frame)
|
|
video="${2:-}"
|
|
out="${3:-}"
|
|
[ -f "$video" ] && [ -n "$out" ] || { echo "frame: bad arguments" >&2; exit 2; }
|
|
# A second in: the first frame of a loop is often a fade from black.
|
|
ffmpeg -hide_banner -loglevel error -ss 1 -i "$video" \
|
|
-frames:v 1 -update 1 -y "$out.tmp.png" </dev/null
|
|
mv "$out.tmp.png" "$out"
|
|
;;
|
|
*)
|
|
echo "usage: panama-video-wallpaper scan <dir> | frame <video> <out.png>" >&2
|
|
exit 2
|
|
;;
|
|
esac
|