ommp.git

ommp

~ Oh My Music Player — a standalone terminal music player built with Rust and ratatui
git clone https://github.com/debuman/ommp.git
commit f9e4785a349236d1d88697bc4c322c9c15fffe54
parent 8748f0017cdb9da8ff7730465e40d3e643fcc9d3
Author: sqzer <sqzer-x@users.noreply.github.com>
Date: Sat, 1 Aug 2026 21:15:44 +0900

Shoot every screenshot at the same size, and stop shrinking the second one

The modal shots were taken at font-size 14 like the wide shot, not 20. Twenty
was chosen to make the keybindings read once cropped, but the crops are gone and
all it did was make the app look stretched next to the shot above it. Every
screenshot on the page is now the density the program actually runs at here.

The reversed section keeps its own column tracks. Reordering alone left the
figure in the 22rem track, so the keybinding shot came out half the size of the
search shot for no reason other than which side it sat on.

Diffstat:
Msite/static/css/main.css | 4++++
Msite/static/img/02-help.avif | 0binary
Msite/static/img/03-search.avif | 0binary
Msite/tools/shoot.sh | 16++++++----------
4 files changed, 10 insertion(+), 10 deletion(-)

diff --git a/site/static/css/main.css b/site/static/css/main.css
@@ -239,6 +239,10 @@ a:hover { color: var(--cyan); }
 .split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
 @media (min-width: 56rem) {
   .split { grid-template-columns: 22rem 1fr; }
+  /* Reordering alone leaves the figure in the 22rem track and shrinks it to
+     half the size of the one above. Mirror the tracks so both screenshots come
+     out the same size, and only the side they sit on changes. */
+  .split-reverse { grid-template-columns: 1fr 22rem; }
   .split-reverse .split-text { order: 2; }
 }
 
diff --git a/site/static/img/02-help.avif b/site/static/img/02-help.avif
Binary files differ.
diff --git a/site/static/img/03-search.avif b/site/static/img/03-search.avif
Binary files differ.
diff --git a/site/tools/shoot.sh b/site/tools/shoot.sh
@@ -5,15 +5,11 @@
 # under a graphics protocol, and Ghostty is the only installed terminal that
 # speaks one. Anything else would show the block-character fallback.
 #
-# Two font sizes, because the two kinds of shot want opposite things:
-#
-#   14  the wide shot. Everything fits — full album names, and all thirteen
-#       fields of the info panel including the sample rate and bit depth.
-#       At 20 the panel stops at "Disc #" and the best detail is lost.
-#   20  the modal shots. A modal is sized as a percentage of the terminal but
-#       its contents are a fixed number of characters, so a wider terminal just
-#       adds empty space inside it. 20 is where the columns sit tight, and where
-#       the keybindings still read at the size the page shows them.
+# One font size for every shot. 14 is the density the program actually runs at
+# here: everything fits, including all thirteen fields of the info panel with
+# the sample rate and bit depth. Shooting the modals larger made the app look
+# stretched next to the wide shot, which is worse than a modal with some room
+# inside it.
 #
 # The window is fullscreen for about fifteen seconds and then closes. Your
 # player settings and your default sink's mute state are backed up and
@@ -87,7 +83,7 @@ pactl set-sink-mute "$SINK" 0
 # that reads Stopped next to two that read Playing looks like a mistake.
 python3 "$HERE/prep-state.py" "$STATE"
 pactl set-sink-mute "$SINK" 1
-launch 20
+launch 14
 wtype " "
 sleep 8
 wtype -M ctrl -k h -m ctrl; sleep 1.2; grim -o "$MONITOR" "$RAW/02-help.png"