A minimal status overlay for Hyprland, Niri and Windows 11, written in Rust.
It is not a bar: it reserves no screen space, the strip never takes the cursor (clicks pass through it) and it only shows up when you call it with a keybinding or when something relevant happens (you switch workspace, the network drops, you plug in the charger, an app sends a notification…). The rest of the time nothing is drawn. On Linux it is also your desktop notification server.
Warning
This project is 100% vibe coded. All of the code, icons and documentation were written by an AI agent (Claude) following natural-language instructions; no human wrote or reviewed the code line by line. It works on my machine and I use it daily, but take it for what it is: a personal experiment, with no warranty, no support and no stability promises. Read it before you run it.
Each module is drawn in its own semi-transparent black pill near the top edge of the screen.
| Module | Where | Content | Shows up on its own when… |
|---|---|---|---|
workspaces |
top left | one dot per workspace; the active one filled | you switch workspace (1.5 s) |
clock |
top center | time and date | — |
status |
top right | network · notifications · cpu · ram · mute · battery | — (see notices) |
When something changes, hidebar does not open the whole status pill: it shows only the icon of what changed,
in a small pill in the same top-right spot, for 3 s.
The pill stretches out leftwards from the screen edge and then the icon slides in; when it expires the icon
fades and the pill folds back to the right.
Module pills (workspaces, clock, status) appear and disappear the same way, each one growing from its side
of the screen (the clock from the center).
The calendar (toggle clock) and the status panel (toggle status) open the same way, stretching down from
below their pill before their content fades in, and fold back up when they close.
- Network: the network icon, when connectivity changes.
- Audio: a crossed-out speaker when the output goes silent, a regular speaker when sound comes back.
- Charger: the battery icon when you plug in (yellow) or unplug (white) the charger.
- Low battery: the battery icon, pulsing, for as long as the battery is low (≤ 25%, white; ≤ 10%, orange-red) and discharging.
Simultaneous notices stack in the same pill, in status order (network · mute · battery); repeating one restarts
its timer. While status is visible (show status or pinned) there are no notices, since it already contains
everything.
- Network: white wifi icon with internet access; orange with a local network but no way out; crossed out in
orange-red with no default route. Checks
/proc/net/routeevery 5 s and, if there is a route, tries a TCP connection to1.1.1.1:443(Cloudflare) every 30 s, without sending any data. - CPU and RAM: usage percentage read from
/proc/statand/proc/meminfoevery 3 s. - Mute: crossed-out speaker only when the default audio output is muted or at 0%. Uses
pactl(PipeWire or PulseAudio) and updates instantly throughpactl subscribe. - Battery:
/sys/class/power_supply/BAT*every 10 s. White normally, pulsing when low, pulsing orange-red when critical, yellow while charging. Omitted when there is no battery.
hidebar toggle clock opens the current month under the clock, with today highlighted. ‹ › or the ←/→ arrow
keys change month; clicking the title or pressing Home goes back to the current month. Close it with Esc,
another toggle clock, or by clicking another window. Together with the status panel it is the only part of the
overlay that takes keyboard input; those two and the notification cards are the only parts that take the cursor.
hidebar toggle status opens a panel under the status pill: CPU and RAM with usage bars, battery, network and
audio, plus Log out and Power off buttons. Both actions need a second click within 3 s: the first one
turns the button orange and shows "Click again…"; moving the cursor away, Esc or waiting disarms it. Close the
panel with Esc, another toggle status, or by clicking another window. While it is open the status pill stays
pinned.
- Power off runs
systemctl poweroffon Linux andshutdown /s /t 0on Windows. - Log out asks the compositor to quit:
hyprctl dispatch exit(Hyprland) orniri msg action quit --skip-confirmation(Niri); on Windows it runsshutdown /l.
hidebar is a notification server (org.freedesktop.Notifications): apps and notify-send show their
notifications as cards under the right end of the strip. Each card has the app name and how long ago it arrived,
the title, up to two lines of body text, the app's image (a file or raw pixels) and its action buttons. Cards
stretch down like the panels and fold back when done.
- Up to three cards at once, critical ones first; the rest wait behind a "N more notifications" pill, and clicking it shows up to six.
- Normal ones stay 5 s and low-urgency ones 3 s, unless the app sets its own time; a thin line along the bottom shows the time left. Critical ones (orange) and those sent with a timeout of 0 stay until closed.
- Clicking a card runs the app's default action, if it has one, and closes it; the buttons run the other actions; the × that shows under the cursor just closes it. With the cursor over a card, it does not expire.
- Notifications with a progress value (
-h int:value:64) show a progress bar. - The
statuspill shows a bell with the number of open notifications. - Only one program can own the name: stop any other notification daemon (dunst, mako, swaync...). If the name is taken, hidebar prints a warning and runs without notifications.
The interface (dates, CLI messages) is in English.
- Hyprland or Niri (uses
wlr-layer-shell; workspaces come from the compositor's IPC). - Rust 1.88 or later (2024 edition).
- Optional:
pactlfor the mute icon and audio notices. - A D-Bus session bus for desktop notifications, with no other notification daemon running.
- Vulkan drivers for your GPU (e.g.
vulkan-radeon,vulkan-intel,nvidia-utils). The daemon uses Vulkan by default, which keeps memory low (~120 MB RSS instead of ~275 MB when GL/EGL loads every installed driver). SetWGPU_BACKEND=glto override it.
- Windows 11 on x64.
- To build: Rust 1.88+ with the MSVC toolchain and Visual Studio Build Tools (workload "Desktop development with C++", which includes the Windows SDK).
- Nothing else at runtime: no GPU, no drivers, no admin. The overlay is rendered with
tiny-skiaon the CPU and presented withUpdateLayeredWindow; it uses ~20 MB RSS and no wgpu/Vulkan/DX12.
git clone https://github.com/darilrt/hidebar-vc.git hidebar
cd hidebar
cargo install --path . --locked --root ~/.local- Builds in release mode and puts the binary at
~/.local/bin/hidebar. --lockedis required: it uses the exact versions inCargo.lock. Without it, cargo picks a newerwinit-corethat one dependency (iced_exdevtools) fails to build against.--root ~/.localis optional; without it the binary goes to~/.cargo/bin.
To update, run the same command again and restart the daemon. To uninstall:
cargo uninstall hidebar --root ~/.local.
cargo build --release
.\target\release\hidebar.exe daemonThe binary is target\release\hidebar.exe (or
target\x86_64-pc-windows-msvc\release\hidebar.exe if you pass --target explicitly).
--locked is recommended here too.
To start it at login (current user, no admin):
.\hidebar.exe install
.\hidebar.exe uninstallinstall writes a single value under
HKCU\Software\Microsoft\Windows\CurrentVersion\Run. When the daemon owns its own console
(started by the Run key or a shortcut) it hides it; set HIDEBAR_FOREGROUND=1 to keep it
visible for debugging. The daemon logs to %LOCALAPPDATA%\hidebar\hidebar.log (rotated at 1 MB).
hidebar daemon start the daemon
hidebar show <module> show the module for a few seconds
hidebar toggle <module> depends on the module:
workspaces → pin / unpin (stays visible until the next toggle)
clock → open / close the calendar
status → open / close the status panel
hidebar show all all three modules for a few seconds
hidebar toggle all if anything is pinned, unpin everything; otherwise pin all three
hidebar quit stop the daemon
A pinned module never hides on its own and is not affected by automatic appearances.
The client talks to the daemon over a Unix socket at $XDG_RUNTIME_DIR/hidebar.sock on Linux and
over a named pipe (hidebar-<username>) on Windows, then exits immediately. If the daemon is not
running, it says so and exits with an error.
The same strip, calendar and status panel, without a compositor: layered Win32 windows rendered with
iced_tiny_skia and presented with UpdateLayeredWindow.
The gaps between pills are fully
transparent and click-through, the strip is always on top, does not appear in the taskbar or
Alt+Tab, never steals focus, and hides itself while a game or presentation is fullscreen.
Global hotkeys (registered with RegisterHotKey):
| Keys | Action |
|---|---|
Ctrl+Alt+Win+T / B / W / A |
show clock / status / workspaces / all |
Ctrl+Alt+Win+1 / 2 / 3 / 4 |
toggle clock (calendar) / status (panel) / workspaces / all |
They deliberately avoid Ctrl+Shift+T/W/B (reopen tab, close window, bookmarks bar) and are not
AltGr combinations, so they do not block typing. Stop the daemon with hidebar quit. Set
HIDEBAR_NO_HOTKEYS=1 to disable all hotkeys without recompiling, or edit
src/platform/windows/hotkeys.rs and rebuild to change the defaults.
Notes:
workspacesis Linux-only for now: Windows has no equivalent compositor IPC, soshow workspacesdoes nothing.- The calendar and the status panel open with
hidebar toggle clock/toggle statusorCtrl+Alt+Win+1/2, and close when they lose focus (clicking another window), by design. When opened from a terminal, Windows may not give them keyboard focus (foreground-lock rules); click them or use the hotkey, which does focus them. - v1 draws on the primary monitor only.
- There is no GPU dependency; idle RSS is ~20 MB and measurements are done with
GetSystemTimes,GlobalMemoryStatusEx,GetSystemPowerStatus,GetAdaptersAddressesand Core Audio (IAudioEndpointVolume). Mute is polled every ~2 s (the default endpoint is re-enumerated every 10 s), so the mute icon/notice can take up to 2 s. - The daemon uses a named pipe (
hidebar-<username>);HIDEBAR_SOCKEToverrides it with another name (not a filesystem path).hidebar install/uninstallmanage the per-user autostart.
In ~/.config/hypr/hyprland.conf:
# Full path: Hyprland's PATH may not include ~/.local/bin or ~/.cargo/bin.
$hidebar = ~/.local/bin/hidebar
exec-once = $hidebar daemon
# Ctrl+Shift = peek; Ctrl+Shift+Alt = toggle.
bind = CTRL SHIFT, T, exec, $hidebar show clock
bind = CTRL SHIFT ALT, T, exec, $hidebar toggle clock # calendar
bind = CTRL SHIFT, B, exec, $hidebar show status
bind = CTRL SHIFT ALT, B, exec, $hidebar toggle status # status panel
bind = CTRL SHIFT, W, exec, $hidebar show workspaces # optional: they appear on their own when switching
bind = CTRL SHIFT ALT, W, exec, $hidebar toggle workspaces
bind = CTRL SHIFT, A, exec, $hidebar show all
bind = CTRL SHIFT ALT, A, exec, $hidebar toggle allTo apply without logging out: hyprctl reload and, the first time, start the daemon from Hyprland (so it does not
depend on your terminal; exec-once only runs at login):
hyprctl dispatch exec ~/.local/bin/hidebar daemonNote: a Hyprland bind takes priority over applications. With these bindings, Ctrl+Shift+T, W, B and A no
longer reach your browser (reopen tab, close window, bookmarks bar, add-ons). If you use them, pick other keys.
Desktop notifications need no binding, but remove any other notification daemon from your config (for example an
exec-once = dunst or mako line) and stop it, so hidebar can take the name.
Restart the daemon after updating the binary:
pkill -x hidebar; hyprctl dispatch exec ~/.local/bin/hidebar daemonIn ~/.config/niri/config.kdl, add a startup and binds (adjust the path):
spawn-at-startup "~/.local/bin/hidebar" "daemon"
binds {
Ctrl+Shift+T { spawn "~/.local/bin/hidebar" "show" "clock"; }
Ctrl+Shift+Alt+T { spawn "~/.local/bin/hidebar" "toggle" "clock"; }
Ctrl+Shift+B { spawn "~/.local/bin/hidebar" "show" "status"; }
Ctrl+Shift+Alt+B { spawn "~/.local/bin/hidebar" "toggle" "status"; }
Ctrl+Shift+W { spawn "~/.local/bin/hidebar" "show" "workspaces"; }
Ctrl+Shift+Alt+W { spawn "~/.local/bin/hidebar" "toggle" "workspaces"; }
Ctrl+Shift+A { spawn "~/.local/bin/hidebar" "show" "all"; }
Ctrl+Shift+Alt+A { spawn "~/.local/bin/hidebar" "toggle" "all"; }
}Restart the daemon after updating the binary with pkill -x hidebar and start it again from Niri.
# Linux / WSL
cargo fmt --check
cargo clippy --all-targets --locked -- -D warnings
cargo test --locked
cargo test --locked -- --ignored # real Hyprland/Niri, battery, /proc, audio and network
# Windows 11 (MSVC)
cargo test --target x86_64-pc-windows-msvc
cargo clippy --target x86_64-pc-windows-msvc --all-targets -- -D warnings
cargo build --release --target x86_64-pc-windows-msvcUseful environment variables:
-
HIDEBAR_SOCKET: a different IPC name, to run a development daemon next to your usual one. On Linux it is a Unix socket path (keep it short; ~100 characters max); on Windows it is a named-pipe name, not a filesystem path. Set it for the client too:export HIDEBAR_SOCKET=$XDG_RUNTIME_DIR/hidebar-dev.sock ./target/debug/hidebar daemon & ./target/debug/hidebar show all
-
HIDEBAR_BATTERY_PATH(Linux): a directory withcapacity(e.g.8) andstatus(e.g.Discharging) files, to simulate battery levels without waiting for it to drain. -
HIDEBAR_FOREGROUND(Windows): keep the console visible even when the daemon owns it (useful when started by the Run key or a shortcut). -
HIDEBAR_NO_HOTKEYS(Windows): disable all global hotkeys without recompiling. -
WGPU_BACKEND(Linux): graphics backend for wgpu. The daemon sets it tovulkanwhen it is unset; any explicit value (e.g.gl) is respected. Windows does not use wgpu.
Layout:
src/main.rs CLI and platform dispatch
src/command.rs command parsing and formatting
src/state.rs platform-independent state machine and tests
src/ui/mod.rs Surface/Message and shared view entry point
src/ui/view.rs pills, notices, calendar and status panel drawing
src/calendar.rs Spanish dates and month grid
src/event.rs events emitted by the sources
src/platform/mod.rs Linux/Windows selection
src/platform/linux/ layer-shell shell + Hyprland/Niri/proc/pactl sources
session.rs log out / power off from the status panel
src/platform/windows/ Win32 layered shell + native sources
render.rs iced tiny-skia -> Pixmap -> DIB -> UpdateLayeredWindow
mod.rs message loop, timers, hotkeys, calendar and panel input
session.rs log out / power off from the status panel
battery.rs system.rs native metrics
network.rs audio.rs native sources
fullscreen.rs QUNS-based auto-hide
ipc.rs hotkeys.rs named pipe and global shortcuts
startup.rs logging.rs HKCU autostart and rotating log
assets/icons/ custom SVG icons, embedded in the binary
MIT.

