Skip to main content

max / alloy

2.5 KB · 50 lines History Blame Raw
1 # Alloy greetd configuration
2 #
3 # Boots into tuigreet on VT1. tuigreet prompts for user and password,
4 # then execs alloy-session, which puts the user's chosen day/night
5 # skeleton in place and execs sway. Pointing --cmd at bare sway would
6 # start a session against whatever skeleton happens to be on disk, and
7 # ~/.config/sway/config is one of the files the mode changes.
8 # tuigreet's --theme below names ANSI slots (gray, black,
9 # light_red ...); those slots carry Akari's tones because
10 # alloy-vtrgb.service repaints the console palette with setvtrgb before
11 # this greeter draws. The named colors here are meaningless without it.
12 #
13 # The screen has two surfaces, and every element belongs to one of them.
14 # The login card is the only thing tuigreet paints a background for
15 # (`container`, a bg); the clock above it and the status line below it
16 # are drawn straight onto the console, whose background is slot 0 and
17 # whose default text is slot 7. Slot 0 is the darkest tone in either
18 # polarity, so anything outside the card has to be a light tone and
19 # anything inside it a dark one. Getting that backwards is what the
20 # earlier string did: `time` and `action` were dark_gray (slot 8,
21 # content.muted) on slot 0, a ratio under 2:1, which left the clock and
22 # the F-key hints all but invisible on the first screen of a boot.
23 #
24 # The slot names, per skelgen's ANSI_16 under a light theme:
25 #
26 # gray (7) surface.raised, the login card
27 # white (15) surface.overlay, the lightest tone
28 # black (0) content.primary, the ink, and the console background
29 # dark_gray (8) content.muted
30 # light_red (9) action.primary, the theme's warm accent
31 #
32 # All five are achromatic slots or the accent, so they invert with the
33 # theme and this string reads the same way against the night table.
34 # `yellow` is status.warning and does not belong on a prompt; the accent
35 # is what an interactive element wants, and it clears 5:1 on the card
36 # where yellow sat under 3:1. `title` follows `border` and `greet`
37 # follows `text` in tuigreet, so neither needs naming here.
38 #
39 # Command must stay on a single line: greetd's TOML parser rejects the
40 # multi-line basic-string / backslash-continuation form ("expected
41 # equals sign on line, but found none").
42
43 [terminal]
44 vt = 1
45 switch = true
46
47 [default_session]
48 command = "tuigreet --time --remember --asterisks --cmd alloy-session --theme 'container=gray;border=dark_gray;text=black;time=white;prompt=light_red;input=black;action=white;button=light_red'"
49 user = "greeter"
50