8000 GitHub - abihf/home-dashboard · GitHub
[go: up one dir, main page]

Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

62 Commits

Folders and files

Repository files navigation

home-dashboard

A native Wayland dashboard for a small portrait touch screen: clock, system status (CPU, temperature, memory, disks, network) and rotating background images. It is built to run fullscreen under cage and draws with OpenGL ES through EGL (femtovg), including the frosted-glass backdrop blur.

Build

Needs a Rust toolchain (1.88+) and libwayland-client / libwayland-egl (Debian/Ubuntu: libwayland-dev; Fedora: wayland-devel). At runtime it loads libEGL.so.1 and GLES from the system (Mesa via glvnd).

cargo build --release

The binary is target/release/home-dashboard. The font is embedded; background images are read from disk at runtime.

Run

BG_DIR=assets/bg cage -- target/release/home-dashboard

In a desktop session, DASHBOARD_WINDOWED=1 skips the fullscreen request so it opens as a normal window (the layout is designed for 600×1024 and scales with the window width).

Configuration (environment)

Variable Default Meaning
BG_DIR assets/bg Directory with list.json and the background images
MONITOR_NET_IFACE eth1 Interface for upload/download speed
MONITOR_CPU_SENSOR k10temp hwmon name used for the CPU temperature (temp1_input)
MONITOR_DISK_ROOT / First disk bar
MONITOR_DISK_MEDIA /media/data Second disk bar
MONITOR_INTERVAL_MS 1000 Sampling interval (min 100)
DASHBOARD_WINDOWED unset Don't request fullscreen
DASHBOARD_STATS unset Print frame count and render time every 10 s

BG_DIR/list.json lists the scenes, shown 20 s each with a 1 s crossfade:

[
  { "background": "frieren.jpg", "clockPos": 100, "statusPos": 720 },
  { "background": "kikuri.jpg", "clockPos": 0, "statusPos": 500 }
]

clockPos / statusPos are the vertical offsets (in 600-px-wide layout units) of the clock card and the status grid. Images (JPEG or PNG) are drawn at their natural size from the top-left corner, scaled with the layout.

Deploy (cage kiosk)

deploy/ has the kiosk session used on the target machine:

  • deploy/labhf-gui — picks the display GPU, rotates the output with wlr-randr, then runs cage with the dashboard (GUI_APP, default /usr/bin/home-dashboard). Install as /usr/bin/labhf-gui.
  • deploy/gui.service — the systemd unit that runs it on tty1 as user gui. Install as /usr/lib/systemd/system/gui.service (or /etc/systemd/system/gui.service to override a packaged one). Backgrounds default to /usr/share/home-dashboard/bg; machine-local overrides go in /etc/labhf/gui.env and /etc/labhf/home-dashboard.env.

The gui user must be able to reach every path it reads: BG_DIR and the MONITOR_DISK_* mount points (statvfs fails on a path inside a 0700 home).

Development

cargo test
cargo clippy --all-targets -- -D warnings

Licences

  • Code: LGPL-3.0-or-later.
  • JetBrains Mono font: SIL Open Font License 1.1 (assets/fonts/OFL.txt).
  • Icons: Heroicons, MIT.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0