Your own settings: settings.d
BlueRune's Settings covers Hyprland options and system services with settings it declares itself. When you want one more (an option you change often, on the page where you'd look for it), you can declare it in a file. No rebuild, no restart: BlueRune reads the file the moment you save it.
Files live in settings.d beside BlueRune's config: ~/.config/bluerune/settings.d/*.toml ($XDG_CONFIG_HOME/bluerune/settings.d when that is set). Files whose names start with a dot, or don't end in .toml, are ignored.
A first file
~/.config/bluerune/settings.d/gaps.toml:
version = 1
[[setting]]
id = "user.groupbar_height"
option = "group:groupbar:height"
page = "windows-and-workspaces"
section = "My tweaks"
title = "Group bar height"
help = "How tall the bar over grouped windows is, in pixels."
keywords = ["tabs", "tabbed"]
kind = "int"
min = 8
max = 64
default = 14
control = "slider"
Save it and the setting exists:
$ bluerunectl settings get user.groupbar_height
user.groupbar_height
Windows and workspaces › My tweaks › Group bar height
How tall the bar over grouped windows is, in pixels.
value: 14
default: 14
accepts: a whole number
$ bluerunectl settings set user.groupbar_height 20
user.groupbar_height = 20
It is a setting like any other: it shows on its page in the Settings window, search finds it by its title, help and keywords, and a value you set is kept in BlueRune's bluerune.lua the way every Hyprland option is (see bluerunectl hypr status). Edit the file and the setting changes shape in place; delete the file and the setting is gone. The value Hyprland holds stays as you left it, and stays reachable through BlueRune's own setting for that option under Advanced.
The format
A file starts with version = 1 and holds any number of [[setting]] tables.
| Key | Required | Meaning |
|---|---|---|
id |
yes | The setting's name. Lowercase words of a-z, 0-9 and _ joined by dots, starting with user. |
option |
yes, unless it runs commands | The Hyprland option it changes, by the name hyprctl descriptions gives it (general:border_size) |
title |
yes | What it is called on its page |
help |
yes | A sentence saying what it does |
kind |
yes | What values it takes: see below |
default |
yes | The value it counts as unchanged. Resetting the setting hands the option back to your Hyprland config, or to Hyprland's own default |
page |
no | The page it appears on, by the page's id. Default advanced |
section |
no | The heading it sits under. Default User settings |
keywords |
no | Extra words search finds it by: ["tabs", "tabbed"] |
control |
no | How it is picked: toggle, slider, stepper, dropdown, segmented or text. Default: what suits the kind |
Kinds, and the keys each adds:
kind |
Value | Extra keys | Fits a Hyprland option that is |
|---|---|---|---|
bool |
true / false |
a switch | |
int |
a whole number | min, max |
a whole number |
float |
a number | min, max, step |
a fraction |
text |
one line of text | max_len (up to 4096) |
anything: text shows whatever the option holds |
choice |
one of choices |
choices |
a numbered choice (give each option its number) or text (give none) |
color |
#rrggbb or #rrggbbaa |
optional = true lets it be empty |
a colour |
gradient |
#3daee9ff #1d99f3ff 45deg |
a gradient | |
vec2 |
0 2 |
a pair of numbers | |
gaps |
5 or 5 10 5 10 |
gaps (general:gaps_in) |
A choice lists its options, each with the value the setting holds, an optional label to show instead, and for a Hyprland option kept as a number, that number:
[[setting]]
id = "user.vrr"
option = "misc:vrr"
title = "Variable refresh rate"
help = "When monitors may vary their refresh rate."
kind = "choice"
choices = [
{ value = "off", label = "Off", number = 0 },
{ value = "on", label = "On", number = 1 },
{ value = "fullscreen", label = "Full screen only", number = 2 },
]
default = "off"
A slider needs both min and max. Without them a number gets a stepper.
Page ids are the page's name in lowercase with dashes: network, bluetooth, displays, sound, power-and-battery, appearance, wallpaper, bar, launcher-and-search, notifications, windows-and-workspaces, workspace-behaviour, screen-edges, keyboard, shortcuts, mouse-and-touchpad, touchscreen-and-tablet, game-controllers, date-and-time, language-and-region, default-apps, locations, startup-apps, session, users, login-screen, lock-and-privacy, online-accounts, remote-desktop, fonts, sounds, firewall, thunderbolt, app-permissions, plugins, background-services, printers, storage, updates, accessibility, diagnostics, about, advanced.
When something is wrong
The format is strict: a key BlueRune doesn't know is a mistake, not something it skips. Every mistake is reported with its line, in the log and by bluerunectl settings user status:
$ bluerunectl settings user status
Your own settings are read from ~/.config/bluerune/settings.d
gaps.toml: 1 setting in use, 2 problems
user.groupbar_height
line 23: `kind` is "chooser"; it must be one of bool, int, float, text, choice, color, gradient, vec2, gaps
line 31: Hyprland has no option `general:no_such_option`
- Each
[[setting]]stands alone. One with a mistake is left out; the others in the file, and every other file, are untouched. - A file that isn't valid TOML, or whose
versionthis BlueRune doesn't read, contributes nothing until it is mended. - An id can't shadow anything. Ids must start with
user.; an id BlueRune already has is refused; when two files declare the same id, the file that sorts first by name keeps it and the other is told so. - While Hyprland is running, an entry naming an option Hyprland doesn't have, or one of a kind the option can't be, is refused with the reason.
- A file may be at most 256 KiB and hold at most 256 settings; a directory, 128 files.
If a file is a link to one kept elsewhere (a dotfiles repository), BlueRune notices when the link changes, not when the file it points to does. After editing such a file, run bluerunectl settings user reload.
Settings that run commands
For something Hyprland has no option for, a setting can name two programs instead of an option: one that prints the value, one that sets it.
[[setting]]
id = "user.keyboard_backlight"
get = ["brightnessctl", "--device=kbd_backlight", "get"]
set = ["brightnessctl", "--device=kbd_backlight", "set", "{value}"]
timeout_ms = 2000
title = "Keyboard backlight"
help = "How bright the keyboard's lights are."
kind = "int"
min = 0
max = 3
default = 0
getandsetare lists: the program, then each argument. They are never given to a shell, so nothing in them is expanded, split or piped.{value}in any argument ofsetis replaced by the value. Leavesetout for a value that can only be read.- What
getprints, without the space around it, must read as the setting's kind. timeout_ms(100 to 10000, default 2000) is how long either may run before it is stopped.- The programs run as you, with your permissions.
- The value is the system's, not BlueRune's: such a setting is never marked as changed and can't be reset, only set. Its
defaultis what shows until the first read comes back.
Such settings are off until you allow their file. A file you downloaded, or one a program dropped into the directory, runs nothing by being there:
$ bluerunectl settings user status
…
tools.toml: 0 settings in use
not allowed to run commands, so these settings are off:
user.keyboard_backlight (line 3), each stopped after 2000 ms
to read it: ["brightnessctl","--device=kbd_backlight","get"]
to change it: ["brightnessctl","--device=kbd_backlight","set","{value}"]
to allow them: bluerunectl settings user allow tools.toml
$ bluerunectl settings user allow tools.toml
Allowed ~/.config/bluerune/settings.d/tools.toml as it is now (blake3:38a5…2c41).
BlueRune will run these as you, each program with exactly these arguments and never through a shell:
user.keyboard_backlight (line 3), each stopped after 2000 ms
to read it: ["brightnessctl","--device=kbd_backlight","get"]
to change it: ["brightnessctl","--device=kbd_backlight","set","{value}"]
Editing the file turns its commands off until you allow it again.
Allowing records the file's path and the BLAKE3 hash of its bytes in ~/.local/state/bluerune/settings-allowed.toml ($XDG_STATE_HOME). What is allowed is that exact text: any edit to the file, even to a comment, turns its commands off again until you run allow once more and see what it would run now. The entries in the same file that name a Hyprland option keep working throughout. bluerunectl settings user revoke tools.toml takes the permission back.
The list is kept in the state directory, not beside the settings files, so copying a settings.d folder onto a machine never carries the permission along.
A user's setting can never reach BlueRune's privileged helper (the part that changes root-owned files after a password prompt). The file format has no way to name it: a setting's value lives in a Hyprland option or behind the two commands, and nothing else. A command that names the helper's program or bus name is refused as well; were one to reach the helper through a wrapper script, the helper would ask for the administrator's password as it does for every caller.
Commands
| Command | Does |
|---|---|
bluerunectl settings user status |
Every file: its settings in use, its problems by line, and whether it may run commands |
bluerunectl settings user reload |
Reads the files again now |
bluerunectl settings user allow <file> |
Lets a file run the commands it declares, as it is now, and prints exactly what they are |
bluerunectl settings user revoke <file> |
Stops it |
<file> is the file's name in settings.d, or a path to it. Add --json for the reply as JSON.
Moving over from the illogical-impulse Quickshell shell
bluerunectl import quickshell-ii reads that shell's config.json (~/.config/illogical-impulse/config.json, or the file given with --from) and sets what has an equivalent in BlueRune: the bar's position, style, auto-hide, monitors, workspaces, resource gauges and utility buttons; tray pins; the time and date formats; the volume limit; the night light's temperature; the notification timeout; the wallpaper and the desktop clock; and the battery levels.
bluerunectl import quickshell-ii --dry-run # says what it would do, changes nothing
bluerunectl import quickshell-ii # does it
It prints three lists:
- Carried over: old key → BlueRune setting = value. A number outside what the setting takes is brought to the nearest end of its range, and the row says so.
- Skipped: keys it knows and can't honour, each with the reason (a plain rectangle bar, a vertical bar, tray pins when the old list means the opposite, suspending at the last battery level).
- Not carried over: every other key in the file, grouped as the file groups them.
Each setting goes through the running BlueRune, which checks it as it would any other change, so a real run needs BlueRune running; a dry run doesn't. The old file is only read. Running the import twice is harmless: it sets the same values again.
The battery levels
The levels at which the battery counts as low and as critical, and the level at which the machine acts (battery.low, battery.critical, battery.suspend), are not BlueRune's: UPower keeps them for the whole machine, in a file of root's. The import carries them over through BlueRune's settings helper, which asks for the administrator's password.
- They are applied last, after everything else, and all three in one request: one password prompt, not three. A line saying so is printed just before the prompt appears.
- The system wants each level from 1 to 99, low above critical above the level to act at. Old values that don't fit are moved up from the lowest, so the machine never acts later than it did, and each moved row says what it was. A level the old file leaves out is the old shell's own default (20, 5, 3).
- If the password is turned down or the prompt is closed, the three rows read
not changed: <reason>. That is an answer, not a failure: the rest of the import stands and the command still exits 0. - If the system holds those levels already, nothing is asked. If the helper isn't installed, the rows are listed under Skipped with that reason, and nobody is prompted.
- A dry run lists them under Carried over, each marked as needing the administrator's password.
battery.automaticSuspend is skipped. At the last level UPower powers the machine off, hibernates it or puts it into hybrid sleep; it has no plain suspend and can't be told to do nothing, so neither value of the old switch has an honest equivalent. Which of the three happens is the "When the battery is nearly empty" setting on the Power and battery page.