Extensions

Put your own things on the bar, in quick settings and on the desktop: the weather, a VPN switch, how far a backup has got, anything a script or a program can find out. You say what to show, and BlueRune draws it in its own style, so it follows your accent, light and dark, high contrast, reduced motion and text size like everything else. Apps and extensions can also add their results to the launcher's search: see Results in the launcher.

There are two ways:

  • From a script, with bluerunectl ext set. BlueRune keeps the item until you remove it, even across restarts. Good for something a timer or a cron job updates.
  • From a program, over D-Bus. The item lasts as long as the program runs, and the program hears every press. Good for something that reacts at once, such as a switch.

Ready-made extensions are in the Store: see Extensions in the Store. To share your own, see Packaging an extension.

Seven examples are in examples/extensions in BlueRune's source: a weather item for the bar (a shell script), a VPN tile for quick settings (Python), a notes search for the launcher (Python), and four desktop cards: an agenda, a to-do list, the system's use and what is playing. Each is also a package in the Store; to change one, copy it instead.

To add your own commands to Files' right-click menu, such as "Convert to MP4", see Actions in Files: a small text file, no program running.

Extensions in the Store

The Store's Explore page has a row of extensions, each card saying where it shows: the bar, quick settings, the desktop, the launcher or Files. See all (or the Extensions category) lists them all. An extension's page says where it works, with its screenshots.

Install installs it for everyone on the computer, and it starts at once in each BlueRune session that is running; nothing needs copying or setting up. Its page then offers Open Settings: Settings › Extensions lists it with a switch, to turn it off for you alone, and the rest of what can be chosen for it (its bar item's side, its tile's place, its card's screen). Remove takes it away, items and all.

These are BlueRune's own, the examples above made into packages:

Package Shows
bluerune-extension-weather The temperature and the sky on the bar, from wttr.in every 15 minutes
bluerune-extension-vpn A VPN switch in quick settings, and a lock on the bar while a VPN is up
bluerune-extension-notes-search Your notes (~/Notes) in the launcher's search
bluerune-extension-agenda The week's events on the desktop, from khal or calendar files
bluerune-extension-todo A to-do list on the desktop, from ~/todo.txt
bluerune-extension-system-monitor Processor and memory use on the desktop
bluerune-extension-now-playing What is playing, with its controls, on the desktop
bluerune-extension-checksums Show SHA-256 checksums in Files' Actions
bluerune-extension-convert-to-mp4 Convert › To MP4 for videos in Files' Actions (and Dolphin's)

Some read a setting from the environment, as the examples do: BLUERUNE_WEATHER_PLACE, BLUERUNE_AGENDA_ICS, BLUERUNE_NOTES_DIR. Put it in a file of ~/.config/environment.d/, which every program of your session reads, and log in again:

# ~/.config/environment.d/weather.conf
BLUERUNE_WEATHER_PLACE=Oslo

The to-do list is always ~/todo.txt for the package; to keep it elsewhere, give its watcher the file with systemctl --user edit bluerune-extension-todo-refresh.path (PathChanged=) and set BLUERUNE_TODO_FILE the same way.

What an item can show

