akashvani आकाशवाणी
a Vyom tool

akashvani

आकाशवाणी · “voice from the sky”

Notifications (mako): what's on screen with its actions, each app's history stacked with times, a full preview, do not disturb for a while.

पथि प्रग्रहिणं कंसमाभाष्याहाशरीरवाक् ।
अस्यास्त्वामष्टमो गर्भो हन्ता यां वहसेऽबुध ॥

On the road, a bodiless voice spoke to Kamsa, who held the reins. Bhāgavata Purāṇa 10.1.34
v0.7.0 latest11 releases6 decisions recordedMIT license

akashvani: an urgent battery notification on screen with a red Urgent chip, each app's notifications stacked with a count and a time, the preview with numbered action buttons, Copy and a red Dismiss; do not disturb with a duration in the header

akashvani's popups: a chat message with the sender's picture and Reply / Mark as read buttons, a finished download with Open and Show in folder, an urgent battery warning framed in red, and a volume bar

Screenshots use made-up demo notifications.

Akashvani (आकाशवाणी) is Sanskrit for "voice from the sky": the notices your apps send you.

akashvani is the notification system for Vyom desktops. It is the notification server (it replaces mako or dunst): apps send it notifications over the standard freedesktop D-Bus interface, and it draws them as glass cards in your theme's colours, keeps a history with times, holds them during do not disturb, and gives you one keyboard-driven panel for everything. It runs inside the Vyom daemon that's already resident, so it adds no process of its own. It runs on any compositor with the layer-shell protocol (sway, Hyprland, river, niri, Wayfire, labwc…). In Vayu, the desktop it was built for, it replaced mako.

 apps (Firefox, Slack, notify-send, scripts)
          │  org.freedesktop.Notifications  (D-Bus, the freedesktop spec)
          ▼
 ╭─ Vyom daemon (one resident GTK 4 process) ──────────────────────────╮
 │  akashvani server ── rules ── modes (do not disturb, silent)        │
 │     │      │                                                        │
 │     │      ╰── history (with times, saved) ──╮                      │
 │     ▼                                        ▼                      │
 │  popups (layer-shell, glass cards)     the panel (vyom akashvani)   │
 ╰──────────────▲──────────────────────────────────────────────────────╯
                │  dev.vayu.Akashvani (D-Bus)
        `akashvani` command (scripts, bars, keys)

#Features

The popups

The server

The panel (vyom akashvani)

#Install

#Requirements

#Install

git clone https://github.com/Theyashsawarkar/akashvani ~/.local/share/vyom/plugins/akashvani
ln -s ~/.local/share/vyom/plugins/akashvani/bin/akashvani ~/.local/bin/akashvani   # the command
vyom reload           # pick it up (or log out and in)
vyom akashvani        # open the panel; run it again to close

With kosha: kosha install akashvani does all of it.

Make it your notification server. Only one program can be, so stop the old one (mako, dunst, swaync) and remove it from your compositor's startup:

systemctl --user disable --now mako.service   # or: pkill mako; pkill dunst
akashvani doctor                               # ✓ akashvani serves notifications

akashvani waits in line while another daemon holds the name and takes over the moment it exits; until then the panel reads mako through makoctl, as before.

Start it on the first notification. If an app sends a notification before Vyom has started, D-Bus starts whichever daemon claims the name, which may be mako. This file makes it start Vyom instead:

mkdir -p ~/.local/share/dbus-1/services
cp ~/.local/share/vyom/plugins/akashvani/dbus/org.freedesktop.Notifications.service ~/.local/share/dbus-1/services/

Give the panel a key in your compositor, e.g. sway:

bindsym $mod+<key> exec vyom akashvani

#Update and uninstall

git -C ~/.local/share/vyom/plugins/akashvani pull && vyom reload     # update
rm -rf ~/.local/share/vyom/plugins/akashvani && vyom reload          # uninstall (start mako again)

#Usage

Open it with vyom akashvani (or your key). It opens in normal mode, so stray typing changes nothing: every key is a command and Space is the leader (a strip shows what comes next); / searches. The footer always shows the keys for what's selected.

Vyom's keys work too (every vim tool has them): ? and Space ? list every key, Space Space is the palette, j / k move, gg / G jump, / searches again, H / L switch tabs, q closes, Space u f is fullscreen, Esc steps back.

Normal mode (akashvani opens in it)

KeyAction
EnterRun the notification's default action (or open an app's stack, or copy it)
hFold the app's stack
lOpen the app's stack
d dDismiss the on-screen notification (it stays in the history)
uBring back the last dismissed notification
y yCopy the notification's text

Both modes

KeyAction
Alt+1..9Run that numbered action of the notification
Ctrl+NCycle do not disturb (off, 1 hour, till tomorrow, till you turn it off)

