Skip to content

viewport 0.8.0

Choose a tag to compare

@codebam codebam released this 16 Nov 21:14
· 83 commits to main since this release
v0.8.0
89953a7

The OLED desk and the extension ecosystem: wallpaper extensions that draw
the desktop in ordinary DOM and CSS — per output, measured against
panel-drive budgets, tunable from the settings panel — a notification
extension hook, an idle dim ramp, a dim drifting focus border and a game
mode toggle. The lock work: lock before suspend, an idle lock that stays
blanked, an optional transparent lock screen, and a leaving-the-desk chord
that locks as well as blanks. Plus the multi-GPU copy that fills the last
cross-card hole, and the re-aim guard fix that stops a closing menu from
firing a shot. The full list is in the
changelog; the
headline is below.

Extensions

  • Wallpaper extensions. A user script draws the desktop background, the
    same shape as a layout extension or a custom bar widget:
    wallpaper_extensions names local scripts, wallpaper_extension selects
    one, wallpaper_options is handed to it untouched. Because the extension
    draws in ordinary DOM and CSS it works under every renderer, Vulkan
    included. examples/wallpapers/gradient.js is an animated demo;
    docs/wallpaper-extension.md documents the contract.
  • Per output. The outputs block gains wallpaper_extension /
    wallpaper_options, so each monitor runs its own scene; an empty extension
    shows the ordinary picture there while its neighbours run a scene.
  • An OLED drive-budget guard. wallpaper_oled_guard is off, warn
    (the default) or refuse. The shell rasterises what CSS actually painted
    and measures four metrics in linear drive — mean, the fraction over half
    drive, the peak, the fraction over 25% grey. Refuse takes an offending
    extension down and returns to the ordinary wallpaper.
  • A live panel-drive bar widget. Name panel in bar_items: the
    wallpaper's current mean drive as a percentage, sampled every five seconds,
    with the peak and the wash in the tooltip. A desk that never asks for it
    pays nothing.
  • Options in the settings panel. A wallpaper descriptor may declare an
    options schema — number, text, toggle, choice — and the panel draws a
    control per option, writing back through the runtime config path.
  • Notification extensions. filter(notification) keeps a popup off
    screen while the notification still reaches the centre and history;
    render({notification, el}) decorates the popup the shell built. Both are
    contained, so a bad script cannot silence the desktop. A badges demo ships
    in examples/notifications.

OLED panel care

  • An idle dim ramp. idle.dim_after / idle.dim_floor ramp brightness
    down across the idle window instead of holding full drive until the blank —
    through the compositor gamma, so ICC calibration and night-light tint
    survive. Any deliberate input brightens it again at once.
  • border.animated. The focused border becomes dim and low-saturation
    and its hue wanders by three incommensurate sines, sharing the load across
    subpixels instead of grinding one channel at ~93% drive for hours.
  • Game mode. One toggle — config key, runtime setter or bind action —
    zeroes the motion pace, hides the bar and pauses the wallpaper drift,
    restoring all three on the way out.

Lock

  • Lock before suspend. The compositor holds logind's sleep delay
    inhibitor and locks on PrepareForSleep, so any suspend — power menu, lid,
    systemctl suspend — resumes on the lock screen. Immediate, never the
    cancellable delay, and it follows the idle lock policy.
  • An idle lock stays blanked, and lock_transparent draws the built-in
    lock screen as a translucent scrim over the wallpaper — safe because the
    shell hides the desktop furniture while locked.
  • Mod4+Shift+b locks and blanks — the leaving-the-desk chord no longer
    leaves the session unlocked behind dark panels.
  • libpam on NixOS (fixed): the lock screen dlopens libpam.so.0, and the
    wrapper now names it, so a locked NixOS session has a way back in from the
    front.

Fixed

  • Closing a menu over a captured pointer no longer fires a shot. The
    re-aim guard asks the surface holding the pointer's focus, where the lock
    lives, instead of the surface under the cursor — an overlay has no
    constraint, and the old check let a leave/enter churn deliver an absolute
    motion to the locked client as aim.
  • Multi-GPU: a buffer the scanout card cannot import is copied, not
    dropped
    — imported on a helper card, drawn into a cached shadow on the
    scanout card, a blit per buffer rather than per frame. The shell's
    copy-buffer modifiers answer to every online card too, closing the
    shell-shaped hole of the same gap.
  • The geometry pump keeps sampling through a stalled animation, and tiled
    windows clip to the content box — no more mid-flight scroll frozen on
    screen under VRR, no more sliver of a client in the edge gap.