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

Reference

Settings

Every key of config.json (programs.quick-key.settings with Nix), as the shell declares it. A command given values gets them as $1, $2.

theme

SettingTypeDefaultAllowedDescription
theme.namestringA theme by file name: yours in $XDG_CONFIG_HOME/quick-key/themes/, else a preset in themes/.
theme.background, theme.foreground, theme.primary, theme.alert, theme.warningstring#rgb, #rrggbb or #aarrggbbColours over the theme’s own.
theme.borderstring#rgb, #rrggbb or #aarrggbbOutlines and dividers; unset, the foreground at disabledOpacity, so tint is left to state.
theme.bubble, theme.bubbleTextstring#rgb, #rrggbb or #aarrggbbYour messages in a conversation, and their text; unset, the foreground at 0.15, and the foreground.
theme.surfaceOpacitynumber0.920 to 1A panel’s background opacity.
theme.highlightOpacitynumber0.250 to 1A highlight’s opacity (the row under the pointer, a meter’s track).
theme.dimOpacitynumber0.80.2 to 1Secondary text’s opacity (values, legends, dim glyphs): 0.8 keeps it near WCAG AA’s 4.5:1 on a dark theme.
theme.disabledOpacitynumber0.50.2 to 1The opacity a row that cannot run now fades to.
theme.animationDurationinteger1000 to 2000Milliseconds a fade or colour change takes; 0 for none.
theme.monospaceFontstring"monospace"The one font, by family: monospace, since sizes are counted in its characters.
theme.fontSizeinteger116 to 32The font’s size, in points.
theme.lineHeightnumber1.30.1 to 4Wrapped prose (an answer) at this multiple of a line; rows keep their own padding.
theme.radiusinteger100 to 100Corner radius of panels and cards, in pixels.
theme.itemRadiusinteger60 to 100Corner radius of rows, highlights and tips, in pixels.
theme.iconSizeinteger244 to 128An icon’s size, in pixels; unset, it follows the font, 24 at 11 points.
theme.appIconsstring"colour""colour", "grey", "tint"Apps’ own icons (the tray’s): “colour” as drawn, “grey” like the glyphs beside them, or “tint”, a symbolic icon in the text’s colour so a white one reads on a light theme, any other in greys.
theme.besideBarsbooleanfalseThe menu, pop-ups and cards keep clear of space another bar reserves, instead of covering it.
theme.borderWidthinteger10 to 20Outlines and dividers, in device pixels.
theme.spacinginteger80 to 50The gap between items, in pixels.
theme.paddinginteger140 to 50The space inside a panel’s or a card’s edge, in pixels.
theme.edgeMargininteger350 to 400The distance from the screen’s edge to the menu, its panels, pop-ups and cards, in pixels.

The presets theme.name takes, beside your own:

Presetbackgroundforegroundprimaryalertwarning
catppuccin-latte#eff1f5#4c4f69#1e66f5#d20f39#9a6200
catppuccin-mocha#1e1e2e#cdd6f4#89b4fa#f38ba8#f9e2af
gruvbox-dark#282828#ebdbb2#83a598#fb4934#fabd2f
nord#2e3440#d8dee9#88c0d0#bf616a#ebcb8b
tokyo-night#1a1b26#c0caf5#7aa2f7#f7768e#e0af68
SettingTypeDefaultAllowedDescription
menu.entriesanyThe top level’s entries; unset (null), the starter menu in menu.json, which setting entries replaces whole.
menu.bar.left, menu.bar.center, menu.bar.rightanyThe top level’s bar, like waybar’s modules-left, -center and -right: entries, and statuses and plugins by name; a slot unset (null) is the starter’s.
menu.widthinteger960200 or moreA level’s width in pixels, unless its entry sets width; unset, it follows the font, 960 at 11 points, never past the screen.
menu.columnsinteger21 to 9The columns a level lays its actions out in, unless its entry sets columns.
menu.inputanyThe top level’s input, as an entry’s input: the catch-all line to a plugin or a command.
menu.layoutlist["input","body","bar"]The top level’s islands, top to bottom: input, body (once), bar, and { level = "t"; } pinning the top-level entry on t on an island of its own.
menu.heightanyThe rows a level’s body holds at least, unless its entry sets height or shows a view: unset (null), it fits what it shows.
menu.splitBarbooleanfalseDraws the bar’s actions and slots apart, each on an island of its own, rather than on one bar.
menu.keysHintbooleantrueShows the key listing the rest on the bars that have one (? keys, Ask’s C-? keys); off, the key still acts.