Field On the bar In quick settings
text Words beside the icon (on narrow screens, or when its side of the bar is too full for them, only the icon shows) The title
detail In the hover card when there's no tooltip The line under the title
icon A Material Symbols name such as rainy, or the full path of a PNG, JPEG or SVG file The same, on the pill's disc. Without one, the icon of the app whose desktop entry your id names (org.example.sync for org.example.sync.desktop), or else a puzzle piece
hue Colors the icon, ring and chart — (quick settings' toggles show only whether they are on)
progress A ring around the icon, 0 to 1 A ring around the disc
chart A small line chart of up to 60 numbers —
state — on, off, busy (pulses) or unavailable (can't be pressed; detail says why)
tooltip The hover card, under the item's name —
menu Opens with a right press Opens with the tile's chevron
label What a screen reader says (by default the name and the words) —

hue is one of blue, teal, green, yellow, orange, red, pink, purple, or a status: success, warning, danger. Use a hue to say what kind of thing it is, and a status to say whether something is good, risky or wrong (a dropped VPN is warning). Colors by value, such as #ff0000, aren't accepted: the theme picks the actual color, so it always reads well.

A menu is a list of entries. One with an action is a button (with "checked": true or false, a check box); one without is a line of text; {"separator": true} is a line between groups:

[
  { "label": "Refresh", "action": "refresh" },
  { "label": "Metric units", "action": "metric", "checked": true },
  { "separator": true },
  { "label": "Updated at 14:05" }
]

From a script: bluerunectl ext

bluerunectl ext set weather --name Weather --icon partly_cloudy_day --text 12° \
    --tooltip "Partly cloudy, feels like 9°" --on-click 'xdg-open https://wttr.in'

The item appears on the bar right away. Run the same command again with new values to change it; flags you leave out are left empty (the name and the command are kept). Every flag:

Flag Sets
--slot bar, --slot quick or --slot desktop Where: the bar (the default), quick settings or a card on the desktop
--title <words> A desktop card's heading
--name <name> The item's name, for its hover card and screen readers (the id until you set one)
--text, --detail, --icon, --hue, --state, --tooltip, --label The fields above
--progress <n> 0.4 or 40%
--menu <label>=<action> A menu entry; repeat it for more. --menu - is a separator, a label without = a line of text
--content <json> The whole content as JSON, such as a chart; flags win over it
--on-click <command> Run with sh -c when the item is used

The command runs on every press, wheel turn, toggle and menu choice, with these set:

Variable Value
BLUERUNE_EXTENSION The item's id
BLUERUNE_SLOT bar or quick
BLUERUNE_ACTION activate, secondary (middle press), scroll, toggle or menu
BLUERUNE_VALUE For scroll, up, down, left or right; for toggle, the state asked for (on or off); for menu, the entry's action

A press while the last press's command is still running does nothing, so a slow command isn't started many times. After a toggle, the tile pulses until you set it again, for up to 5 seconds; set its --state from the command once you know what happened.

bluerunectl ext list                       # what is on the desk, and who keeps it
bluerunectl ext remove weather             # take it away
bluerunectl ext remove vpn --slot quick    # take away only the tile

Kept items are saved in ~/.local/state/bluerune/extensions.json.

From a program: D-Bus

BlueRune answers on the session bus:

  • Bus name org.bluerune.Shell1
  • Object /org/bluerune/Extensions
  • Interface org.bluerune.Extensions1
Method Does
Register(s id, s name, u protocol) → u Claims id for your program, named name. Pass 2 for protocol (1 if you don't use the desktop); the answer is the revision BlueRune holds you to
Update(s id, s slot, s content) Shows content, a JSON object as above, in slot (bar, quick or desktop), replacing what was there
Remove(s id, s slot) Empties a slot
Unregister(s id) Gives the id up

BlueRune tells your program what the user did with the signal Activated(s id, s slot, s action, s value), with the actions and values in the table above. It is sent to your connection alone.

Try it from a terminal (the item goes as soon as busctl exits, which is the point: see below):

busctl --user introspect org.bluerune.Shell1 /org/bluerune/Extensions

A whole extension in Python with GLib's D-Bus, which most desktops have:

import json
from gi.repository import Gio, GLib

bus = Gio.bus_get_sync(Gio.BusType.SESSION)
def call(method, args):
    return bus.call_sync("org.bluerune.Shell1", "/org/bluerune/Extensions",
                         "org.bluerune.Extensions1", method, args, None,
                         Gio.DBusCallFlags.NONE, 5000, None)

call("Register", GLib.Variant("(ssu)", ("hello", "Hello", 1)))
call("Update", GLib.Variant("(sss)", ("hello", "bar", json.dumps({"icon": "waving_hand", "text": "Hi"}))))

def activated(conn, sender, path, iface, signal, args):
    ident, slot, action, value = args.unpack()
    print("the user did", action, value)

bus.signal_subscribe("org.bluerune.Shell1", "org.bluerune.Extensions1", "Activated",
                     "/org/bluerune/Extensions", None, Gio.DBusSignalFlags.NONE, activated)
GLib.MainLoop().run()

How long an item lasts

Your item stays while your program is connected and responsive:

  • When your program exits, crashes or is killed, its items go at once.
  • BlueRune pings each extension every 30 seconds. One that doesn't answer within 5 seconds (it is stuck) has its items hidden, and Settings › Extensions says it is not responding. BlueRune keeps pinging it; once it answers again, its items come back as they were. Your D-Bus library answers pings by itself as long as its main loop runs: GLib, libdbus, sd-bus and zbus all do.
  • When BlueRune restarts, every extension is dropped. Watch for org.bluerune.Shell1 getting an owner (NameOwnerChanged) and register again; the VPN example below shows how.
  • A call that answers org.bluerune.Extensions1.Error.NotRegistered means you were dropped: register again.

Limits

So that one extension can't slow BlueRune down or crowd out the others:

  • An id is 1 to 48 of a–z, 0–9, ., _ and -. Use something like weather or org.example.sync.
  • Content is at most 8 KiB. text is at most 64 characters, detail and label 120, tooltip 400, on one line except the tooltip. A menu has at most 12 entries.
  • At most 32 extensions, and 8 from one program.
  • At most 10 updates a second for each id, after a burst of 20. Update when something changes, not on a timer faster than people can read.

Anything else is refused with an error that says what is wrong: org.bluerune.Extensions1.Error.Invalid ("hue "magenta" is not one of the theme's…"), Taken, TooMany, TooFast or Unsupported.

Newer versions of BlueRune

Content your program sends keeps working on newer versions of BlueRune. A newer version may read more fields; an older one ignores fields it doesn't know, so you can send them anyway. A value it doesn't know, such as a hue added later, is refused, so check the revision Register answers before you use something it added.

Where the item goes on the bar

A new item appears just before the tray. To put it somewhere else, name it ext:<id> in the bar's layout in Settings › Bar, or with bluerunectl:

bluerunectl settings set bar.layout.center_right 'ext:weather,clock,utilities,battery'

Tiles appear in quick settings after the built-in toggles, in the order their extensions started, unless Settings › Extensions has put them in another order.

Turning extensions off: Settings › Extensions

Settings › Extensions lists everything that adds to BlueRune: programs on the bus and items bluerunectl keeps (with their bar items, tiles and desktop cards), the launcher's search providers, and Files' actions. Each line says whether it is running, not responding, or not running, and where it shows, and has a switch. An extension turned off keeps running and is answered as usual, but nothing it sends is drawn until it is turned on again. Under an extension that is on, choose its bar item's side and move it along that side, move its tile earlier or later among the extensions' tiles, and choose which screen its desktop card is on; an item bluerunectl keeps has Remove. The preview at the top shows the desktop with what is on. What the page turns off is kept in ~/.config/bluerune/extensions.toml (its format is in docs/design/extensions.md, "Turning extensions off"); a program can read the whole list with List() on org.bluerune.Extensions1 (protocol revision 3):

busctl --user call org.bluerune.Shell1 /org/bluerune/Extensions org.bluerune.Extensions1 List

Actions in Files

Files' right-click menu has an Actions submenu with what other programs add: KDE's service menus, the ones Dolphin shows, work as they are, and you can write your own in the same format. An action runs only when you choose it.

Put a .desktop file in one of these folders (or the same folder under /usr/share for everyone):

Folder For
~/.local/share/bluerune/file-actions BlueRune's own
~/.local/share/kio/servicemenus KDE service menus (KDE Frameworks 6)
~/.local/share/kservices5/ServiceMenus Older KDE service menus (KDE Frameworks 5)

KDE only trusts a service menu in your own folder when it is executable, and so does Files: chmod +x it. BlueRune's own folder doesn't ask for that. Files notices a new or changed file the next time you open the menu.

The simplest file is one action:

[Desktop Entry]
Name=Show SHA-256 checksums
Icon=document-properties
MimeType=all/allfiles;
Terminal=true
Exec=sh -c 'sha256sum -- "$@"; printf "\\nPress Enter to close. "; read -r _' sh %F

A file with several actions lists them in Actions and describes each in a group of its own, as KDE's do:

[Desktop Entry]
Type=Service
MimeType=video/*;
Actions=mp4;webm;
X-KDE-Submenu=Convert
TryExec=ffmpeg

[Desktop Action mp4]
Name=To MP4
Icon=video-x-generic
Exec=sh -c 'for f; do ffmpeg -nostdin -n -i "$f" "${f%%.*}.mp4"; done' sh %F

[Desktop Action webm]
Name=To WebM
Icon=video-x-generic
Exec=sh -c 'for f; do ffmpeg -nostdin -n -i "$f" "${f%%.*}.webm"; done' sh %F
Key Says
Name, Icon What the menu shows: the words and an icon from your icon theme (or a picture's full path)
MimeType Which files it is for, ; after each: a type (image/png), every type under one (image/*), folders (inode/directory), every file (all/allfiles) or anything (all/all). A type also takes the types that are kinds of it: text/plain takes source code
ExcludeServiceTypes Types it isn't for, even under a wildcard
X-KDE-RequiredNumberOfUrls How many files at once: 1, or a list such as 1,2. X-KDE-MinNumberOfUrls and X-KDE-MaxNumberOfUrls set a range
X-KDE-Submenu A heading to gather the file's actions under in Actions
X-KDE-Priority=TopLevel Put the actions in the menu itself rather than in Actions
TryExec A program that must be installed for the actions to show
Terminal=true Run in a terminal, to see what it prints
Exec The command. %f is a file (the command runs once per file), %F every file, %u and %U the same as links, %% a percent sign

Every file you pick must fit. With nothing picked, a press on a folder's empty space offers the actions for that folder. The command runs in the folder of the first file, without a shell, as an app does from the launcher.

A file's name is always passed as it is. The safe way to use one in a shell command is as an argument of the script, sh -c '... "$1"' sh %f (or "$@" with %F), as above. If you put %f inside the script itself (sh -c "ffmpeg -i %f out.mp4"), Files quotes the name for the shell there, so a file called x; rm -rf ~ is still only a name. The first form works the same in Dolphin, so it is the one to share.

Turn an action file off without deleting it in Settings › Extensions. Menus for other protocols than local files (X-KDE-Protocols) and menus shown only while a program runs (X-KDE-ShowIfRunning, X-KDE-ShowIfDBusCall) aren't shown. The file chooser shows no actions.

Both files above are in examples/extensions in BlueRune's source: checksums.desktop and convert-to-mp4.desktop (To MP4 only, with a notification when each file is done).

Results in the launcher

Apps can list their own results in the launcher as you type: an answer from a calculator, a note, a font, a character. BlueRune uses the search providers made for GNOME Shell, so the ones your apps already install work without anything to set up; Qalculate, GNOME Characters, Files (Nautilus) and Font Manager are a few. They show under From other apps, up to three from each app with the app's name beside them, and when an app found more, a last row Search app for “…” opens the app on the same search. Choosing a result opens it in its app (a calculator's answer is also copied).

  • Turn the whole category off, or move it up or down among the others, in Settings › Launcher and search › Result categories.
  • Turn one app's results off in Settings › Extensions. An app that asks to start off (DefaultDisabled=true) stays off until you turn it on there.
  • An app that is slow or stuck never holds up the launcher or the other apps' results; its rows just don't appear.

Writing a search provider

A provider is a program on the session bus that implements GNOME Shell's org.gnome.Shell.SearchProvider2. The same program works in GNOME Shell's overview and in BlueRune's launcher.

Method Does
GetInitialResultSet(as terms) → as The ids of the results for terms (what was typed, split at spaces), best first
GetSubsearchResultSet(as previous, as terms) → as The same, when the user typed on: previous is your last answer, to narrow down
GetResultMetas(as ids) → aa{sv} Each result's id, name, and optionally description, icon (a serialized GIcon, such as Gio.ThemedIcon.new("text-x-generic").serialize()), gicon (a GIcon as text) and clipboardText (copied when it is chosen)
ActivateResult(s id, as terms, u timestamp) Open the result
LaunchSearch(as terms, u timestamp) Open your app searching for terms

Tell the launcher where it is with a key file:

# ~/.local/share/gnome-shell/search-providers/org.example.Notes.ini
[Shell Search Provider]
DesktopId=org.example.Notes.desktop
BusName=org.example.Notes
ObjectPath=/org/example/Notes
Version=2
  • DesktopId names your app's desktop entry, which gives the results their name and icon. A provider whose app isn't installed is left out, as GNOME Shell leaves it out.
  • With no app of its own, put the file in ~/.local/share/bluerune/search-providers/ and give Name= and Icon= (an icon name or a full path) instead of DesktopId. Only BlueRune reads that folder.
  • Add DefaultDisabled=true for a provider people should turn on themselves.
  • Install a D-Bus service file too, so the bus starts your program when a search needs it.

Answer quickly: BlueRune asks once typing pauses and waits at most 5 seconds (time for the bus to start your program) before giving up on that search. Names longer than 120 characters and descriptions longer than 200 are cut, and only the first three results are described.

Notes search in the launcher (Python)

examples/extensions/notes-search lists the notes in ~/Notes (or BLUERUNE_NOTES_DIR) that have every word you type, .md, .txt and .org files, with the line the words are on; choosing one opens it. It comes with a key file and an app entry (Notes, which opens the folder), so it works in GNOME Shell too, and the bus starts it when it's needed. The Store has it as bluerune-extension-notes-search; to install your own copy instead, it needs Python's GLib bindings (python-gobject on Arch):

cd examples/extensions/notes-search
install -Dm 755 bluerune-notes-search ~/.local/bin/bluerune-notes-search
install -Dm 644 org.bluerune.NotesSearch.ini -t ~/.local/share/gnome-shell/search-providers/
install -Dm 644 org.bluerune.NotesSearch.desktop -t ~/.local/share/applications/
mkdir -p ~/.local/share/dbus-1/services
printf '[D-BUS Service]\nName=org.bluerune.NotesSearch\nExec=%s\n' ~/.local/bin/bluerune-notes-search \
    > ~/.local/share/dbus-1/services/org.bluerune.NotesSearch.service

It leaves after five idle minutes and starts again on the next search.

Cards on the desktop

The desktop slot (protocol revision 2) puts a card on the desktop, over the wallpaper and its clock and under your windows. Windows cover it as they cover the wallpaper; it doesn't hide or move for them. Besides text (one large line), detail, icon, hue, progress (a bar), chart (drawn across the card), menu and label, a card takes:

Field Shows
title The heading, beside the icon; without one, your extension's name
list Up to 8 rows, each {"text": …} with any of detail (at the row's far end), icon, hue, progress (a thin bar), checked (true or false: a check box) and action (the row can be pressed)
buttons Up to 4 buttons along the foot, each {"label": …, "action": …}, with an icon to show instead of the label (which is still read aloud)
{
  "title": "Groceries", "icon": "checklist", "hue": "green", "detail": "2 left of 3",
  "list": [
    { "text": "Milk", "checked": false, "action": "milk" },
    { "text": "Bread", "checked": true, "action": "bread" }
  ],
  "buttons": [{ "label": "Clear done", "action": "clear" }]
}

A press on the card sends activate; on a button, button with its action; on a row with an action, item with its action. A check box doesn't tick itself: tick it by sending the row again with "checked": true. The card is as tall as what it holds and between 240 and 360 points wide.

Where it goes. A new card goes down the right side of the first monitor, under the bar, and never covers the desktop clock: when the clock is where a card would go, the card makes way. To move cards, choose Arrange the desktop cards at the end of any card's right-press menu (or run bluerunectl ext arrange), drag them where you want them, and press Done or the desktop. With more than one monitor, each card has a button to send it to the next. From a script:

bluerunectl ext place todo --output DP-1 --at 40,120   # points from the monitor's top-left

Where you put each card is remembered for each monitor, in ~/.local/state/bluerune/desktop-cards.json, so it comes back there after a restart.

Packaging an extension

To share an extension, package it for pacman and name the package bluerune-extension-<name>, such as bluerune-extension-weather. BlueRune's own packages, in dist/arch/extra/bluerune-extension-* in its source, are worked examples of each kind. Install everything for every user, under /usr, so nobody has to copy a file:

What Where
Your program or script /usr/lib/bluerune/extensions/<name>/
A user unit that runs it in each BlueRune session /usr/lib/systemd/user/, with a link in /usr/lib/systemd/user/bluerune-session.target.wants/
A search provider's key file, app entry and D-Bus service /usr/share/gnome-shell/search-providers/ (or /usr/share/bluerune/search-providers/), /usr/share/applications/, /usr/share/dbus-1/services/
A file action /usr/share/bluerune/file-actions/, or /usr/share/kio/servicemenus/ for a KDE service menu
Its metadata and icon for the Store /usr/share/metainfo/<id>.metainfo.xml, /usr/share/icons/hicolor/scalable/apps/<id>.svg

Starting it with the session. bluerune-session.target is what a BlueRune session runs beside Hyprland, and only a BlueRune session starts it. A unit it wants starts at every login, for every user:

# /usr/lib/systemd/user/bluerune-extension-system-monitor.service
[Unit]
Description=System use on BlueRune's desktop
PartOf=bluerune-session.target
After=bluerune.service

[Service]
Type=exec
ExecStart=/usr/lib/bluerune/extensions/system-monitor/system
Restart=on-failure

[Install]
WantedBy=bluerune-session.target

Ship the link the [Install] section describes (ln -s ../<unit> "$pkgdir/usr/lib/systemd/user/bluerune-session.target.wants/" in package()), since systemctl --user enable would enable it for one user only. A program on the bus needs nothing more: its items go when it stops. An item bluerunectl ext set keeps outlasts its script, so give that kind a unit of Type=oneshot with RemainAfterExit=yes that sets the item, wants the timer or path unit that refreshes it, and takes it away as the session ends (ExecStop=-/usr/bin/bluerunectl ext remove <id>); then the item never outlives the package. To start the extension in the sessions running when it is installed, and stop it before it is removed, the packages' .install files ask each running session's user manager (systemctl --user -M <user>@).

Don't stop or pause your extension when Settings › Extensions turns it off: the switch is the user's, and BlueRune draws nothing of an extension that is off. Keep its id the same from one version to the next, since the switch, the bar item's place and the tile's place are kept by id.

In the Store. The Store lists every package named bluerune-extension-* under Extensions: those in the repositories pacman uses (it asks PackageKit) and those installed, such as one you built from the AUR, with the package's description as the summary. Install and Remove there work as for any app.

To give it a proper name, a description, an icon, screenshots and a line saying where it shows, add AppStream metadata describing it as an add-on (type="addon") that extends BlueRune, whose AppStream id is org.bluerune.BlueRune:

<?xml version="1.0" encoding="UTF-8"?>
<component type="addon">
  <id>org.example.BlueRuneWeather</id>
  <extends>org.bluerune.BlueRune</extends>
  <name>Weather</name>
  <summary>The weather where you are, on the bar</summary>
  <metadata_license>CC0-1.0</metadata_license>
  <project_license>MIT</project_license>
  <description>
    <p>Shows the temperature and the sky on the bar, and the forecast in its menu.</p>
  </description>
  <icon type="stock">org.example.BlueRuneWeather</icon>
  <categories>
    <category>X-BlueRune-Extension</category>
  </categories>
  <url type="homepage">https://example.org/bluerune-weather</url>
  <screenshots>
    <screenshot type="default">
      <image>https://example.org/bluerune-weather.png</image>
    </screenshot>
  </screenshots>
  <custom>
    <value key="BlueRune::works-in">bar;quick</value>
  </custom>
  <releases>
    <release version="1.0" date="2026-11-29"/>
  </releases>
</component>

BlueRune::works-in lists where it shows, separated by ;: bar, quick (quick settings), desktop, launcher and files. The Store's cards and the extension's page say so. (appstreamcli validate warns that X-BlueRune-Extension is no category it knows; that is expected.)

The Store reads AppStream catalogs, which a repository makes from the metadata in its packages (Arch's is archlinux-appstream-data; BlueRune's repository has bluerune-appstream-data); until a catalog carries yours, the Store lists the package by its name alone. Any component a catalog files under the X-BlueRune-Extension category is listed under Extensions too, whatever its package is called: an app with a window of its own that also extends BlueRune can add that category to its metadata's <categories> and keep its own type="desktop-application".

Examples

Each of these is in the Store too, as the package Extensions in the Store names, which sets it up for every user. What follows is for running a copy of your own, to change it.

Weather on the bar (shell script)

examples/extensions/weather asks wttr.in for the weather, shows the temperature with a symbol for the sky, and keeps the last reading (marked as old) when the computer is offline. Run it every 15 minutes, for example with a systemd user timer:

# ~/.config/systemd/user/bluerune-weather.service
[Service]
Type=oneshot
ExecStart=%h/.local/bin/bluerune-weather
# The place to ask about; leave this line out to let wttr.in guess.
Environment=BLUERUNE_WEATHER_PLACE=Oslo

# ~/.config/systemd/user/bluerune-weather.timer
[Timer]
OnStartupSec=10s
OnUnitActiveSec=15min

[Install]
WantedBy=timers.target
install -Dm 755 examples/extensions/weather ~/.local/bin/bluerune-weather
systemctl --user enable --now bluerune-weather.timer

BLUERUNE_WEATHER_PLACE (a city, such as Oslo or New York) chooses the place; without it, wttr.in guesses from your connection. A press on the item opens that place's forecast in the browser, and Refresh in its menu asks again at once.

VPN in quick settings (Python)

examples/extensions/vpn.py puts a tile in quick settings that connects and disconnects a NetworkManager VPN with nmcli, shows whether it is up, and lists your VPN connections in its menu to choose another. It needs Python's GLib bindings (python-gobject on Arch). Start it with your session, for example from Settings › Startup apps, or with:

install -Dm 755 examples/extensions/vpn.py ~/.local/bin/bluerune-vpn
bluerune-vpn &

Its menu lists your VPN and WireGuard connections; choosing another while one is up switches to it. While a VPN is up, a lock shows on the bar too, with the same menu; a press on the lock opens quick settings.

Agenda on the desktop (Python)

examples/extensions/agenda.py shows the next week's events: from khal when it is installed, else from calendar files (BLUERUNE_AGENDA_ICS, colon-separated; without it ~/.local/share/bluerune/agenda.ics). It uses bluerunectl ext set, so run it every few minutes, for example from a systemd user timer like the weather's. A press opens your calendar app; Refresh in its menu reads again.

To-do list on the desktop (shell script)

examples/extensions/todo shows ~/todo.txt (or BLUERUNE_TODO_FILE): a line each, - [ ] Call the plumber, ticked as - [x]. A press on a line ticks it in the file; Edit opens the file and Clear done takes the ticked lines out. Run it again when the file changes, for example with a systemd path unit:

# ~/.config/systemd/user/bluerune-todo.path
[Path]
PathChanged=%h/todo.txt

[Install]
WantedBy=default.target

# ~/.config/systemd/user/bluerune-todo.service
[Service]
Type=oneshot
ExecStart=%h/.local/bin/bluerune-todo

System use on the desktop (Python)

examples/extensions/system.py shows the processor's use over the last minute as a figure and a line, and how full memory and swap are, read from /proc every two seconds. A press opens the system monitor. Start it with your session; its card goes when it stops.

Now playing on the desktop (Python)

examples/extensions/nowplaying.py follows any player that speaks MPRIS (Spotify, Firefox, mpv with mpv-mpris…): the track, the artist and album, how far in it is, and previous, play or pause, and next. The card goes away when no player is open; a press brings the player forward. Both Python examples need Python's GLib bindings, as the VPN one does.

The design behind all this, with the reasons for each limit, is in docs/design/extensions.md in BlueRune's source.