Skip to content

SELFshell 0.10.0

Choose a tag to compare

@github-actions github-actions released this 05 Sep 12:55
· 76 commits to main since this release

Added

  • Scrolling layout option — hypr/modules/general.lua scrolling section (column_width, direction, focus_fit_method, follow_focus, follow_min_visible, fullscreen_on_one_column from new scroll_* visual.json keys, wiki defaults); Settings → Hyprland → Windows gains Scrolling in the Layout picker plus a conditional options block (master-style); docs/CONFIG_FORMAT.md documents the keys (wrap_*/explicit_column_widths stay Hyprland-default, JSON-only).

  • selftrack installer integration (optional) — install.sh step 4.7: cargo install --locked --git SELFtrack (installs rust first if no cargo), writes selftrack-daemon.service user unit (only if missing, custom flags preserved) and enables it; selfshell doctor gains Time tracking (optional, selftrack) section + selftrack-daemon in services; README dependency rows.

  • SelfTrack time-tracking widget — bar widget + centered popup for the external selftrack time tracker (selftrack export --date/--app JSON): monitors/SelfTrackMonitor.qml (60s poll, lazy page loading, widget counter decoupled from popup date) → widgets/SelfTrackWidget.qml (today active time, selftrackEnabled, centerOrder) → popups/SelfTrackPopup.qml (day navigation, day/idle/week/month summary, 00–24 timeline strip with hover details, app list with bars, expandable pages, content-sized height, resets to today on close) + scripts/SelfTrack.js (duration formatting, app colors, title cleanup). Bar.qml selftrackComp/SelfTrackPopup/IpcHandler selftrack toggle (qs ipc call selftrack toggle), core/AppConfig.qml selftrackEnabled, popups/settings/BarSection.qml display name. Icons via shared IconResolver (letter fallback, no image://icon checker).

  • SelfTrack timeline zoom — popups/SelfTrackPopup.qml map-like dynamic zoom: wheel zooms 24h→1min around the cursor, drag-to-pan (grab cursor, click-vs-drag threshold), click jumps into an hour / recenters when zoomed, live range label, adaptive ticks down to seconds; single unified track handler, no buttons.

  • SelfTrack week/month show active time — monitors/SelfTrackMonitor.qml reads active_ms instead of pc_on_ms (and tui.rs week/month lines likewise): no total is inflated by idle anymore, idle stays a day-level-only row.

  • SelfTrack position-based timeline hover — popups/SelfTrackPopup.qml hoverAt(x) finds the session under the cursor in data (shortest of overlapping wins, gaps report — no data —) instead of hovering 2px rectangles buried under neighbours; single top MouseArea with NoButton click-through.

  • SelfTrack refresh spinner — monitors/SelfTrackMonitor.qml visible updates clear loading no earlier than 700ms after start (local export is ~50ms and the icon only twitched); silent background polls still clear instantly.

  • IconResolver cache — core/IconResolver.qml:8 property var _cache + _resolveUncached + LRU trim 200→100, clearCache(); 6× Quickshell.iconPath per resolve() тепер кешується для Repeater трею/лаунчера.

Changed

  • PillBar model — core/PillBar.qml:60 filter() що перестворював Loaderи кожну зміну cfg.*Enabled → model: orderModel + visible: _shouldShow; без thrash, асинхронні Loaderи лишаються живими.
  • Bar auto-hide robustness — Bar.qml:107 ручний || 19 попапів централізовано у _anyPopupOpen(); новий попап додається в одне місце; anyPopupOpenState тепер вираховується централізовано.
  • CavaMonitor restart — monitors/CavaMonitor.qml:73 _updateRunning() скидає _restarts після 5 фейлів при re-enable; player-search Timer 2000 gated visible (widgets/MprisWidget.qml:65, popups/MprisPopup.qml:186 → running: root.visible).
  • Shell sleep/suspend — shell.qml:93,102 dbus-monitor | grep через sh -c → SplitParser прямий dbus-monitor --system (через systemd-inhibit); onSuspendRequested → suspendDelay 400ms (shell.qml:62) перед /usr/bin/systemctl suspend щоб WlSessionLock встиг закомітитись.
  • KdeConnectService lifecycle — services/KdeConnectService.qml:99,104 TTL 24h Timer 3600s для _notifSeen + ліміт 500, pendingPairRequest таймаут 65s (:40).

Fixed

  • IconResolver binding loops — resolve() reads and writes _cache, so QML bindings calling it re-trigger themselves (Binding loop detected spam). Converted to imperative resolution (pure name binding + resolve on change/completed): popups/audio/ConfigCard.qml, DeviceCard.qml, StreamCard.qml (_res), popups/NotifToast.qml (resolvedIcon/resolvedImage), popups/ControlPopup.qml (_res/_res2/_imgResolved).
  • Dead QML calls — popups/AudioMixerPopup.qml Qt.callLater(() => layout.forceLayout()) (forceLayout does not exist on ColumnLayout, threw on every open); widgets/MprisWidget.qml Component.onDestruction: Qt.callLater(function() { if (root) ... }) (root out of scope inside the closure, player re-election already covered by the 2s poller).
  • AudioMixerUtils enum scope — scripts/AudioMixerUtils.js used QML enum PwNodeType invisible to .js imports (ReferenceError in sinkNameForStream fallback); replaced with the isSink bool the QML side already reads on the same objects.
  • Security: AudioEq shell injection — core/AudioEq.qml:108,322,347,418,360,522 _shellQuote() ('→'\'') для _savedSink/sinkName у disable()/_getDefaultSinkProc/_restore/_moveInputsOnProc/_relinkProc (pactl/pw-link); константа SELFshell_EQ теж екранована; grep на імена сінків через grep -F.
  • Security: TrackListService injection — services/TrackListService.qml:112,190 sh -c "dbus-monitor ... | grep" → ["dbus-monitor","--session","type=signal,sender="+bus] + фільтр TrackListReplaced/Added/Removed в SplitParser onRead; bus з playerName більше не парситься шеллом.
  • IdleManager mediaPlaying — core/IdleManager.qml:50 цикл по playerRepeater.count не трекав isPlaying → _playingCount + onPlayingChanged/Completed/Destruction → _recalcPlaying(), mediaPlaying = _playingCount>0; екран не лочиться під час відтворення.
  • LockContext brute-force — core/LockContext.qml:87,48,71 failCount > failThreshold → >= (3-я спроба лочить), tryUnlock() guard unlockInProgress, PamContext configDirectory: Qt.resolvedUrl("../pam") (було ../pam відносний, ламався в systemd).
  • AnimatedPopup race — core/AnimatedPopup.qml:39,179 close() зупиняє enterAnim, onVisibleChanged зупиняє обидві, container.opacity 0.50→0 без спалаху.
  • VertSlider binding loop — core/VertSlider.qml:12 мутація value всередині рве батьківський біндинг → _dragValue/_displayValue (:26) + guard to!=from (:53), apply()/onWheel (:100) пишуть _dragValue + moved().
  • LockSurface — core/LockSurface.qml:190,105,271 echoMode Normal → Password + ImhHiddenText, FastBlur radius 24→16 + layer.enabled, power actions абсолютні /usr/bin/systemctl reboot/poweroff.
  • AppConfig defaults drift — core/AppConfig.qml:139 rightOrder адаптера додано kcd (синхронізовано з defaultCfg:279).
  • PaletteService docs — core/PaletteService.qml:11 коментар про UAF Quickshell 0.3.0 (watchChanges вимкнено; black-тема дає bg0H #121212 в palette.json) та AudioEq.qml:565 прибрано мертвий onFileChanged.
  • Battery/Keyboard perf — widgets/BatteryWidget.qml:74 running:true → running: root.visible || device==="", widgets/KeyboardLayoutWidget.qml:167 Component.onDestruction: socketProc.running=false.
  • MprisPopup id order — popups/MprisPopup.qml:1095 id: vs піднято перед Connections що його читає.
  • Palette generation errors — scripts/update-palette.py matugen/KeyError failures now print error: + exit 1 instead of a traceback with a half-applied state (new wallpaper, stale palette); atomic_write() no longer masks the original exception; missing wallpaper errors early; orange/aqua split to tertiary 80/70 (were identical); update-palette.sh/update-wallpaper-only.sh validate args (-f, jpg/png/gif) and mkdir -p wp.
  • Theme switch reliability — popups/settings/AppearanceSection.qml checks exitCode at every step (no more false "Applied"), shows errors, ignores stale StdioCollector text via _curGotData; WallpaperPopup/WallpaperSection same (_listGotData, visible errors).
  • CLI atomicity — scripts/selfshell theme set/config set write via tmp+rename; config get/get_theme_mode pass keys via argv (no quote injection).
  • xdg-open allowlist — popups/KdeConnectPopup.qml opens phone-provided paths only under */Downloads/kcd/* (no ..); Bar.qml screenshot open only under */Screenshots/*; share-picker output truncated to the first line.
  • AudioEq leftover quoting — core/AudioEq.qml:362 _moveInputsOnProc now _shellQuote(root.sinkName); all grep on sink names uses grep -F.
  • PillBar implicitHeight — core/PillBar.qml:33 self-reference root.height → row.implicitHeight.
  • Config/schema drift — data/config.json gains "themeMode": "matugen" default; docs/CONFIG_FORMAT.md documents themeMode; tests/check_config_schema.py accepts idle 0=never, validates animationsEnabled/animSpeed/preferredPlayer, tightens uiScale/separatorGlowOpacity ranges.