clock

SettingTypeDefaultAllowedDescription
clock.formatstringThe clock status’s format: strftime as waybar takes it, plus %o for the English ordinal; unset, the weekday, day and month (Tuesday 24 November) and the locale’s time.
clock.localestringThe locale every date and time is said in (en_GB): its names, and 24 or 12 hours; unset, the system’s (LC_TIME).
clock.firstDayOfWeekinteger-1-1 to 6The calendar’s first day of the week, 0 for Sunday to 6 for Saturday; unset (-1), the locale’s.

calendar

SettingTypeDefaultAllowedDescription
calendar.filestring"$XDG_STATE_HOME/quick-key/events.json"The events file the month shows, by default $XDG_STATE_HOME/quick-key/events.json; until it exists, the month alone.
calendar.remindstringin the sourceGiven an event’s title and when (14:00 · Rua Augusta 120), reminds of it; empty, no reminders.
calendar.remindBeforeinteger100 or moreMinutes before a timed event starts that remind runs.
calendar.staleAfterinteger1200 or moreMinutes after the last sync before it shows in warning.

popups

SettingTypeDefaultAllowedDescription
popups.timeoutinteger1500100 to 60000Milliseconds a pop-up stays.
popups.showlist["sink","source","brightness","keyboardLayout","keepAwake"]The statuses and plugins whose changes pop up, by name; battery’s as it is plugged in or out, bluetooth’s as it turns on or off or a device connects or leaves.

audio

SettingTypeDefaultAllowedDescription
audio.stepinteger51 or morePercent a volume key or a wheel notch moves the volume.
audio.maxinteger1001 to 150The most a volume key or the wheel raises it to, in percent.

bluetooth

SettingTypeDefaultDescription
bluetooth.unblockstring"rfkill unblock bluetooth"Unblocks an adapter rfkill turned off, so the Bluetooth action can power it on.

brightness

SettingTypeDefaultAllowedDescription
brightness.backlightstringin the sourcePrints the path of a file holding the backlight’s value, a tab, and its maximum; by default the first backlight.
brightness.stepinteger51 or morePercent a key or a wheel notch moves the backlight.
brightness.setstringin the sourceGiven the backlight’s name and a value, sets it; by default through logind, which lets the active session do so without root.
brightness.panelstringThe output the backlight lights, by connector name or, on niri, by make, model and serial; unset, the built-in one (eDP, LVDS or DSI).

keyboardLayout

SettingTypeDefaultDescription
keyboardLayout.labelslist[]A short label per layout, in the compositor’s order ([“US”, “PT”]); unset, the first two letters of its name.

daemons

SettingTypeDefaultDescription
daemons.liststring"busctl --system list --no-legend --no-pager"Prints the names on the system bus, running or started on demand, the first on each line: what a built-in that needs a daemon looks for (power profiles).

battery

SettingTypeDefaultAllowedDescription
battery.lowinteger200 or morePercent of charge at which, on battery, the battery status warns and warn runs.
battery.criticalinteger50 or morePercent of charge at which, on battery, the battery status alerts and warn runs again.
battery.warnstring"notify-send --app-name=Battery --icon=battery-caution"Given a title and a line (Battery low, 18% left), as the charge falls to low or critical, once each; empty, no warnings.

music

SettingTypeDescription
music.playerstringThe MPRIS identity of the player the music status follows; unset, the one playing, else the last that played, else any.
music.titleMatchstringA regular expression over the title: where it matches, its first group is the song and its second the artist; unset, titles as given.

plugins

Optional parts by name, each its settings and type: see plugins.md.

glyphs

Any icon by its name in ui/Glyphs.qml (wifi, audioDevices, batteryLevels), over its default: a glyph, a list of them, or a map.

