Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration

Everything is optional. $XDG_CONFIG_HOME/quick-key/config.json holds what you change, grouped by feature like waybar’s modules (clock, audio, battery, …), a plugin’s under plugins.<name>. The shell reloads it on save; a save that is not JSON (a typo, a write caught halfway) leaves the running config in place and says so in the menu’s top level. With Nix, programs.quick-key.settings writes it as given. The reference lists every setting and its default.

{
  "theme": { "name": "nord", "monospaceFont": "JetBrainsMono Nerd Font" },
  "clock": { "format": "%A, %-d%o %B %H:%M" },
  "plugins": { "vpn": { "type": "command", "watch": "my-vpn-status", "activate": "my-vpn-toggle", "show": { "up": { "active": true } } } }
}

What you choose while logged in is kept over a reload or a restart: keep awake, unsent drafts, a list’s order, an open conversation.

The defaults are a suggested setup, not a ceiling. Sizes given in pixels that you leave unset follow theme.fontSize (theme.iconSize, menu.width), so a larger font keeps the proportions; what you set, an entry’s width included (the starter’s too), stays in pixels as given. The check bounds each value, and the layout keeps every surface within its screen (no margin past a quarter of it, no menu taller, no more columns than its width holds), so no setting breaks the menu or its keys.

menu.splitBar draws each bar slot on its own island; the gaps take width, so a crowded bar needs a wider menu.

Checking

qs -p <the shell's folder>/check.qml checks config.json and shows nothing. It prints what is wrong (a setting that does not exist, a value of another kind, a menu entry or plugin that cannot work) and exits 1. The shell logs the same as it starts. With Nix, the module runs it as the configuration builds, so a wrong setting fails the build, not the session; the shell’s folder is the package’s share/quick-key. A plugin linked out of the store (mkOutOfStoreSymlink) is beyond the build’s reach, so its own settings go unchecked. Without a display, as in CI or over SSH, run it with QT_QPA_PLATFORM=offscreen.

Themes

theme.name picks a theme: a file of yours, else a shipped preset. A theme holds five colours, and optionally border, bubble and bubbleText:

{ "background": "#2e3440", "foreground": "#d8dee9", "primary": "#88c0d0", "alert": "#bf616a", "warning": "#ebcb8b" }

A colour set in theme itself wins over the theme’s. Colours are #rgb, #rrggbb or #aarrggbb (alpha first, as Qt reads it); one that is not is skipped with a warning. Anything that writes the file works: your editor, a matugen or pywal template for colours from the wallpaper (recipe), or, with Nix, programs.quick-key.themes.<name>. Saving it applies it at once. A misspelt name logs a warning naming the presets, and fails the build on Nix.

With stylix, the module themes the shell like one of stylix’s own targets: on whenever stylix themes every target (stylix.autoEnable), else with stylix.targets.quick-key.enable = true. It writes its colours as a theme named stylix (border from base03), picked unless you name another, and sets the monospace font and the popups’ font size and opacity, each a default your own theme settings override. Stylix’s popups are opaque by default, which hides the background blur; stylix.opacity.popups = 0.92 keeps it.

glyphs overrides any icon by its name in the kit’s Glyphs, in the shape of its default: one glyph, a list (batteryLevels, one per 10%), or a map ({ "audioDevices": { "headset": "󰋎" } }).

Defaults

Unset, the menu is a starter one (audio, network, Bluetooth, music), with the calendar on the clock, and the tray and the session in its bar. Volume, mute, Wi-Fi and Bluetooth power, and playback are built-in actions (see Menu), no tool needed. The rest use standard tools from PATH, which the Nix module puts on the shell’s PATH ahead of the session’s, so they resolve the same on every machine:

FeatureTool
Brightnessthe first /sys/class/backlight device, busctl
Bluetooth, when rfkill blocks itrfkill
Keep awakenone: Wayland’s idle inhibitor, which the compositor holds for every idle daemon
Power profiles, where their daemon isbusctl, to see it on the system bus
Sessionloginctl, systemctl
Calendar remindersnotify-send
Battery warningsnotify-send
The ask plugin’s notificationsnotify-send

popups.show lists what pops up as it changes, so another on-screen display can take any of it over. A plugin pops up as a pill with its glyph and text on every change of its text, so list only plugins that change rarely (not a recording’s timer). None shows while a menu or panel is open, which shows the value itself.

Setting menu.entries replaces the starter menu (Extend the starter). Do-not-disturb (the dunst or mako plugin, or your own) and display layouts are plugins you list (Plugins).