Skip to content

SELFshell 0.12.0

Choose a tag to compare

@github-actions github-actions released this 23 Sep 22:15
· 32 commits to main since this release

Added

  • Process timeouts — hung background processes no longer wedge the shell forever: Genshin sync (45s), powerprofilesctl get/set (15s, queued concurrent set runs after the current one instead of being dropped), pacman update check (8min QML-side). Cava retries slowly (60s) after 5 fast crashes instead of dying silently.
  • kcd action feedback — Ping/Ring/Share/Clipboard/SFTP failures show an inline error in the phone popup instead of console.warn only; buttons ignore clicks while their process runs. Rejecting a pairing now tries kcd unpair best-effort instead of leaving the phone hanging until the 30s daemon timeout.
  • Installer hardening — set -E (ERR trap fires in helpers), fakeroot in deps (doctor already required it), mktemp -d yay build dir, chmod 600 fresh .env, backups of /etc/greetd/config.toml + cursor index.theme, marker-guarded fish uwsm block, --no skips service enable.
  • Script robustness — update-palette.sh/update-wallpaper-only.sh serialize via lockdir + atomic current.* writes; pacman_upgrade.sh atomic sentinel; update-palette.py flocked foot.ini append; genshin_stats.py pid-unique tmp; pacman_updates.py forced LC_ALL=C + comma decimals + one enrich retry; tracklist.py exact player-name match + count-mismatch diagnostics + stderr on failure; sysinfo.py Package/Tctl label priority + MemAvailable fallback; selfshell curl retry, reload lock, fixed Hyprland version compare and \r-proof downgrade guard.
  • Tests/CI — new test_tracklist.py (stubbed dbus), visual_test.lua wired into run.sh + CI, py_compile/bash -n/shellcheck cover all scripts, stdlib python tests run even without requests/dotenv. check_config_schema.py now guards binds.json action ids, visual.json keys and AppConfig adapter/defaultCfg parity (BindsSection/binds.lua/docs, hyprDefaults/Lua/docs and adapter/defaultCfg must match).

Changed

  • Lock is lock-only — qs ipc call lockscreen toggle / selfshell toggle-lock no longer unlock without a password (any user process could drop the lock); unlock is PAM-only. SUPER+L still locks; docs/CLI help updated.
  • Settings sliders debounce writes — onMoved goes through AppConfig.saveSoon() (400ms) instead of an atomic writeAdapter() per tick.
  • MPRIS position timer gated on visibility — no more 1s positionChanged() all day while music plays with the popup closed.
  • TrackList metadata capped at 200 — huge playlists no longer risk ARG_MAX/hung metaProc for 10 visible rows.
  • EQ config no longer rewritten every start — identical content skips the write (and the PipeWire restart); missing sink restarts PipeWire at most 3× with an error instead of flapping forever.
  • DPMS commands serialized — a pending on/off change flushes after the running one instead of being lost on idle-bounce.
  • kcd icon allowlist — absolute phone-provided icon paths outside kcd dirs/~/.cache/kcd fall back to theme lookup (service + bar second line).
  • kcd Clear clears dedup state — same text can notify again after Clear instead of being suppressed until cancel/TTL.
  • AppConfig/PaletteService declare watchChanges: false — matches the documented UAF workaround (was comment-only).
  • AppConfig adapter default gains selftrack — fresh clones and Reset give the same bar (defaultCfg already had it).
  • Fresh-install defaults follow the live setup — shipped data/config.json (Black theme, current widget orders and opacity), black palette.json, and install.sh seeds current.png/current-lock.jpg from black.png, so a fresh install boots straight into the Black theme with wallpaper set.
  • Pool drop removes the widget from pill orders — dragging a widget to the pool disabled it but left a dead slot in *Order; now the name is removed (like separators), since the drop index always decides the position on re-enable. Shipped orders contain enabled widgets only.