Leader (Space)

KeyAction
Space x 1..9Run that numbered action of the notification
Space n nCycle do not disturb (off, 1 hour, till tomorrow, till you turn it off)
Space n oTurn do not disturb off
Space n hTurn do not disturb on for an hour
Space n tTurn do not disturb on till tomorrow morning
Space n aTurn do not disturb on till you turn it off
Space d dDismiss the on-screen notification
Space d aDismiss every notification on screen (asks first)
Space f lShow only what's on screen now
Space f hShow only the history
Space f aShow only the selected notification's app
Space f cClear the filter (show everything)
Space y yCopy the notification's text
Space y bCopy the notification's body only

#The command

akashvani controls the server from a shell, a bar or a key. Its commands and JSON are makoctl's, so a script written for mako works with makoctl changed to akashvani; while mako still holds the name, akashvani passes every command to makoctl.

CommandWhat it does
akashvani list [-j]What's on screen now (held ones too), newest first
akashvani history [-j]Closed ones, newest first; --clear empties it
akashvani countHow many are in the history
akashvani dismiss [-n ID | -a]Dismiss the newest, that one, or all
akashvani restoreBring back the last one you dismissed
akashvani invoke [-n ID] [ACTION]Run an action (default without one)
akashvani menu [-n ID] PROG [ARGS]Pick an action with a picker (akashvani menu vyom dmenu -p Action)
akashvani mode [-s M… | -a M | -r M | -t M]Show, set, add, remove or toggle modes (dnd, silent, yours)
akashvani key KEYAct on the focused popup: enter (its main action; answers a call), 1 2 3 (its buttons), dismiss (declines a call), next (focus the next card), dismiss-all
akashvani status [-j]On screen, held, history, modes
akashvani reloadRe-read the popups' settings
akashvani doctorIs akashvani the server? What's missing?

The JSON has makoctl's keys (id, app_name, app_icon, summary, body, urgency, actions, category, desktop_entry) plus t (when it arrived), held, value and image_path. Bars can listen for the spec's NotificationClosed signal, and for dev.vayu.Akashvani.Changed (modes).

#Configuration

Everything is optional, in ~/.config/vyom/config.toml under [plugin.akashvani]; run vyom reload after editing.

The popups