GlyphTakesDefault (Nerd Fonts)Description
microphoneglyphmd-microphone
microphoneOffglyphmd-microphone_off
musicglyphmd-music
musicPausedglyphmd-pause
musicOffglyphmd-music_off
shuffleglyphmd-shuffle_variant
repeatglyphmd-repeat
wifiglyphmd-wifi
ethernetglyphmd-ethernet
disconnectedglyphmd-wifi_off
volumeglyphmd-volume_high
volumeOffglyphmd-volume_off
keyboardglyphmd-keyboard
bluetoothglyphmd-bluetooth
bluetoothConnectedglyphmd-bluetooth_connect
bluetoothOffglyphmd-bluetooth_off
playPauseglyphmd-play_pause
trackglyphmd-skip_next
keepAwakeglyphmd-coffee
trayglyphmd-apps
notificationsglyphmd-bell
notificationsPausedglyphmd-bell_off
windowglyphmd-application_outline
recordglyphmd-record_rec
calendarglyphmd-calendar
checkboxglyphmd-checkbox_blank_outline
checkboxCheckedglyphmd-checkbox_marked
tasksglyphmd-format_list_checks
lateglyphmd-alarm
brightnessLevelslist of glyphsmd-brightness_5, _6, _7
checkglyphmd-check
searchglyphmd-magnify
sortsmap of glyphsdue md-sort_calendar_ascending, priority md-sort_numeric_ascending, title md-sort_alphabetical_ascending, list md-format_list_groupThe tasks’ order and what their done ones show, each by its value.
completedmap of glyphshidden md-eye_off_outline, shown md-eye_outline, only md-check_all
prioritiesmap of glyphshigh md-chevron_double_up, low md-chevron_double_downA task’s priority, as iCalendar groups its ranks.
submenuglyphmd-chevron_right
promptglyphmd-chevron_rightWhat marks a prompt: an input with the keys, and what was asked in Ask.
conversationglyphmd-chat_outlineA past conversation, as Ask lists them.
copyglyphfa-copy
failedglyphmd-alert_circle_outline
powerProfilesmap of glyphspower-saver md-leaf, balanced md-scale_balance, performance md-speedometerA power profile by its name.
audioDevicesmap of glyphsheadphones md-headphones, headset md-headset, internal md-monitor_speaker, external md-speaker, microphone md-microphone
batteryLevelslist of glyphsmd-battery_outline, md-battery_10 to _90, md-battery
batteryChargingLevelslist of glyphsmd-battery_charging_outline, md-battery_charging_10 to _100
wifiLevelslist of glyphsmd-wifi_strength_outline, md-wifi_strength_1 to _4
wifiLimitedLevelslist of glyphsmd-wifi_strength_alert_outline, md-wifi_strength_1_alert to _4_alert

Renamed and removed

A config still setting an old key fails its check, saying what to write instead, or that it is gone.

Old keyInstead
theme.monochromeTraynow theme.appIcons, true as “grey”
menu.edgeremoved: the menu always sits at the bottom
menu.alignremoved: the menu is always centred
theme.titleScaleremoved: titles take the font’s size
theme.motionremoved: pop-ups always fade
glyphs.linkremoved: an answer’s links stay in its text
glyphs.closeremoved with the notifications plugin
glyphs.urgentremoved with the notifications plugin
menu.inputSidenow menu.layout: [“body”, “input”, “bar”] puts the input between the body and the bar
popups.positionremoved: the pop-up always sits at the right edge
menu.marginremoved: every surface sits theme.edgeMargin from the edge
popups.marginremoved: every surface sits theme.edgeMargin from the edge
theme.osdLengthremoved: a fixed size of the kit
theme.osdIconSizeremoved: a fixed size of the kit
theme.meterThicknessremoved: a fixed size of the kit
theme.meterLengthremoved: a fixed size of the kit
theme.itemPaddingXremoved: a fixed size of the kit
theme.itemPaddingYremoved: a fixed size of the kit
theme.listSpacingremoved: a fixed size of the kit
menu.headernow menu.bar
menu.islandsnow menu.splitBar

What an entry in menu.entries, a submenu or a bar takes, and the built-in names it can use (Menu).

