Skip to content

SELFshell 0.11.0

Choose a tag to compare

@github-actions github-actions released this 11 Sep 13:55
· 55 commits to main since this release

Added

  • Yazi trash shortcut — yazi/keymap.toml g t opens the trash bin via plugin trash.
  • System settings section with power profiles — new Settings → System section: power profile selector (Performance/Balanced/Power saver via powerprofilesctl, no root needed, works on both amd_pstate and intel_pstate) with live status (active profile, governor/EPP readout) plus an Auto power-saver on battery toggle (autoPowerSaver in config.json): drops to power-saver at low battery (≤15%, same hysteresis as the low-battery toast) and restores the manual profile on charge. The segment shows only profiles parsed from powerprofilesctl list (once at startup, refreshed on set failure). New services/PowerProfileService.qml singleton owns the state; install.sh installs/enables power-profiles-daemon, selfshell doctor checks it. A Monitoring card shows CPU temp/frequency, memory and disk usage from the new scripts/sysinfo.py (read-only /sys+/proc, refreshed every 5s while Settings is open).
  • Pacman/AUR updates in Settings → System — new Updates card: status line (counts, split official/AUR only when AUR updates exist, plus total download size and last-checked age), up to 30 package rows (name old → new + repo tag) and Check for updates / Update all buttons. New services/PacmanService.qml singleton owns the state (cached in data/updates.json, survives restarts): the expensive check (scripts/pacman_updates.py — checkupdates for official repos, yay/paru -Qua for AUR, enriched with repo/description/size) runs only at startup when the cache is older than 24h, once a day via timer, or manually — opening Settings never touches pacman. Update all closes Settings and opens kitty with scripts/pacman_upgrade.sh (yay -Syu or sudo pacman -Syu, password asked in that terminal, window floats centered 900×600 via a selfshell-upgrade-float windowrule matching its title and is explicitly focused after launch via Hyprland.dispatch, classic hyprctl dispatch syntax does not parse on Lua-based Hyprland); the wrapper signals completion through a sentinel file so the list re-checks itself into Up to date. install.sh gains pacman-contrib, selfshell doctor checks checkupdates/fakeroot/AUR helper; SetButton gains an optional disabled state.

Changed

  • Monitor singletons — GenshinMonitor/SelfTrackMonitor moved from Bar.qml (one instance per screen) to single instances in shell.qml, passed into Bar as required properties; N screens no longer means N× HoYoLAB syncs / selftrack export polls. CavaMonitor and NotificationServer stay per-Bar by design (screen-bound visualizer/toast).
  • Popup section split — MprisPopup.qml (1366→445 LOC) split into popups/mpris/ (TrackHeader, PlaybackControls, PlaylistSection, EqSection) and ControlPopup.qml (1243→441 LOC) into popups/control/ (QuickToggles, BrightnessSection, ReadingTempSection, NotificationList), same pattern as the earlier AudioMixerPopup → popups/audio/ split. State stays in the popup roots, sections get required properties in and signals out (playerSelOpen/playlistOpen/eqOpen toggles, stateDirty for control-state.json persistence, takeShot); the player dropdown overlay and section-height animations stay in the roots (z/layout constraints), the pill exposes a property alias for dropdown positioning. No behavior change.

Fixed

  • AudioEq param race — rapid band drags / preset clicks during the enable chain overwrote the shared _setParamProc command (last-writer-wins, silent band desync). New _bandsDirty coalescing flag flushes one trailing _applyAllNow() on exit; EQ sliders and preset chips are disabled while busy (same guard the enable toggle already had).
  • Disabled widgets still polled — PillBar keeps Loaders alive intentionally (no thrash), but BatteryWidget (upower every 30s), MprisWidget (2s player search) and KeyboardLayoutWidget (socat socket monitor) only checked visible, which never reflects the hidden pill ancestor. All three are now gated directly on their cfg.*Enabled flag; KeyboardLayoutWidget also starts/stops its processes on toggle and resets initialBuf on start like devsBuf.
  • xdg-open allowlist prefix — KdeConnectPopup._safeOpenPath and the Bar.qml screenshot Open action matched */Downloads/kcd/* / */Screenshots/* via includes, so /tmp/Downloads/kcd/... passed. Now a strict HOME + "/Downloads/kcd/" / HOME + "/Screenshots/" prefix (keeps the .. rejection).
  • Docs/style drift — Bar.qml _anyPopupOpen comment 19 → 20 popups, AGENTS.md AppConfig location Bar.qml → shell.qml, let/const → var per the QML canon (ControlPopup, NetworkPopup, NetWidget, WorkspacesWidget; documented BluetoothWidget exception untouched).
  • VertSlider mouse param — onPressed/onPositionChanged use explicit mouse => instead of deprecated undeclared parameter injection (removes Qt 6 qt.qml.context warnings).
  • EQ preset switch warnings — applyPreset assigned bands = [] then pushed, firing bandsChanged on an empty array so all 15 sliders read undefined (Cannot assign [undefined] to double). Now builds the array locally and assigns once (short arrays padded), the imperative slider sync has a ?? 0 fallback, user presets are normalized to 15 bands on load.
  • MprisPopup destruction warning — Component.onDestruction: Qt.callLater(function() { if (root) ... }) threw ReferenceError: root is not defined (the guard can't help: the identifier itself doesn't resolve in a destroyed scope). Removed like the identical case in MprisWidget; the 2s poller already covers player re-election.
  • IdleManager file-watch crash risk — control-state.json was watched with watchChanges: true while ControlPopup saves it atomically via setText (same use-after-free in the FileView watcher that already disabled watching in AppConfig/PaletteService/AudioEq on Quickshell 0.3.0). Watching is off now; ControlPopup.saveState() pushes an explicit refreshCaffeine() into the IdleManager singleton instead (shell.qml → Bar → ControlPopup required-property wiring, Svc-suffixed id to avoid the self-binding loop) — same on-demand pattern as PaletteService.
  • GenshinMonitor stall after failed sync — a background sync with an empty response or unparsable JSON returned before starting mainTimer, so the local resin recalc and daily/high-resin checks stayed dead until a manual refresh or widget re-toggle. The startup guard is now a shared _ensureMainTimer() helper called on every background outcome.