SettingDefaultWhat it does
positiontop-righttop-right, top-left, top-center, bottom-right, bottom-left, bottom-center or center
margin_x / margin_y16 / 12Distance from the screen's edges (px)
osd_position(none)Where sliders go (a value hint or a sync tag: volume, brightness), when they should sit apart from the rest, e.g. notifications top-center under the bar's clock and sliders top-right. Any other setting can be given again with osd_ for the sliders alone (osd_width, osd_margin_x, osd_max_visible…)
width400A card's width (px)
gap10Between cards (px)
max_visible3Cards at once; the rest wait behind "N more waiting" (calls and urgent ones never wait)
grouptrueSeveral from one app share one card: the newest in full, older ones as a line each
group_lines1(one line now: the newest older one, "and N more")
keystrueThe newest card has the focus, and akashvani key acts on it
copy_codestrueA one-time code in a notification (OTP, login code) gets a Copy code button
call_timeout120000ms a call card stays if the phone never says the call ended
calls_in_dndtrueA phone call (ekatva) rings through do not disturb
dnd_summarytrueWhen do not disturb ends, one card says what came in, instead of each one
body_lines2Lines of body before "…" (the title is one line; every card is one height)
max_actions3Action buttons on a card
show_time / show_actionstrueParts of a card you can turn off
animationslideslide, fade or none
animation_ms220How long it takes
layertoptop (over windows, under Vyom's panels) or overlay (over fullscreen windows too)

Timing, sound, history

SettingDefaultWhat it does
timeout5000ms a normal one stays (when the app doesn't say)
timeout_low3000ms for low urgency
timeout_critical0ms for urgent ones (0: till you dismiss it)
timeout_actions8000At least this long when it has actions
ignore_timeoutfalseIgnore how long the app asks for
timeout_missed10000ms a missed call stays on screen (it stays in the panel); 0: till you dismiss it
sound(none)A sound file played for every notification (not in silent or dnd)
sound_command(pw-play, paplay, aplay)Plays it: the file is added at the end
history_max200Notifications kept in the history
history_syncfalseKeep volume / brightness sliders in the history too
dnd_morning08:00When "till tomorrow" ends
servertruefalse: don't serve notifications, only the panel over another daemon (makoctl)

Over another daemon (server = false, or while mako still runs), dnd_status, dnd_on_when, dnd_on and dnd_off are the commands the panel uses for do not disturb (default: makoctl's modes).

#Rules

Rules change what happens to some notifications. Each [[plugin.akashvani.rules]] has match keys (all must fit) and what to do; every matching rule applies, in order, a later one winning.

MatchFits when
app, summary, body, category, desktop_entryThe regex is found in it (case doesn't matter)
urgencylow, normal or critical
modeThat mode is on (dnd, silent, yours)
actionableIt has actions (true / false)
syncIt's a slider that changes in place (volume, brightness)
DoWhat
timeoutms it stays (0: till you dismiss it)
hiddenNo popup (it's held: in the panel and the history)
ignoreDrop it entirely
soundA sound file, or false for none
historyfalse: keep it out of the history; true: keep it even if transient
urgencyTreat it as low, normal or critical
show_in_dndShow it even in do not disturb
colorTint its card: red, peach, yellow, green, teal, sky, blue, mauve, pink, lavender
classExtra CSS classes for its card (your own styles)
[[plugin.akashvani.rules]]     # the battery warning stays till you deal with it
app = "batsignal"
timeout = 0

[[plugin.akashvani.rules]]     # chat in green, and never in the history
app = "Slack|Telegram"
color = "green"
history = false

[[plugin.akashvani.rules]]     # your phone's calls break through do not disturb
category = "call"
show_in_dnd = true

#Kinds of card

KindWhenLooks
NormalAnythingThe app's small icon, name and time on a quiet line; the title; the body (paths, branches, code set in mono); buttons with their keys; a hairline at the bottom for time left
Urgenturgency criticalA red rail and a red tag in words; no timer: it waits for you; never waits behind others
SharedSeveral from one appOne card: the newest in full, a line for each older one, a count
SliderA value hint with a sync tag (volume, brightness)One slim line: icon, bar, number (at osd_position when set)
Callekatva: a phone ringingThe caller's picture or initials with a pulsing green ring, their number partly hidden, Decline and Answer; on top, till the call is handled
Missed call, text, phone appekatva"Missed call on Pixel 8", the sender's initials, "WhatsApp on Pixel 8" for the phone's own apps; a one-time code gets Copy code

ekatva tags its notifications (x-ekatva-kind call / missed / sms / phone, -device, -contact, -number, -app); from older ekatva, akashvani reads its titles ("Incoming call: …").

#Styling

The popups are GTK 4 widgets styled by style.css in this repo, in your theme's colours (Vyom's @crust, @text, @accent, @red…, so a light theme makes light cards). With varna, the theme also sets the popups' glass, fonts and corner radius (its vyom.css). Anything in ~/.config/vyom/style.css overrides both:

ClassIs
window.akashvani-toastsThe popups' window (transparent)
.akv-cardA card; also .u-low / .u-normal / .u-critical / .u-call, .k-<kind>, .focus (the keys act on it), .untimed, .app-<name> (e.g. .app-firefox), .tint-<colour>, a rule's class
.akv-meta: .akv-app, .akv-via, .akv-tag (.red / .green / .yellow), .akv-count, .akv-timeThe quiet line
.akv-summary, .akv-body, .akv-avatar, .akv-pic, .akv-initialsThe content
.akv-olderOlder lines on a shared card
button.akv-action (.first, .answer, .decline), .akv-kc, button.akv-closeButtons, their keys, the close button (shows on hover)
progressbar.akv-timerThe time-left hairline
.akv-call, .akv-ring, .akv-caller, .akv-numberA phone call
.akv-osd (.muted), progressbar.akv-osd-bar, .akv-osd-valueA slider
button.akv-more"N more waiting" (opens the panel)
/* Firefox's cards in peach, bigger titles */
.akv-card.app-firefox { border-color: @peach; }
.akv-summary { font-size: 15px; }

On SwayFX, blur the popups with layer_effects "notifications" { blur enable; blur_ignore_transparent enable; corner_radius 12 } (the cards' radius).

#Troubleshooting

#The Vyom family

Each tool is its own repository, so you install only the ones you want:

ToolWhat it does
dvaraद्वार, gatewayThe app launcher
ganitगणित, mathematicsThe calculator and converter
smritiस्मृति, memoryClipboard history
bhavaभाव, feeling, emotionThe emoji picker
tarangतरंग, waveWi‑Fi and the hotspot
setuसेतु, bridgeBluetooth
dootदूत, messengerYour phone, through KDE Connect
patraपात्र, vesselDocker containers
akashvani (this one)आकाशवाणी, voice from the skyNotifications
ragaराग, melodyYouTube music and video
mudraमुद्रा, gestureKeybinding search
urjaऊर्जा, energyThe battery at a glance
vishramविश्राम, restThe power menu
kendraकेन्द्र, centreQuick settings

#Contributing

Bug reports, ideas and pull requests are welcome: see CONTRIBUTING.md for the development setup and the few rules every tool follows, and CHANGELOG.md for what changed in each release. Please report security issues privately (SECURITY.md).

#License

MIT.