Fields

FieldTakesAllowedOnDescription
keystring or listanyIts key, or a pair of keys sharing a row ([“Down”, “Up”]); a bar entry needs none.
descstringanyIts label, which never changes.
cmdstring or listanyA shell command, which closes the menu; a list pairs one with each key.
actionstringanyA built-in action, or one of the plugin its level lists.
iconstringanyIts glyph; an action brings its own.
widthnumber1 or moreanyIts level’s width in pixels, over menu.width.
heightinteger1 or morewith submenu or list, without view or limitThe rows its level’s body holds at least, over menu.height: unset, it fits what it shows.
submenulistanyIts level’s entries.
keepOpenbooleanwith cmd or actionKeeps the menu open once its cmd runs, or its action at the end of a key path that opened the menu.
activeWhenstring: a state or a pluginanyLights it while the state it names is on.
columnsinteger1 to 9a level (submenu, list or view)The columns its level lays its actions out in, over menu.columns.
liststring: a list or a pluginanyIts level lists these items on digits.
pinslistwith listItems kept on their digits, in order, dim while absent: each { match, label, icon }, a glob on the item’s id, what it is called, and an optional glyph.
viewstring"calendar"without listIts level shows this view in place of a menu.
statusstring: a status or a pluginanyLive state on the right of its row.
formatstringwith statusIts status’s fields to show (“{song}”), what follows a | kept whole on the right.
barmapa level (submenu, list or view)Its level’s bar: left, center and right, as menu.bar.
shortcutstringa barIts compositor key (Mod+N), only a label: shown while Super is held.
limitnumber1 to 9a bar or a pinned level, with listThe most items of its list a bar or its pinned level shows; past it, the rest on 0.
inputmapa level (submenu, list or view)A line of text over its level, given to a command or a plugin: { desc, cmd or plugin, context, after }.
layoutlista level (submenu, list or view)Its level’s islands, as menu.layout, until ESC; unset, it opens in the current layout’s body.
legendlista level (submenu, list or view)Keys of its level’s ? list to show in its bar too, after the bar’s own: [“Ctrl+Up”].

Statuses

StatusFieldsFormatDescription
sink{device}, {volume}{device}|{volume}The default audio output.
source{device}, {volume}{device}|{volume}The default audio input, the microphone.
music{song}, {title}, {artist}, {state}Its glyph says whether it plays; with nothing playing it says so, which reads as state rather than something missing.
network{name}, {internet}, {wifi}{name}|{internet} {wifi}
bluetooth{device}, {state}, {battery}{device}|{state}{battery}
brightness{level}|{level}The backlight’s level; nothing while the output it lights is off.
calendar{title}, {when}, {more}, {updated}|{when}When the next event in calendar.file is; more is how many more start today (+2), updated how old the events are.
clock{date}{date}
battery{level}{level}
keyboardLayout{layout}{layout}The layout’s label; with one layout nothing, as it can never switch.
powerProfile{profile}|{profile}Where its daemon is (Power.profilesPresent); else nothing, so the row dims and a bar hides it.
keepAwake

Actions

ActionKeysLit byDescription
sinkVolumea pair
sinkMutesinkMuted
sourceVolumea pair
brightnessa pair
sourceMutesourceMuted
streamVolumea pair
streamMutestreamMuted
wifiwifi
bluetoothbluetooth
playPausePlays or pauses the player the music status shows.
tracka pairThe previous track, then the next.
repeatrepeat
shuffleshuffle
keepAwakekeepAwake
powerProfileSteps to the next power profile, the one in use beside it.
keyboardLayoutSwitches to the next keyboard layout; with one, it dims.

Lists

ListDescription
tray
wifi
bluetooth
powerProfilesThe power profiles its daemon offers, the one in use lit; a digit switches to one.
sinks
sources
streamsWhat apps play: a digit picks the one the stream actions change.

States

wifi, bluetooth, repeat, shuffle, sinkMuted, sourceMuted, streamMuted, keepAwake

Views

calendar

Plugin settings

Every plugin takes these under plugins.<name>, beside its type, then its own (Plugins).

Every plugin

