refactor: replace keybind toggle with config checkbox for skeleton visibility

Removes the pynput/curl-based shortcut approach in favour of a plain
Plasma wallpaper config checkbox (ShowSkeleton). QML reads the setting
on page load and on change, calling setShowSkeleton() in JS directly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ltadeu6 2026-06-10 15:00:44 -03:00
parent 02edf4d9af
commit 71845ff2a7
No known key found for this signature in database
GPG key ID: FB9FDAB6B6F3418D
4 changed files with 58 additions and 4 deletions

View file

@ -1172,12 +1172,19 @@ function applyTheme(rgb) {
});
}
const albumArtEl = document.getElementById('albumArt');
const fogWisps = document.querySelectorAll('.fog-wisp');
const albumArtEl = document.getElementById('albumArt');
const fogWisps = document.querySelectorAll('.fog-wisp');
const lyricDisplay = document.getElementById('lyricDisplay');
const lyricInner = document.getElementById('lyricInner');
const robotWrap = document.querySelector('.robot-wrap');
let lastArtUrl = '';
let lastArtUrl = '';
let showSkeleton = true;
function setShowSkeleton(val) {
showSkeleton = val;
robotWrap.style.opacity = (isPlaying && showSkeleton) ? '1' : '0';
}
/* ── verse display ── */
const ACTIVE_SHADOW =
@ -1340,7 +1347,7 @@ function updateMusic(artist, title) {
const sepEl = document.getElementById('musicSep');
const playing = !!(artist || title);
isPlaying = playing;
document.querySelector('.robot-wrap').style.opacity = playing ? '1' : '0';
robotWrap.style.opacity = (playing && showSkeleton) ? '1' : '0';
document.querySelector('.music-ticker').style.opacity = playing ? '1' : '0';
albumArtEl.style.opacity = playing ? '1' : '0';
if (!playing) {