Skip to content

SELFshell 0.9.0

Choose a tag to compare

@github-actions github-actions released this 01 Sep 09:37
· 93 commits to main since this release

Added

  • Black static theme (mono) — core/AppConfig.qml themeMode: "black" | "matugen" (default matugen), mono palette #121212 via scripts/update-palette.py --theme black (is_light hover overlay, CONFIG_FORMAT.md/check_config_schema.py validation). New scripts/update-wallpaper-only.sh for wallpaper-only switch in Black mode (no palette regen). popups/settings/AppearanceSection.qml Theme selector Black/Matugen (auto black.png wallpaper), WallpaperPopup.qml/WallpaperSection.qml wallpaper-only path when Black. Bar widgets unified to 14px (scaled(14), keep Control/Launcher 22, Mpris 8/12).
  • CLI modernized (selfshell) — grouped usage with colors + per-command --help, doctor now checks current.*/current-lock.jpg, themeMode, palette/eq/control-state JSON, visual/binds.json, hyprsunset/awww-daemon/cliphist watcher, PipeWire (pipewire/wireplumber/pipewire-pulse + SELFshell_EQ), battery via upower, sshfs/zenity|kdialog|yad for kcd, ttf-jetbrains-mono-nerd via pacman -Q | fc-match (no pipefail), magick/cliphist/nmcli, grep -oE (was -oP). New commands: theme list/status/set, wallpaper list/current/set/random/reload, palette reload/show/path, status, config get/set/edit/check, services, osd, control/clipboard/kcd/audio, completion. LOCAL_FILES adds data/eq.json/data/last-shot.txt/services/__pycache__, fixes .opencode/tar --exclude ./path, trap + --yes for update, reload via pgrep -f + qs guard, version --short.
  • Audio mixer refactor — AudioMixerPopup.qml 2107→721 LOC (-66%): split pavucontrol-style mixer into popups/audio/ AudioSlider (Item anchors, direct PwNode, PwObjectTracker), StreamCard, DeviceCard (PortCombo), MixerTabBar, EmptyState, ConfigCard + scripts/AudioMixerUtils.js (formatPercent/Db via Math.log10, sinkNameForStream/sourceNameForStream pure). Single-pass _filtered (playback/recording/output/input 1 loop) + ScriptModel (playbackSM/recordingSM/outputSM/inputSM as in BluetoothPopup.qml:200) + sinkNameMap/sourceNameMap/sinkDescMap O(1) caches (was O(N*M) per binding). Bar.qml:645 IpcHandler audio toggle (qs ipc call audio toggle).
  • Toast/OSD opacity — AppConfig.qml toastBgOpacity/osdBgOpacity (0.90), data/config.json, CONFIG_FORMAT.md and PopupsSection sliders (0.5–1.0) with live preview (notify-send / qs ipc call osd volume via Bar.toast/Bar.osd aliases). NotifToast/OsdPopup now use Qt.rgba(..., bgOpacity) like AnimatedPopup.
  • Phone integration (kcd / KDE Connect) v1 — optional headless Go daemon kcd (AUR kcd-bin, systemctl --user enable --now kcd, LAN-only 1716/udp+tcp 1739:1764/tcp, no KDE stack, no telemetry, 0% idle when all devices connected) for battery + ping/ring + share file + notification + clipboard + SFTP. New services/KdeConnectService.qml (single instance in shell.qml, kcd watch --json + kcd devices --json 30s poll, 5× backoff, primaryDeviceId from watch device.connected/battery + devices poll, lastClipboard/sftpVolumes/sftpMountPoint) → widgets/KdeConnectWidget.qml (phone/battery icon + charge + reachable dot + muted F1F6 badge, draggable across left/center/right via BarSection allWidgetNames, widgetNeedsFillHeight includes kcd) → popups/KdeConnectPopup.qml (centered AnimatedPopup, battery bar, Ping (kcd ping), Ring (kcd findmyphone), Share (zenity/kdialog/yad → kcd share), Clipboard Push (kcd clipboard), Files Browse/Mount/Unmount (kcd sftp browse/mount/unmount → ~/Downloads/kcd/mnt local, /storage/emulated/0 phone, xdg-open), Devices collapsible (Devices (n) ▸/▾ with Refresh/Pair, per-device Unpair, Connect by IP), share progress, last clipboard/SFTP mount info, recent notifications with Clear, firewall hint, header mute icon + Mute phone ToggleSwitch). Bar.qml bridges KdeConnectService.onNotificationReceived → NotifToast (DND + kcdMuted-respecting, Phone • App + app icon payload.icon/iconPath with phone badge), NotifToast.qml isPhone + resolvedIcon + glyph fallback for missing icons (Gruvbox-Plus-Dark), IpcHandler kcd toggle, shell.qml injects kdeConnect into Bar, core/AppConfig.qml kcdEnabled/kcdMuted + rightOrder includes kcd, data/config.json kcdEnabled:false/kcdMuted:false, tests/check_config_schema.py kcdEnabled/kcdMuted, docs/CONFIG_FORMAT.md table, scripts/selfshell doctor Phone (optional, kcd) section (version, daemon, ss :1716), install.sh AUR kcd-bin prompt + systemctl --user enable --now kcd.