SettingTypeDefaultDescription
watch, read, filestringIts one source of state, at most one set: a command printing a line per change, one run as the menu opens, or a file read on every change, relative to $XDG_RUNTIME_DIR (plugins.md#sources).
showmap{}The look of each value the source gives, by value: any state line field (glyph, text, detail, active, tone, phase, a plugin’s own such as stage), the line’s own winning; a value without one shows as text.
itemslist[]Its items when they never change, each { id, label, icon, detail }; the source’s value names the one in use.
shortcutstringIts compositor key (Mod+N), only a label: shown while Super is held; the binding is the compositor’s.
titlestringIts name in tips, prompts and notifications; unset, its name under plugins.
glyphstringIts glyph when its state names none.
activatestringWhat a click on it in a bar, or <name> activate over IPC, runs.
legendlist[]Keys its panel lists on ? to show in its bar too, after the bar’s own: [“Page_Up”, “Page_Down”].

ask

SettingTypeDefaultDescription
glyphstringglyph conversationIts glyph in a bar, so a turn waiting on you shows there too.
askstringRequired: the agent, a command speaking ACP on its stdio, kept running between turns.
cwdstringWhere its sessions work, on the agent’s machine; unset, $HOME.
idleinteger10Minutes without a turn before the agent is stopped; the next turn starts it again.
toolMatch, toolRunstringA tool name pattern (a regular expression): toolRun runs once a turn that used a matching tool ends.
notifystringin the sourceGiven a title and a text, tells of an answer while the panel is hidden, each replacing the last by its tag; printing default (a click) shows the panel.
openstringGiven the session, opens it in a terminal.
promptGlyphstringThe prompt’s glyph, its own (the agent’s face) over the one every input shares (glyphs.prompt).
placeholderstring"Ask {title}..."What the empty prompt says, {title} for the title.
linesinteger14The conversation’s height, in lines, declared so the panel holds still.

command

SettingTypeDescription
selectstringRuns given the chosen item’s id.
runstringRuns given an item’s id and the key of the action chosen from its own menu.

dictation

SettingTypeDescription
stopstringStops dictating.

dunst

SettingTypeDefaultDescription
watchstringin the sourcePrints whether dunst is paused, then again on every change dunst signals.
activatestring"dunstctl set-paused toggle"Pauses or resumes dunst’s notifications.
showmapin the sourceA struck bell, lit, while paused; a bell otherwise.

mako

SettingTypeDefaultDescription
watchstringin the sourcePrints whether mako’s do-not-disturb mode is on, then again on every change of mode mako signals.
activatestring"makoctl mode -t do-not-disturb"Turns the do-not-disturb mode on or off.
showmapin the sourceA struck bell, lit, while the mode is on; a bell otherwise.

niriMinimap

SettingTypeDefaultDescription
heightinteger30A workspace’s height on the map, in pixels.
maxWidthinteger180The widest a workspace gets on the map, in pixels; a wider one shrinks to fit.
opacitynumber0.7A window tile’s background opacity, 0 to 1.

recording

SettingTypeDescription
stopstringStops the recording.

tasks

SettingTypeDefaultAllowedDescription
glyphstringglyph tasksIts glyph, so its row has an icon without one of its own.
donestringGiven a task’s id and title, ticks it off and writes the file again.
reopenstringGiven a task’s id and title, unticks it and writes the file again.
addstringGiven a title, adds a task to the first list and writes the file again.
syncstringSyncs, as the menu opens on a file syncAfter minutes old, and after a tick.
syncAfterinteger5Minutes old the file may be before opening the menu syncs it; syncing on every opening would keep the calendar syncing.
staleAfterinteger120Minutes after which the last sync shows in warning.
sortstring"due""due", "priority", "title", "list"The order to start in; the sort action steps through them.
completedstring"hidden""hidden", "shown", "only"What the done ones show at the start; the completed action steps through them.
remindstringGiven a title and a time, as a timed task falls due; unset, no reminders.

Module options

programs.quick-key.enable

Whether to enable quick-key, a keyboard-driven Quickshell menu with live status.

Type: boolean

Default:

false

Example:

true

programs.quick-key.package

Shell package, its QML under share/quick-key

Type: package

Default:

quick-key.packages.${pkgs.stdenv.hostPlatform.system}.quick-key

programs.quick-key.calendarSync.enable

Whether to enable syncing calendars into the events the month shows.

Type: boolean

Default:

false

Example:

true

programs.quick-key.calendarSync.package

calendar-sync package

Type: package

Default:

quick-key.packages.${pkgs.stdenv.hostPlatform.system}.quick-key-calendar-sync

programs.quick-key.calendarSync.calendars

Path of the calendar list (YAML), edited by hand since its URLs are secret; it starts as a commented sample, and saving it syncs

Type: string

Default:

"${config.xdg.configHome}/quick-key/calendars.yaml"

programs.quick-key.calendarSync.eventsFile

Events written for the shell, in a folder of calendar-sync’s own (made 0700, its contents replaced) with vdirsyncer’s and khal’s files

Type: string

Default:

"${config.xdg.stateHome}/quick-key/events.json"

programs.quick-key.calendarSync.exec.add

Command that adds a task to the first list, given its title, for the tasks plugin

Type: string (read only)

Default: calendar-sync’s add, given a task’s title

programs.quick-key.calendarSync.exec.done

Command that ticks a task off, given its id and title, for the tasks plugin

Type: string (read only)

Default: calendar-sync’s done, given a task’s id and title

programs.quick-key.calendarSync.exec.reopen

Command that unticks a task, given its id and title, for the tasks plugin

Type: string (read only)

Default: calendar-sync’s reopen, given a task’s id and title

programs.quick-key.calendarSync.exec.sync

Command that syncs now, for a menu entry

Type: string (read only)

Default:

"${lib.getExe' pkgs.systemd "systemctl"} --user start --no-block quick-key-calendar-sync.service"

programs.quick-key.calendarSync.exec.syncAndWait

Command that syncs and returns once done, for a script that reads the files after

Type: string (read only)

Default:

"${lib.getExe' pkgs.systemd "systemctl"} --user start quick-key-calendar-sync.service"

programs.quick-key.calendarSync.interval

How often to sync, as a systemd OnCalendar expression

Type: string

Default:

"*:0/30"

programs.quick-key.calendarSync.tasksFile

Tasks written for the tasks plugin, from the calendars with tasks: true

Type: string (read only)

Default:

"${dirOf config.programs.quick-key.calendarSync.eventsFile}/tasks.json"

programs.quick-key.exec.ipc

Prefix for the shell’s IPC calls; append the target and function, e.g. menu toggle

Type: string

Default:

"${lib.getExe config.programs.quickshell.package} -c quick-key ipc call"

programs.quick-key.extraPackages

Packages first on the shell’s PATH, for what commands and plugins call by name; one here wins over a standard tool’s

Type: list of package

Default:

[ ]

Example:

[ config.services.dunst.package ]

programs.quick-key.settings

Written to $XDG_CONFIG_HOME/quick-key/config.json, which the shell checks as the configuration builds

Type: JSON value

Default:

{ }

Example:

{ theme.name = "nord"; clock.format = "%H:%M"; }

programs.quick-key.themes

Colour themes, written to $XDG_CONFIG_HOME/quick-key/themes/ and picked by settings.theme.name

Type: attribute set of (submodule)

Default:

{ }

programs.quick-key.themes.<name>.alert

Colour of what needs attention

Type: string

programs.quick-key.themes.<name>.background

Background colour

Type: string

programs.quick-key.themes.<name>.border

Colour of outlines and dividers; unset, the foreground at theme.disabledOpacity

Type: null or string

Default:

null

programs.quick-key.themes.<name>.bubble

Colour of your messages in a conversation; unset, a faint foreground

Type: null or string

Default:

null

programs.quick-key.themes.<name>.bubbleText

Colour of your messages’ text; unset, the text colour

Type: null or string

Default:

null

programs.quick-key.themes.<name>.foreground

Text colour

Type: string

programs.quick-key.themes.<name>.primary

Colour of what is on or in use

Type: string

programs.quick-key.themes.<name>.warning

Colour of what may soon need attention

Type: string