Fixed

  • Brightness jumps to intermediate values on slow DDC — the 15-unit sub-stepping sent ~6 transactions per 100→10 drag while polls picked up the intermediate hardware states, so the slider snapped back to 90/85. Now optimistic display plus a single coalesced write per drag pause (stale poll responses are dropped while a write is pending).

  • Control Center probes reverted to startup behavior — the lazy warmup + poll reshaping caused hyprsunset resets and sluggish brightness on real hardware. ControlPopup and ReadingTempSection are back to the pre-audit behavior (probes at shell startup); the ddcutil slowness (~3s per transaction on this bus) is a hardware/driver property, not something the shell can fix by rescheduling.

  • Keybind popups failed from a cold start — AnimatedPopup used the xdg keyboard grab (grabFocus: true), which needs an input serial from the parent window: IPC-driven opens (SUPER+R/S/Escape/...) silently failed until the bar was clicked once (Failed to create grabbing popup in the log). Now grabFocus: false + HyprlandFocusGrab (explicit compositor grab, no serial needed): keybind opens work immediately, outside clicks still dismiss with animation, keyboard focus in popups is kept.

  • qs-bt-agent crash in error handler — missing import sys turned every agent-registration failure into a traceback loop; non-numeric PIN/passkey input is now rejected immediately instead of hanging until the 55s timeout; DisplayPasskey/PinCode no longer clobbers an active confirm request.

  • Cava restart guard — the 2s restart timer re-checks monitorEnabled && active so cava no longer starts hidden and burns CPU.

  • Genshin state race — see Added (pid-unique tmp); syncTimeout stops on exit.

  • Docs drift — toggle-lock semantics, qs-bt-agent install path, white removal, TROUBLESHOOTING gains half-applied palette / offline updates / uwsm duplicate / stale current.* sections.

  • Player sliders hard to grab — the volume (84×4px) and progress (full-width×6px) tracks in the player popup had hit areas exactly the size of the visuals. Both now sit in taller transparent wrappers (22px/20px, same width/origin, visuals pixel-identical) so mouse coordinates and drag logic are unchanged; volume additionally gets mouse-wheel support (audioStep from Behavior settings, like the bar) and a pointer cursor. No wheel on progress by design (an accidental scroll would seek the track).

  • kcd open-allowlist vs custom paths — KdeConnectPopup._safeOpenPath only allowed ~/Downloads/kcd/, so with a custom sftp.mount_dir (e.g. ~/kcd) clicking the mount row silently did nothing. The allowlist is now built from the local kcd.toml: download_dir subtree + sftp.mount_dir itself/subtree (both service-parsed, never from phone payload); strict prefix + .. rejection kept.

  • kcd pair timeout vs daemon — service held pendingPairRequest 65s while the daemon kills the request at [pairing] timeout_secs (30s): a late Accept would send a new outbound request on kcd 1.18+ instead of accepting. Timeout cut to 35s (30s + click grace).

  • Connection settings vs auto-hide — opening a network's IPv4/DNS settings hides the manager popup, so with auto-hide on the bar slid away behind the settings window after 400ms. NetworkPopup now exposes settingsVisible, counted in Bar._anyPopupOpen().

  • Cava crash cap actually caps — the restart counter was reset on every start, so a broken cava looped every 2s forever; it now resets only after 30s of stable uptime, then the 5-fast-crashes → 60s-retry path works as documented.

  • Upgrade timeout keeps ownership — the 30-minute timeout cleared upgrading while kitty was still working, allowing a second upgrade on top; now a live process keeps the state (overtime notice in Settings → System) and only a dead one clears it.

  • Black wallpaper ships with the repo — wp/black.png is tracked instead of relying on a local file, so the Black theme applies palette + wallpaper on fresh clones.

Security

  • Stale PAM guard — a PAM reply started before a re-lock can no longer drop the new lock: completions carry the lock generation and mismatches are ignored.

Removed

  • kcd Devices section — the popup's manual device list (Refresh/Pair/Unpair/Connect by IP) is gone: pairing is phone-initiated only, the popup reacts to pair.requested. Terminal flow (kcd pair, kcd connect) unchanged, see TROUBLESHOOTING.