Changed

  • Cursor theme → Breeze (extra) — default cursorTheme Bibata-Modern-Classic (AUR bibata-cursor-theme) → breeze_cursors (extra breeze-cursors 6.7.4, 29 MiB). hypr/env.json:6 + hypr/modules/env.lua:23 defaults, install.sh:368 Крок 4.5: курсор Breeze (extra) now pacman -S breeze-cursors (no AUR helper), docs/CONFIG_FORMAT.md:105,127 + docs/ARCHITECTURE.md:138 + README.md:125,176 updated. Existing ~/.config/hypr/env.json needs manual breeze_cursors + hyprctl setcursor breeze_cursors 24.
  • Code banners & comments — chore(style): normalize banners across 93 quickshell files: banner // quickshell/<path> — with 60 "=" + em-dash, single sentence, English code comments → Ukrainian (FIXME/TODO/HACK/NOTE allowed), remove noise duplicating variable names. AGENTS.md/CONTRIBUTING.md banner exceptions (shebang/JSON/generated) + incremental formatting guidelines. New tests/check_banner.py + ci.yml/tests/run.sh integration, yazi/package.toml header fix.
  • kcd installer (extra deps) — install.sh:393 Крок 4.6: телефон (kcd, опційно, AUR — потребує yay/paru) уточнено AUR вимогу (відрізняє від Breeze extra), додано опціональний промпт sshfs (SFTP) + wl-clipboard (clipboard) + zenity (Share) via pacman -S щоб doctor не сварився одразу (doctor вже sshfs окремо, zenity|kdialog|yad OR).
  • Toast/OSD visuals — NotifToast/OsdPopup unified with AnimatedPopup: bg2 + lighter(..., lighten) gradient, bg2/green borders, no glow. NotifToast border green for visibility, OsdPopup bg2.
  • Bar auto-hide — Bar.qml:100 hideTimer polling (400ms) → event-driven hideDelay (400ms) + anyPopupOpenState (calendar/audio/bt/net/mpris/.../notifToast/osd) + containsMouse watchers. No wake-ups when idle.
  • PillBar loader — PillBar.qml:65 Loader now asynchronous:true, active: !isSep, visible: status===Ready, sourceComponent: widgetComponents[modelData] ?? null with needsFillHeight guard and Component.onDestruction: unregisterActive.

