deck.conf - the keys of Carbonian's Stream Deck
One key value per line; # starts a comment.
/etc/carbonian/deck.conf is read first, then ~/.config/carbonian/deck.conf.
A setting in the user's file wins over the same setting in /etc. Keys are
taken as a whole: once the user's file has a key line, its keys are
the whole deck and none of the system's are shown (start from a copy of the
system's file). carbonian-deck(1) reads both files again within a
second of a change, and redraws the deck. A line it cannot read is reported
on its standard error (the user journal) and skipped, never fatal.
When:
- idle 10min
- How long without a press before the deck dims to idle-brightness
(s, min or h; 0 never). The press that wakes
it runs nothing.
What: the keys count from 1, the top left key, along the rows (an
XL has 8 by 4).
- key N label
TEXT
- What the key shows. A Nerd Font glyph first, followed by a space, is drawn
large with the rest under it; \n breaks a line. The text shrinks to
fit the key.
- key N
program COMMAND
- What a press runs, through sh -c, with the session's
environment.
- key N color
NAME
- The glyph's colour, and the key's while it is held: a palette colour
(accent, color1 ... color15, highlight ...) or
#rrggbb. Default: accent.
- key N on
PATH
- A state the key shows: while the file PATH exists (~/ is the
home) the key shows its label-on and color-on instead of its
label and colour, within a second of the change. Its program is what makes
and removes the file (the voice agent's mute is one: carbonian-voice
mute toggle).
- key N
label-on TEXT
- key N
color-on NAME
- The label and colour while the on file exists.
- key N
none
- An empty slot (in the user's file, to leave a key blank).
How it looks:
- brightness
70%
- idle-brightness
10%
- font JetBrains
Mono:bold
- The labels' font, a fontconfig name.
- symbols Symbols Nerd
Font Mono
- Where the glyphs the label font lacks come from.
- font-size
15px
- The labels' size on a 96-pixel key (scaled on smaller keys).
The colours come from the palette
(/var/lib/carbonian/palette/palette): the key is surface_2, its text
foreground, an empty slot background.
key 1 label Overview
key 1 program carbonian-ctl overview
key 9 label Forest
key 9 program carbonian-palette set forest
key 9 color color2
/etc/carbonian/deck.conf
~/.config/carbonian/deck.conf
carbonian-deck(1), carbonian-palette(1),
carbonian-ctl(1)