Add eww lyrics scroll widget, pinned over other windows - #9
Merged
Conversation
Renders mpdtui's -lyrics-line output (its 4-line synced-lyrics window) as a small always-on-top overlay, auto-hiding when MPD isn't playing and closable/reopenable via a button. Chose eww over conky specifically for smooth CSS transitions -- conky can only hard-redraw text each tick, no animation. - .config/eww/scripts/lyrics-listen.sh -- a deflisten (not defpoll) daemon script: runs mpdtui -lyrics-line once/sec, pushing an intermediate dimmed frame before a new current line so its opacity transition has two states to animate between (revealer was tried first but collapses its child's height, causing the whole box to visibly shrink/grow on every line change -- opacity leaves layout untouched). Also emits "visible" (only while MPD is actively [playing]) and a font-size hint that shrinks the current line for long text instead of overflowing the box's fixed width. - .config/eww/eww.yuck / eww.scss -- the widget itself. - .config/systemd/user/eww.service -- runs "eww daemon --no-daemonize" (Type=simple, not Type=forking -- that raced against eww's own self-daemonizing and caused a restart-loop) with an explicit Environment=PATH covering Homebrew (mpdtui's install location isn't on a systemd user service's default PATH). WantedBy both default.target (auto-start at login) and personal-services.target (visibility under linux-system-manager's Section 5). Removed the earlier conky-based attempt (.config/conky/conky-lyrics.conf, get-lyrics-window.sh) -- conky can't animate a text change, only hard-redraw it each tick, which wasn't smooth enough. Bumps workspace/aistuff for the accompanying dotfiles-management skill reference doc update (personal-systemd-services.md), documenting the two systemd gotchas above plus the deflisten/window-lifecycle nuance as a worked example for the next user-scope GUI daemon. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Renders mpdtui's -lyrics-line output (its 4-line synced-lyrics window) as a small always-on-top overlay, auto-hiding when MPD isn't playing and closable/reopenable via a button. Chose eww over conky specifically for smooth CSS transitions -- conky can only hard-redraw text each tick, no animation.
Removed the earlier conky-based attempt (.config/conky/conky-lyrics.conf, get-lyrics-window.sh) -- conky can't animate a text change, only hard-redraw it each tick, which wasn't smooth enough.
Bumps workspace/aistuff for the accompanying dotfiles-management skill reference doc update (personal-systemd-services.md), documenting the two systemd gotchas above plus the deflisten/window-lifecycle nuance as a worked example for the next user-scope GUI daemon.