Fixed

  • Phone notifications dedup (kcd) — services/KdeConnectService.qml active-set replay caused duplicates (kcd resends all active notifications on each new one: 3 in 62 ms for 1 message, screenshots 10 dupes). Fixes chain cca50cc→15a8b73→e9708a4→4ef2bc3: nid now payload.id ?? stableKey (no ephemeral requestReplyId UUID), stableKey (payload.key) dedup + timeless content-hash _notifSeen (no 15 s window, lives until cancel), id dedup always, content-hash fallback, cancel cleans hash, recentNotifications vs _notifSeen split, Clear no longer re-adds Olya/Gnilas (was 6 → 1). Normalized title/text (trim + collapse whitespace), 5 min cleanup, fixes Test2→Gnilas chain and empty→Test→3 old.
  • Doctor checks — scripts/selfshell doctor: kdialog/yad/zenity now OR for Share (zenity||kdialog||yad per KdeConnectPopup.qml:105, was independent loop → false warnings), sshfs alone for SFTP; ttf-jetbrains-mono-nerd via pacman -Q / fc-match (was fc-list | grep -q with set -euo pipefail → SIGPIPE 141 even when font present).
  • KDE Connect popup overlap — popups/KdeConnectPopup.qml:604 long notification text overflowed its card (height: notifCol.implicitHeight+10 + anchors.centerIn gave wrong ColumnLayout height for WordWrap, no clip) and painted under the next card. Fixed to implicitHeight + clip:true, anchors.left/right/top with margins:5 so width is known before height calc, wrapMode: Text.Wrap for long words without spaces.
  • KDE Connect DND unify — kcdMuted → kcdDndEnabled (core/AppConfig.qml:51, data/config.json:57, tests/check_config_schema.py:37), KdeConnectService.qml:89 dnd single filter (shell.qml:21 wiring, Bar.qml:349 notify-send duplicate uses normalized lower+trim + contains for Telegram vs org.telegram.desktop and 10s window, Bar.qml:580 bridge + services/KdeConnectService.qml:451/475/537/548/554 all check dnd; ON in KdeConnectPopup header F1F6 → only popup history, OFF → toasts/sound/ControlCenter everywhere).
  • Audio mixer slider — popups/audio/AudioSlider.qml:59 Item { Layout.fillWidth } in RowLayout gave bar.width 8px at 100% volume (parent.width 552 → bar.width 8, width: parent.width*frac stayed 0 while % showed 100% and drag changed vol). Root cause RowLayout implicitWidth distribution without preferredWidth + var copy of PwNode.audio.volume. Fixed by Item anchors (left:muteBtn.right; right:volLabel.left) for bar, direct PwNode node + frac: node.audio.volume + PwObjectTracker + Qt.callLater(forceLayout) on show (AudioMixerPopup.qml:57).
  • Bar top position — Bar.qml:130 root.barPos undefined (always bottom) → root.appConfig.cfg.barPos (6 places). Top-bar reveal strip, hiddenMask and barContent slide direction now correct.
  • Active widgets leak — Bar.qml:32 activeWidgets never deleted on Loader destroy → unregisterActive + PillBar Component.onDestruction, stale Connections/anchorItem fixed. Added enabled: target!==null guards for 10 widget Connections.
  • Control badge (all) — Bar.qml:180 controlComp unread: root.newNotifs (only new since last open) → controlPopup.visible ? 0 : controlPopup.unread (ControlPopup.qml:29 trackedNotifications.length). Now ControlWidget blinks while any unread remains and clears when a notification is read in Telegram/app (external dismiss removes from tracked), not only after opening the center.
  • Popup glow — AnimatedPopup.qml:63 outerGlow (always occluded behind opaque bgRect) removed; AppConfig popupGlowOpacity/toastGlowOpacity and PopupsSection glow sliders removed, CONFIG_FORMAT.md/COMPONENTS.md/ARCHITECTURE.md/TROUBLESHOOTING.md updated. Separator glow kept.
  • LockSurface — LockSurface.qml:114 timers clockText.text = ... / parent.text = ... broke SystemClock binding → removed, hiddenInput now two-way synced via Connections onCurrentTextChanged, actions Suspend no longer re-locks (qs ipc call lockscreen lock && systemctl suspend → systemctl suspend), wallpaperImg asynchronous:true cache:false.
  • AudioMixer injection — AudioMixerPopup.qml:170 T="modelData.name" double-quote injection → T='...'.replace(/'/g,"'\\''") single-quote escaped.
  • Clipboard injection — ClipboardPopup.qml:88 cliphist decode/delete id concatenated → String(id).replace(/'/g,"'\\''") + single quotes.
  • TimerWidget — TimerWidget.qml:58 PLAYER='ffplay -nodisp ...' single string with args never executed → PLAYER='ffplay' PLAYER_ARGS='-nodisp ...' + $PLAYER $PLAYER_ARGS "$SOUND", notifyProc.command now built per run (was stale binding), onRead/onWheel => → function.
  • Settings components — SetToggle/SetSlider/SetSelect/SetButton/SetCard/SetLabel.qml:12 property QtObject sys → required, SetToggle onToggled: v=> / SetSlider onPressed/PositionChanged: mouse=> → function.
  • Toast/OSD black — NotifToast.qml:130 / OsdPopup.qml:152 _top/_base is not defined in GradientStop (scope) → container._top/_base, bg1→bg2 #525256 + solid color: _top/_base → Qt.rgba(..., bgOpacity) correctly scoped, no longer pure black.
  • Settings PopupsSection — PopupsSection.qml:18 preview helpers moved to root (_previewToast/_previewOsd at root, root._previewToast() calls) + Process notify-send/qs ipc so slider moves show toast/OSD live (previously _previewToast is not defined and PopupWindow conflict when Settings open).
  • Network popup — NetworkPopup.qml:324 onToggled: value=> → function.
  • Toast action buttons — NotifToast.qml:243 MouseArea for default action was outside container (sibling of PopupWindow), toastLayout:146 z:1 didn’t escape parent → actionArea:225 never received clicks, Mark as read triggered default dismiss. Moved MouseArea inside container before toastLayout, added HoverHandler for autoClose pause.
  • Toast border/top highlight — NotifToast.qml:126 border.color: green → bg2 (#525256) to match AnimatedPopup.qml:88/OsdPopup.qml:156 (was distinct), NotifToast.qml:139 top 1px color: hoverOverlay → gradient: transparent→hoverOverlay→transparent like AnimatedPopup.qml:116 so it doesn’t cut radius:9 corners.
  • PillBar unregisterActive — core/PillBar.qml:73 Component.onDestruction: root.unregisterActive(modelData) called undefined (required unregisterActive missing, Bar.qml only passed registerActive) → added required property var unregisterActive and Bar.qml passes unregisterActive: root.unregisterActive for all three pills, no more TypeError on widget hide/destroy.
  • Phone widget clickable — Bar.qml:202 widgetNeedsFillHeight missed kcd → KdeConnectWidget 0×0 MouseArea not clickable → added || name==="kcd".
  • Phone share picker crash — KdeConnectPopup.qml:10 FileDialog (QtQuick.Dialogs) crashed quickshell on Wayland → replaced with zenity/kdialog/yad via Process + StdioCollector.
  • Phone popup offline — KdeConnectService.qml:70 devicesProc had no command → never polled kcd devices --json, primaryDeviceId stayed empty and popup showed Offline/No paired device while widget showed battery via watch → set command: ["kcd","devices","--json"], set primaryDeviceId/name from watch device.connected/battery and isReachable=true on battery, fix onEnabledChanged/pollTimer/refresh to set command.
  • Phone popup hover — KdeConnectPopup.qml:261,284,513,524 Ping/Ring/Mount/Unmount used hoverOverlay grey while Share/Browse/Push used accent → unified to accent + bg0H text.
  • Phone SFTP mount path — popup Mount: /storage/emulated/0 showed phone path, local is ~/Downloads/kcd/mnt per kcd.toml sftp.mount_dir → now Local: ~/Downloads/kcd/mnt → Phone: /storage/emulated/0 and click opens local.

Removed

  • LayoutSection — quickshell/popups/settings/LayoutSection.qml (17k, orphan, merged into BarSection) deleted via git rm. SettingsPopup sections now Bar,Popups,Hyprland,Appearance,Wallpaper,Behavior,Binds,About.
  • Yazi cruft — yazi/package.toml 23 lines removed (chore(yazi):clean, no functional change).