Set up BlueRune in Hyprland
BlueRune runs inside Hyprland. This page explains how BlueRune gets into your Hyprland config: through the BlueRune session, through the setup script bluerune-setup, or by hand.
A system installed from the ISO needs none of this: its BlueRune session sets everything up at the first login. The one-line install runs bluerune-setup for you.
The BlueRune session
Choose BlueRune at the login screen. uwsm starts Hyprland with XDG_CURRENT_DESKTOP=BlueRune:Hyprland, and bluerune-session.target starts the shell, hypridle and the portals with it, and stops them when you log out. Nothing needs enabling.
What the session does with your Hyprland config depends on what is there:
- No config (no
~/.config/hypr/hyprland.luaorhyprland.conf): before Hyprland starts, the session copies BlueRune's base config from/usr/share/bluerune/hyprinto~/.config/hypr, keeping any file already there. The first login is a complete desktop with no edits. Your own settings then go in~/.config/hypr/custom/*.lua. The example config Hyprland writes when it starts without one counts as no config while nobody has changed it, and is replaced the same way. - BlueRune's base config (copied by the session or by the setup script): at each login after a package update, BlueRune's part of it (
hyprland.lua,bluerune-base/, andbluerune-binds.luawhere the session put it) is brought up to date from/usr/share/bluerune/hypr. A file you changed is left as it is, and the session's log says so.custom/is never touched. - A Hyprland config of your own: Hyprland loads it unchanged. Set it up for BlueRune with
bluerune-setupor by hand.
The first time BlueRune starts for a user, it opens the welcome window. See After installing.
The setup script
bluerune-setup sets BlueRune up in the current user's Hyprland session. The bluerune package installs it; in a checkout of the source it is scripts/install-bluerune.sh, which also builds the package (see Install from source). Run it as yourself, not as root:
bluerune-setup # explains each step and asks first
bluerune-setup --dry-run # shows every change without making any
It:
- Backs up
~/.config/hypr,~/.config/illogical-impulseand~/.config/autostart. - Sorts out power-profiles-daemon against TLP or tuned.
- Writes
~/.config/bluerune/config.tomlif there is none. - Sets up your Hyprland config (see below).
- Offers to keep autostart entries that would clash out of Hyprland, and hands
hypridle.confto BlueRune. - Imports Quickshell ii settings, if there are any.
- Starts the shell.
It also tells you about the BlueRune session. If no login screen starts at boot, it offers to enable BlueRune's own (greetd, with BlueRune's drop-in in /etc/systemd/system/greetd.service.d/bluerune.conf) when greetd is installed, or else SDDM when that is.
Everything it changes is listed in ~/.local/state/bluerune-install/manifest, and bluerune-setup --revert undoes it. --revert disables a login screen it enabled, without stopping it.
Your Hyprland config
- A fresh machine (no
~/.config/hypr/hyprland.lua, or Hyprland's own example there): the script installs BlueRune's base config, a complete Hyprland config with BlueRune's binds built in that needs nothing else (no Quickshell, no colour generators).hyprland.luaandbluerune-base/are BlueRune's and kept up to date by later runs. Your own settings go incustom/*.lua(env, variables, execs, general, rules, keybinds), which load after the base and are never replaced. The script can also replace a config of your own if you say so; yours is kept, and--revertputs it back. - Quickshell ii (illogical-impulse) or a config of your own: by default the script layers BlueRune onto it:
bluerune-binds.lua, plusbluerune-setup.lua, which unbinds your binds on the same keys and is loaded by one marked line at the end ofhyprland.lua. It offers to comment out other shells (Quickshell, Waybar, mako and others) and ii's "restart widgets" bind. Run it from inside Hyprland so it can read your current binds.
Only Lua configs (hyprland.lua) are set up. With hyprland.conf, follow Set it up by hand.
Options
| Option | Does |
|---|---|
--yes |
Accepts the default answer to every question |
--dry-run |
Shows every change it would make, and makes none |
--no-build |
Doesn't build or install the packages (from a checkout) |
--desktop |
Also installs bluerune-desktop: the login screen, clipboard history and core apps (from a checkout) |
--no-start |
Doesn't start BlueRune now; it starts at your next login |
--profile <dir> |
Applies a profile saved with --export-profile while installing |
--export-profile <dir> |
Saves this machine's choices as a profile in <dir>, and nothing else |
--revert |
Undoes what earlier runs did |
-h, --help |
Shows the help |
Take your setup to another machine
Save your setup as a profile, then apply it while installing on the other machine:
bluerune-setup --export-profile ~/bluerune-profile # reads, and writes only there
bluerune-setup --profile ~/bluerune-profile # on the other machine
A profile holds:
- BlueRune's
config.toml, and the Hyprland options changed in Settings (bluerune.lua) bluerune-binds.lua, if yours differs from the example- your
custom/*.lua, made to stand alone: Quickshell shortcuts turned intobluerunectlwhere there is an equivalent, ii-only lines and binds on BlueRune's keys left out, and start-up commands guarded so they run only where installed - your autostart entries and the ones you keep out of Hyprland
- power-profiles-daemon or TLP
Home paths are written as $HOME. The profile's README.md lists what is in it, what was changed and what was left out. Applying a profile backs up every file it replaces, and --revert undoes it.
Set it up by hand
These steps run BlueRune in a Hyprland config of your own, in any Hyprland session. The BlueRune session's base config already has them.
Binds. Copy the example config, then load it from the end of your
hyprland.lua:cp /usr/share/doc/bluerune/bluerune.lua.example ~/.config/hypr/bluerune-binds.lua-- at the end of ~/.config/hypr/hyprland.lua require("bluerune-binds") require("bluerune")The example holds every bind BlueRune expects (launcher, clipboard history, emoji, character picker, overview, task switcher, region capture, session screen, keyboard shortcuts, Settings, volume and brightness keys) and the start of the shell. Take out binds that clash with yours, or change them later on the Shortcuts page of Settings.
BlueRune's own Hyprland file. What you change in Settings that is Hyprland's to do (gaps, borders, input, displays, shortcuts, window rules, animations), BlueRune writes to
~/.config/hypr/bluerune.lua. Therequire("bluerune")line above loads it. Keep it last, so a value your own config sets after it wins (Settings then shows that setting as overridden). Without the line, the changes hold only while BlueRune runs.bluerunectl hypr statusshows the file, whether Hyprland loads it, and the exact line. Window borders follow the accent colour unless you turn off Settings > Appearance > Match window borders to accent.Starting the shell. Run it as the systemd user service, which restarts it after a crash and starts your XDG autostart entries once per session:
- The BlueRune session: started with it. Nothing to enable.
- Plain Hyprland (the
Hyprlandsession): the example'shyprland.starthandler exports the session's environment to systemd and runssystemctl --user start bluerune.service. Nothing to enable. - uwsm (the
Hyprland (uwsm-managed)session), or anything else that startsgraphical-session.target: runsystemctl --user enable bluerune.service. The example's handler then does nothing more.
Don't start
bluerunefromexec-onceorhl.exec_cmddirectly: it then isn't restarted after a crash, and runs twice if the service starts too.Stop any other shell (Quickshell, Waybar, mako, dunst, swaync). Only one program can serve notifications or own the tray.
Log out and back in. Check that BlueRune runs:
bluerunectl ping journalctl --user -u bluerune
Move over from Quickshell ii (illogical-impulse)
BlueRune can bring over the settings that have an equivalent: bar options, workspace count, time formats, battery and resource thresholds, tray pins, default apps and the wallpaper.
bluerunectl import quickshell-ii --dry-run # what it would set, and what it can't
bluerunectl import quickshell-ii # set it (with BlueRune running)
It reads ~/.config/illogical-impulse/config.json; give another file with --from <config.json>. The battery levels are system settings, so they ask for the administrator's password once. It ends by listing what it set, what it skipped and what has no equivalent. Your own settings explains each list and the battery levels.
Then take Quickshell out of your Hyprland config (its exec-once or hl.exec_cmd line, and the binds that call qs or quickshell), and stop it:
pkill -x qs; pkill -x quickshell