Skip to content

awayd v0.3.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 11:14
· 4 commits to main since this release

Upgrading from 0.2.0

  • Replace all three programs (awayd.exe, awayd-settings.exe, awayctl.exe) together:
    the settings use new named-pipe methods (probe_host, resource_use) that an awayd 0.2.0
    does not know.
  • config.toml, the Discord token and the saved state are kept; the new setting
    advanced.process_watch_seconds defaults to 5 s (0.2.0 checked every 2 s).
  • Windows may show the old program icon from its icon cache for a while; re-pin a shortcut
    or restart Explorer to see the new one.

Added

  • Settings: theme choice under General → Display ("Use Windows setting", "Light",
    "Dark"), stored in settings_ui.json. Until now the window followed the Windows app theme
    without a choice.
  • Network mode in the settings: Mode offers "Work hours" or "Network presence"; for the
    latter the host, the check (ping or TCP port), the check interval and the override duration
    are set there, with the same limits as awayctl validate. Test now asks awayd to check
    the host once (new named-pipe method probe_host; it does not change the status). Until a
    host is entered the choice is shown but not saved.
  • The setup wizard asks for the mode and, for network presence, for the device instead of
    region and work hours.
  • Work hours table: a "Day at a glance" bar per day.
  • Settings page Overview (opens first): current status with its reason, the next change,
    the mode, the last apply per service (sent, skipped or failed with the reason), the holiday
    data and the daemon's warnings; an override (invisible or online, until the next change or
    for 30 min to 8 h) and "Apply now" without the tray. The status is refreshed every 2 s while
    the page is shown.
  • Services page: the last apply and the program whose start makes awayd apply again, per
    service.
  • Settings: Remove token deletes a stored Discord token from the Credential Manager.
  • General page: Advanced (log level, log file size and count, wait before re-applying;
    until now only in config.toml), Configuration (path, "Open folder", "Reload from
    file", setup wizard) and About (versions, license, project page).
  • "Start awayd" in the sidebar when awayd is not running, and "Restart awayd" in the notice
    shown when the running awayd.exe is another version; "Open log folder" on the Logs page.
  • New setting advanced.process_watch_seconds (2–60 s, 0 = off; default 5), in the settings
    under General → Advanced → Watch for program starts.
  • General → Resource use shows awayd's memory and CPU time since start (asked for only
    while the page is open; new named-pipe method resource_use).
  • awayd-settings --page <page> opens a page directly; a second start brings the open
    settings window to the front instead of doing nothing.
  • Guide with screenshots on how to get the Discord token and store it in awayd
    (docs/discord-token.md), linked from the README, the install guide
    and SECURITY.md.

Changed

  • The settings window is redesigned in the style of the Windows 11 settings app: a sidebar
    with the pages Mode, Days off, Services, General and Logs replaces the
    three tabs, settings are grouped in cards, light and dark colours are checked for contrast,
    and Segoe UI is used when Windows has it. Services, autostart and "Same hours for all work
    days" are switches (the last one replaces the two opposite checkboxes "Use same hours…" and
    "Use custom table"). The result of the last action, the daemon state and the config file
    are shown in a status bar at the bottom. The default window size is 960×680.
  • Settings pages: the sidebar has icons; scroll bars are always visible; long descriptions
    wrap instead of running under the controls; the public holidays of the selected year are
    listed on the Days off page (with year navigation and "Refresh holiday data") instead of
    a flyout; vacations are a table with the number of days; country and region look like
    drop-down fields; each service has a short description.
  • Logs page: a table with time, level, source and message; separate filters for Verbose
    (DEBUG/TRACE, off by default), Info, Warnings and Errors; "Pop out" next to the title.
  • New app icon (light-blue tile with a half-filled circle, the mark of the settings sidebar)
    for all three programs and the settings window's title bar and taskbar button.
  • Settings: the window cannot be made smaller than 896×640; the General page uses two
    columns only when there is room; rows put wide controls (theme buttons, zoom slider) under
    their text.
  • Less load while idle: awayd notices program starts by comparing the list of process IDs
    and reads the names of new processes only (a full process snapshot with all names took
    about 7.6 ms per check, the list about 0.03 ms). The check runs every 5 s instead of 2 s,
    only for programs of switched-on services, and rests completely when there are none. The
    background runtime uses 2 worker threads instead of one per CPU core. Measured idle over
    60 s: 297 ms CPU per minute and 37 threads before, below the measurement resolution and 9
    threads after.
  • New tray icon: a one-colour glyph (white on a dark, black on a light taskbar, following the
    Windows setting at once) whose shape shows the state: empty ring = online, half-filled
    circle = invisible, dashed ring = status unknown; a blue dot marks an override, a yellow
    triangle a warning. Drawn at the real icon size for the screen scaling (awayd is now DPI
    aware) and cached, so status changes cost no drawing. Replaces the 2×2 colour grid that
    told the states apart by colour only.
  • New tray menu: the current status with "until …" and its reason at the top, a warning
    line only when there is a problem (click opens the matching settings page), "Invisible ▸"
    and "Online ▸" with the same durations as the Overview page, "Clear override" only while
    one is active, "Apply now", "Open settings…", "Quit". The version line and "More…" are
    gone. Menus are dark in Windows dark mode. Left click on the icon opens the settings, right
    click the menu. The tooltip says the state in plain words ("awayd · Invisible until 17:00
    (work hours)"), shortened to the 64 characters the taskbar shows.

Fixed

  • Settings: vacation names were cut to a few letters; texts in multi-column layouts no longer
    have stretched word gaps; the config path is shown in normal text.
  • The settings window opened smaller by the zoom factor (e.g. 115 %) every time and moved
    right and down; size and position are now restored as they were left.
  • Logs: "Follow new lines" keeps the view at the newest line (it only jumped there once).