Compare commits
21 Commits
26dc6f605e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 374f70c76f | |||
| 3536abc656 | |||
| baf2cd2e13 | |||
|
|
dbe07ea429 | ||
| fdf9790a73 | |||
| 5b95f6444f | |||
|
|
757fa873b8 | ||
| 0cd9ace669 | |||
| 3abeccf071 | |||
| 76941c55b7 | |||
| f658b0087e | |||
| ac24ac7c34 | |||
| 8f85097140 | |||
| 036931ac51 | |||
| 8fdd9dc423 | |||
| 8e8a142465 | |||
| d79ad3517e | |||
| e0fba56ee6 | |||
| 786a8ad30e | |||
| bcdd3e14ee | |||
| 0347156315 |
@@ -1,11 +1,12 @@
|
||||
# Nomarchy scheduled lock bump — the automated half of "rock-stable
|
||||
# without rotting": once a week, update flake.lock (inputs track pinned
|
||||
# without rotting": once a day, update flake.lock (inputs track pinned
|
||||
# release branches, so this never jumps a NixOS release — that's a
|
||||
# deliberate hand-edited v2, see agent/GOALS.md), gate it, and land it
|
||||
# on main only on green. `v1` promotion stays human, always.
|
||||
#
|
||||
# Fast lane: workflow_dispatch. For a security fix upstream, run this
|
||||
# workflow manually from the Actions tab instead of waiting for Monday.
|
||||
# workflow manually from the Actions tab instead of waiting for the
|
||||
# next daily run.
|
||||
#
|
||||
# Gate scope: `nix flake check --no-build` (eval tier) followed by a V1 build
|
||||
# (home-manager activation package + nixos toplevel) to catch compilation errors.
|
||||
@@ -18,7 +19,7 @@
|
||||
#
|
||||
# Failure mode: a red gate fails this run visibly and pushes nothing;
|
||||
# next schedule retries. A push race (someone landed on main mid-run)
|
||||
# also just fails the final push — rerun or wait a week.
|
||||
# also just fails the final push — rerun or wait a day.
|
||||
#
|
||||
# Container recipe (nixbld users, sandbox=false, pinned Nix, plain-shell
|
||||
# install) inherited from check.yml — the gotchas are documented there.
|
||||
@@ -27,7 +28,7 @@ name: Lock bump
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '17 5 * * 1' # Mondays 05:17 UTC
|
||||
- cron: '17 5 * * *' # daily 05:17 UTC
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
@@ -36,7 +36,7 @@ Flat on purpose. Two module trees, one options file each, no hidden layers.
|
||||
├── flake.nix # inputs + the downstream API (exports below)
|
||||
├── lib.nix # nomarchy.lib.mkFlake — one-call downstream wrapper
|
||||
├── state.json # ★ THE single source of truth (git-tracked!)
|
||||
├── themes/ # 24 presets: <slug>.json + optional <slug>/ assets
|
||||
├── themes/ # 28 presets: <slug>.json + optional <slug>/ assets
|
||||
│ ├── nord.json # palette (required, works alone)
|
||||
│ └── nord/ # assets (optional, fixed filenames)
|
||||
│ ├── backgrounds/ # wallpapers (pinned nomarchy-wallpapers input, not this repo)
|
||||
@@ -440,8 +440,9 @@ per theme — a single place to look, unlike the old distro's split:
|
||||
| `waybar.jsonc` | whole-swap for the bar *layout* (must be plain JSON) |
|
||||
| `rofi.rasi` | **whole-swap**: replaces the generated launcher/menu theme entirely |
|
||||
|
||||
Four themes ship a `waybar.css` identity (summer-day, summer-night,
|
||||
executive-slate, boreal). Custom user themes can live in
|
||||
Eight themes ship a `waybar.css` identity: the three Nomarchy-exclusive
|
||||
day/night pairs — boreal ↔ boreal-dawn, executive-slate ↔ executive-ivory,
|
||||
kiln ↔ kiln-clay — plus summer-night ↔ summer-day. Custom user themes can live in
|
||||
`$NOMARCHY_PATH/themes/` (preset lookup) and `nomarchy.themesDir` (eval-time
|
||||
asset probe) — including their own `backgrounds/`, which wins over the
|
||||
pinned `nomarchy-wallpapers` input (checked first); an explicit `wallpaper`
|
||||
@@ -450,7 +451,7 @@ path in `state.json` works too.
|
||||
## 5. Day-to-day
|
||||
|
||||
```sh
|
||||
nomarchy-state-sync list # 24 presets (nord, gruvbox, rose-pine, …)
|
||||
nomarchy-state-sync list # 28 presets (nord, gruvbox, rose-pine, …)
|
||||
nomarchy-state-sync apply kanagawa # whole desktop, one generation (~a switch)
|
||||
nomarchy-state-sync set ui.gapsOut 16 # tweak one knob (also a switch)
|
||||
nomarchy-state-sync bg next # cycle wallpapers — instant, no rebuild
|
||||
|
||||
@@ -33,24 +33,6 @@ flake pin are different root causes even when they show up on the same machine.
|
||||
|
||||
## NEXT
|
||||
|
||||
### 152. Generated waybar polish: bar height vs workspace highlighter, right-edge icon spacing
|
||||
|
||||
Bernardo, 2026-07-17. Two visual fixes to the **generated** bar (the one
|
||||
every theme without a `waybar.jsonc`/`waybar.css` whole-swap gets — the
|
||||
4 whole-swap themes are out of scope unless the parity rule drags them in):
|
||||
- **Bar height:** make the bar a bit taller so the selected-workspace
|
||||
highlighter no longer renders taller than the bar itself (today it
|
||||
visually overflows/clips the bar edge).
|
||||
- **Right-module spacing:** the icon distances on the right cluster look
|
||||
uneven — e.g. the power button sits too close to the screen edge; give
|
||||
the cluster consistent inter-icon spacing and sane end padding.
|
||||
|
||||
This is §3 visual-protocol work (agent/THEME-DESIGN.md + VERIFICATION §3):
|
||||
before/after screenshots, two themes (one generated palette + one
|
||||
whole-swap for the no-regression side), scripted checks first, actually
|
||||
view the captures. Waybar CSS ↔ tray-menu gotchas in agent/MEMORY.md
|
||||
apply (never scope `*`).
|
||||
|
||||
### 151. `[human]` v1 launch plan — devise with Bernardo (includes the GitHub move)
|
||||
|
||||
Bernardo, 2026-07-17: before tagging v1, sit down and devise the launch plan.
|
||||
@@ -129,8 +111,43 @@ high-ROI, etc.) live in the journal + ROADMAP — not here.*
|
||||
|
||||
### Product / day-2
|
||||
|
||||
### 153. Desktop widgets (clock / system stats) as an opt-in per-theme surface
|
||||
|
||||
Pitch (filed while shipping the three exclusive theme pairs, 2026-07-18):
|
||||
themed desktop widgets — a clock, calendar, or system-stats panel living on
|
||||
the wallpaper, conky-style — would deepen the identity themes (imagine
|
||||
kiln's copper stats panel or executive-ivory's letterhead clock). No such
|
||||
surface exists today, so it is a NEW theming surface: per CONVENTIONS it
|
||||
must consume the palette from the state JSON (no side pipeline) and ship
|
||||
as an opt-in `nomarchy.*` toggle with a commented template example. Engine
|
||||
choice is the real decision — conky is X11-era; a Wayland layer-shell
|
||||
widget system (eww or a small QML/GTK layer-shell tool) fits the stack
|
||||
better. Cost: moderate (engine spike + palette bridge + 2–3 widget
|
||||
layouts; start with the exclusive pairs only, not all 28 themes). Value:
|
||||
v1+ polish, not a v1 blocker.
|
||||
|
||||
### 146. `[watch]` hypridle hangs instead of exiting when its compositor vanishes
|
||||
|
||||
**Re-measured 2026-07-20 (dev box; user journal is persistent back to 2026-05-01,
|
||||
so this is the full window, not a fragment).** The linger fix landed between 17:25
|
||||
and 20:13 on 2026-07-16: the last zombie-shaped disconnect is the known one
|
||||
(17:25:39, PID 1698 — logout→greeter with **no** following `Stopped hypridle`), and
|
||||
**every** `Disconnected from pollfd id 1` since is a clean teardown bracketed by both
|
||||
a logind `Session N logged out` and a systemd `Stopped hypridle` within ≤11s
|
||||
(07-16 20:13:04, 07-17 17:04:38, 07-18 13:35:25, 07-19 16:46:49). **Genuine zombies
|
||||
post-fix: 0.** The live daemon is healthy too — PID 1707: `active`, `NRestarts=0`,
|
||||
`ExecMainPID`==pid, `ss` Recv-Q 0 on its D-Bus socket (reading, not the 48 KB-unread
|
||||
wedge), `WCHAN futex_do_wait`, logged activity <10 min before inspection. **Why this
|
||||
stays open a little longer, not closed today:** all four post-fix disconnects were
|
||||
*deliberate* logouts — no Hyprland *crash* (the zombie's actual trigger; the nearby
|
||||
coredumps were xdg-desktop-portal/swww/swayosd during teardown, not the compositor)
|
||||
has occurred since the fix, so the crash path is confirmed by argument (a crash ends
|
||||
the logind session too → no-linger manager teardown reaps hypridle) but not yet by an
|
||||
observed crash, and ~4 days is under the "few weeks" bar. **Close condition:** if
|
||||
genuine zombies stay 0 by ~2026-08-10 (≈3 weeks post-fix), close unbuilt; one wedged
|
||||
process (`ps` alive + `ss` Recv-Q high + `NRestarts=0` while `active`) reopens it as
|
||||
real work. Everything below is prior context, unchanged.
|
||||
|
||||
**Rewritten 2026-07-16, hours after filing: the premise was disproven and almost
|
||||
nothing survives.** As filed it said hypridle "dies silently ~2×/week — 19 times
|
||||
in 11 days", with Jul 14 as the clean example ("`CRITICAL` at 13:08:17, then
|
||||
@@ -178,25 +195,6 @@ If that count is zero over a few weeks post-linger, **close this unbuilt**. If i
|
||||
is not, the upstream issue has sat ten months on vaxerski's "that will cause a
|
||||
segfault no?" and a reproducer would be worth more than a local guard.
|
||||
|
||||
### 150. Extract the display-transition tool — idle.nix carries a lossy copy under the same name
|
||||
|
||||
Found by the 2026-07-17 structural audit. `modules/home/idle.nix:23-53` defines
|
||||
`miniTransition`, a ~22-line `writeShellScriptBin` named
|
||||
**`nomarchy-display-transition`** — the same binary name as the real ~175-line
|
||||
tool in `modules/home/hyprland.nix:136-310` — implementing only
|
||||
`undock|enable`, with none of the full tool's safety: no logging, no
|
||||
lid-inhibitor gate, no `restore_keyboards`, no workspace moves, no
|
||||
failure dump. The comment says why: "a mini transition avoids a circular
|
||||
import on hyprland.nix". No PATH collision today (the mini is never installed;
|
||||
it is baked by store path into hypridle's wake tool via `display-tools.nix`),
|
||||
but nothing asserts the two stay behaviourally consistent, and this is the
|
||||
subsystem where #100/#142/#148 all lived. Pitch: extract the full tool into
|
||||
its own module file (e.g. `modules/home/display-transition.nix`) imported by
|
||||
both hyprland.nix and idle.nix, delete the mini, re-run the
|
||||
`tools/monitor-fallback.nix` harness + `checks.docking-ux` as the V2 gate.
|
||||
Cost: a focused refactor of safety-critical code — deliberately NOT done as
|
||||
hygiene drive-by; deserves its own iteration.
|
||||
|
||||
### 149. `[watch]` Waybar's exec-once workaround may be defending against nothing post-linger
|
||||
|
||||
Spun out of #147 (shipped 2026-07-17) so its loose thread survives the entry:
|
||||
@@ -208,6 +206,18 @@ defending against nothing. Do not rip it out on this note alone: it works, and
|
||||
the claim needs a real relogin without linger to test (V3 — the same relogin
|
||||
that verifies #148's watcher fix would answer it).
|
||||
|
||||
**2026-07-18 evidence: the warm relogin is real post-linger.** On the dev
|
||||
box the user manager survived a Hyprland logout (the tty1 greetd session
|
||||
keeps it alive — no linger involved) and the teardown broke:
|
||||
`graphical-session.target`'s stop transaction was rejected as destructive
|
||||
(easyeffects had a queued start job), the target stayed active,
|
||||
cliphist/swaync/portals/swayosd crash-looped against the dead Wayland
|
||||
socket into `start-limit-hit`, and the relogin's plain `start` was a no-op
|
||||
— doctor red for the whole session. Session bring-up now stops stale
|
||||
targets + `reset-failed` before starting (`hyprland.nix`
|
||||
systemd.extraCommands); relogin V3 check queued in HARDWARE-QUEUE. The
|
||||
exec-once posture this entry watches is therefore still earning its keep.
|
||||
|
||||
### 120. A netinstall ISO, next to the fat offline one
|
||||
|
||||
**Deferred to PROPOSED 2026-07-16 (Bernardo): not now.** Nothing below is
|
||||
|
||||
@@ -46,7 +46,8 @@ those, it probably shouldn't exist.
|
||||
named `writeShellScriptBin`s on PATH (so static configs can exec them
|
||||
by bare name), and are added to **both** the generated `waybar.nix`
|
||||
config **and** every `waybar.jsonc` whole-swap — summer-day, summer-night,
|
||||
executive-slate and boreal (the parity rule).
|
||||
executive-slate, executive-ivory, boreal, boreal-dawn, kiln and
|
||||
kiln-clay (the parity rule).
|
||||
- **Theming:** every new visual surface consumes the palette from the
|
||||
state JSON. There is no second renderer to keep in sync — add the key
|
||||
to the JSON, consume it in the module.
|
||||
|
||||
@@ -28,6 +28,42 @@ Everything else below stays open; order is convenience, not a gate.
|
||||
|
||||
## Any machine (dev box is fine)
|
||||
|
||||
- [ ] **Theme pairs V3 — the four new themes on real GL** — after pulling
|
||||
the pair commits: `nomarchy-state-sync apply <slug>` for each of
|
||||
boreal-dawn, executive-ivory, kiln, kiln-clay. Pass = all of:
|
||||
(1) the bar renders true — boreal-dawn's frosted pills actually blur
|
||||
what's behind them (softGL VM can't prove blur), kiln's plank shows
|
||||
its copper edge, no font-fallback boxes (GeistMono / JetBrainsMono /
|
||||
CaskaydiaCove); (2) wallpaper paints at native res, no banding on the
|
||||
kiln ember gradient; (3) Kitty + btop under each theme — btop colors
|
||||
match (the VM never started the GL terminal; btop.theme is
|
||||
file-asserted only); (4) boreal-dawn app launcher (SUPER+Space) lays
|
||||
out its icon grid; (5) an nm-applet/tray menu is readable under all
|
||||
four (the `*`-reset counter-rules). If a VM-rendered preview looks
|
||||
off in the theme-picker grid next to the hardware-captured ones,
|
||||
recapture that preview on hardware into themes/<slug>/preview.png.
|
||||
- [ ] **Light-theme contrast refits (2026-07-18 report)** — under any
|
||||
light theme: (1) with two workspaces open, the inactive number is
|
||||
readable on the bar (subtext, not the washed-out grey); (2) hover a
|
||||
notification popup — background stays the theme's light card with a
|
||||
faint tint, text readable (the swaync default's dark
|
||||
.notification-default-action hover is now overridden); close
|
||||
button matches the palette. VM-verified with a hover probe under
|
||||
summer-day; this is the on-hardware confirmation of the report.
|
||||
- [ ] **Auto-theme pair flip on hardware** — set
|
||||
`settings.autoTheme.{day,night}` to one of the new pairs (e.g.
|
||||
kiln-clay / kiln), set sunset (or sunrise) a few minutes ahead via
|
||||
Look & Feel › Auto theme (the time edit itself rebuilds — since the
|
||||
exact-time revision the timer fires AT the configured minute, no
|
||||
15-min poll), let the timer flip once each way. Pass = (1)
|
||||
`systemctl --user list-timers nomarchy-auto-theme` shows the two
|
||||
configured times as the trigger; (2) the switch lands within ~a
|
||||
minute of the configured time; (3) the whole desktop switches in
|
||||
one generation, and nothing leaks from the previous theme — fonts,
|
||||
rounding, terminal opacity all reset (the per-theme appearance
|
||||
block), wallpaper follows; (4) with autoCommit on, `git -C
|
||||
~/.nomarchy log` shows an `apply theme` commit and state.json is
|
||||
not left dirty (the 0.5.1 pathspec fix).
|
||||
- [ ] **#148 dock-intent enforcement without auto-profiles (dev box, docked)** —
|
||||
after pulling the #148 commit: **log out and back in first** — the
|
||||
watcher is `exec-once`, so `nomarchy-home` alone leaves the old one
|
||||
@@ -488,6 +524,31 @@ Everything else below stays open; order is convenience, not a gate.
|
||||
`~/.nomarchy/flake.nix` has `?ref=main` (not lagging v1). **Pass:**
|
||||
`nomarchy-rebuild` does not die with
|
||||
`The option 'nomarchy.hardware' does not exist`.
|
||||
- [ ] **Relogin session recovery (2026-07-18 incident)** — after pulling
|
||||
the session-recovery commit and rebuilding: from a full Hyprland
|
||||
session (bar up, a browser open so easyeffects/tray are busy), log
|
||||
out (SUPER+SHIFT+E) and log straight back in at the greeter — do
|
||||
**not** reboot between. **Pass:** `nomarchy-doctor` shows *no failed
|
||||
user units*; `systemctl --user status cliphist swaync
|
||||
xdg-desktop-portal-hyprland swayosd` are all `active (running)`; the
|
||||
bar, notifications, and clipboard history (SUPER+V) work. This is
|
||||
the V3 close for the stale `graphical-session.target` /
|
||||
`start-limit-hit` relogin breakage (BACKLOG #149 note).
|
||||
- [ ] **#150 hypridle wake path now uses the FULL undock** — after pulling
|
||||
the #150 commit + `nomarchy-home`: the hyprland-side transition/keyboard
|
||||
tools are byte-identical (proven by store-path equality), so only the
|
||||
hypridle wake behaviour changed. Two checks: **(a) suspend/resume while
|
||||
docked** (lid closed, external on) — suspend, resume; pass = you land
|
||||
back docked on the external with the panel still off and remembered
|
||||
external-keyboard layouts intact (the wake now runs the full undock,
|
||||
which `restore_keyboards` after any reload; the old mini did not). **(b)
|
||||
zero-output rescue** — the #127 case (dock mode, external gone/black,
|
||||
eDP disabled): pass = the internal panel comes back lit, workspaces move
|
||||
to it, and `~/nomarchy-display-dump-*.txt` is written iff it stays dark.
|
||||
Watch for a regression: the full undock clears dock-intent, so confirm a
|
||||
*transient* zero-output blip on resume while genuinely still docked does
|
||||
not leave you undocked with the laptop panel on (the external re-add
|
||||
should re-dock via the watcher — verify it does).
|
||||
|
||||
## AMD dev box only
|
||||
- [ ] **#118 smartd still runs where drives DO have SMART** (this commit) — the
|
||||
@@ -570,6 +631,15 @@ Everything else below stays open; order is convenience, not a gate.
|
||||
Acer's own fontconfig/DPI resolving `ch` the same way — try it under a
|
||||
**JetBrainsMono 14 theme** (summer-day/night, kanagawa), the widest case.
|
||||
|
||||
- [ ] **Theme-switch bar round-trip (2026-07-19 waybar-poke + gtk-pin fix)** —
|
||||
after `nomarchy-pull` + `nomarchy-home`, switch dark → light → dark
|
||||
(e.g. boreal → kiln-clay → kiln). Pass = the bar visibly restarts on
|
||||
each switch and the workspace digits land per theme (dark-on-accent
|
||||
active pill, dimmed inactives on dark themes) with no color carried
|
||||
over from the previous theme; then start/stop a screen recording and
|
||||
toggle airplane mode — the supervisor must survive both pokes
|
||||
(`pgrep -lx nomarchy-waybar` still lists it).
|
||||
|
||||
## Latitude 5310 / 5410 only
|
||||
- [ ] **v1 QA batch on-hardware pass** (583708d batch was QEMU-verified) —
|
||||
general smoke before the next `main → v1` promotion (broader than
|
||||
|
||||
@@ -19,6 +19,26 @@ Template:
|
||||
|
||||
---
|
||||
|
||||
## 2026-07-19 — stale workspace-digit colors after theme switch (prev commit + this)
|
||||
- **Task:** Bernardo live: bar digit colors wrong for boreal /
|
||||
executive-slate / kiln after switching; a reboot "fixed" it.
|
||||
- **Did:** Root-caused on Newton. (1) Every bar poke used `pkill -x
|
||||
waybar`, but the nixpkgs wrap renamed the comm `.waybar-wrapped` —
|
||||
switches never restarted/reloaded the bar (and unanchored RTMIN pokes
|
||||
were killing the supervisor). (2) Stylix's #98 bare `button label` pin
|
||||
outranks the colors waybar.css inherits onto `#workspaces button`,
|
||||
frozen at bar start — all three screenshots' digits were kiln-clay's
|
||||
@text. Fixed the pattern in 7 sites; scoped the #98 pin to dialogs.
|
||||
- **Verified:** V0 flake check + py_compile; V1 HM generation + system
|
||||
toplevel; live on Newton (V3-grade): restart via the new pattern,
|
||||
RTMIN poke with the supervisor surviving, pixel-verified boreal digits
|
||||
(@base-on-accent active, @muted inactive) under the scoped gtk.css.
|
||||
- **Pending:** HARDWARE-QUEUE: deploy round-trip after nomarchy-home.
|
||||
NB: waybar 0.15.0 `reload_style_on_change` is inert with HM symlinks
|
||||
(upstream); harmless now that the restart path works.
|
||||
- **Next suggestion:** close the queue entry once Bernardo's deploy
|
||||
round-trip passes.
|
||||
|
||||
## 2026-07-17 — #143 closed via upstream's own knob; executive-slate gets the icon grid (f899b19 + this)
|
||||
- **Task:** Bernardo live: rofi#2317 got a maintainer reply → adopt; plus
|
||||
"make executive-slate's app menu the boreal-style icon grid".
|
||||
|
||||
@@ -67,14 +67,15 @@ State lives in `settings.autoTheme`:
|
||||
| Field | Meaning |
|
||||
|---|---|
|
||||
| `enable` | on / off |
|
||||
| `day` / `night` | theme slugs — e.g. `summer-day` / `summer-night` (see `nomarchy-state-sync list`) |
|
||||
| `day` / `night` | theme slugs (see `nomarchy-state-sync list`) — the exclusive pairs are made for this: `boreal-dawn`/`boreal`, `executive-ivory`/`executive-slate`, `kiln-clay`/`kiln`, `summer-day`/`summer-night` |
|
||||
| `sunrise` / `sunset` | switch times, `"HH:MM"` (24-hour) |
|
||||
|
||||
A timer re-checks every ~15 minutes: the day theme applies around sunrise, the
|
||||
night theme around sunset — but it only rebuilds when the active theme
|
||||
actually needs to change, so most checks do nothing. Enabling rebuilds once
|
||||
(to install the timer); disabling is instant. Preview the current decision
|
||||
without switching with `nomarchy-state-sync auto --which`.
|
||||
A timer fires exactly at the configured sunrise and sunset (plus once shortly
|
||||
after login, and it catches up on a transition missed while the machine was
|
||||
off or asleep) — it only rebuilds when the active theme actually needs to
|
||||
change. The times are baked into the timer, so editing them (or enabling)
|
||||
rebuilds once; disabling is instant. Preview the current decision without
|
||||
switching with `nomarchy-state-sync auto --which`.
|
||||
|
||||
These values are deliberately kept at normal priority in the modules, so they
|
||||
stay owned by the theme system. If you *insist* on pinning one in `home.nix`
|
||||
|
||||
@@ -316,11 +316,17 @@ Design/decision records and a running log of shipped work (items marked
|
||||
drives `nomarchy-state-sync auto`, which picks day vs night by the local
|
||||
clock and applies the preset **only if it differs** (idempotent).
|
||||
`modules/home/autotheme.nix` installs a user timer
|
||||
(`OnStartupSec` + `OnCalendar=*:0/15` + `Persistent`, gated on the state
|
||||
(`OnStartupSec` + `OnCalendar` + `Persistent`, gated on the state
|
||||
flag) that ticks `auto`; Look & Feel › Auto theme toggles it and picks the
|
||||
pair/times. `cmd_apply`'s core was factored into `apply_named` so `auto`
|
||||
reuses it verbatim. Periodic (not exact sunrise/sunset timers) for
|
||||
robustness to suspend/DST; the idempotent `auto` keeps ticks cheap. Enable
|
||||
reuses it verbatim. Originally a 15-min poll (`OnCalendar=*:0/15`) for
|
||||
robustness to suspend/DST; **revised** (Bernardo 2026-07-18) to fire
|
||||
exactly at the configured sunrise/sunset — `Persistent` covers powered-off
|
||||
gaps, systemd fires elapsed calendar timers on resume, and `OnStartupSec`
|
||||
settles login, so the poll bought nothing but a ≤15-min switch lag. The
|
||||
times are now baked into `OnCalendar`, so the menu's Sunrise/Sunset edits
|
||||
rebuild via `auto --force` (day/night slugs stay live reads; editing the
|
||||
on-screen slot applies immediately since no poll catches it up). Enable
|
||||
rebuilds once (installs the timer + `auto --force`); disable is instant
|
||||
(the flag flips and `auto` self-gates). **V2:** `checks.auto-theme` moves
|
||||
the VM clock across a configured sunset/sunrise and asserts the theme flips
|
||||
@@ -521,6 +527,39 @@ Design/decision records and a running log of shipped work (items marked
|
||||
V1: template HM activation built with `unstable.hello`, closure carries
|
||||
the unstable store path; `checks.unstable-seam` (eval-only) guards the
|
||||
seam permanently; lock diff added exactly the one node.
|
||||
- ✓ **Display-transition tool de-duplicated (#150, 2026-07-20):** the full
|
||||
`nomarchy-display-transition` (dock/undock/enable — logging, the lid-inhibitor
|
||||
gate, `restore_keyboards`, the failure dump) moved out of `hyprland.nix` into
|
||||
its own leaf `modules/home/display-transition.nix`, and the keyboard helper it
|
||||
calls into `modules/home/keyboard-tool.nix`; `hyprland.nix` and `idle.nix` now
|
||||
import the ONE copy. This kills the lossy ~22-line mini `idle.nix` carried
|
||||
under the same binary name to dodge a circular import — so the hypridle wake
|
||||
path (`after_sleep` / DPMS `on-resume`) gets the real undock, i.e.
|
||||
`restore_keyboards` after a reload and the evidence dump on enable-failure,
|
||||
not a bare keyword+reload. Behaviour on the hyprland side is unchanged —
|
||||
**proven** by byte-identical store paths for the built
|
||||
`nomarchy-display-transition` / `nomarchy-keyboard-layout` on HEAD vs the
|
||||
refactor. Gates: parse + home/toplevel builds + `checks.docking-ux`
|
||||
(structural, `bash -n` + safety-feature greps) all green. The
|
||||
`tools/monitor-fallback.nix` dock VM harness was **red on `main` at the
|
||||
time** — a flaky 15s bound on the #148 re-dock (identical failure on clean
|
||||
HEAD), diagnosed and fixed the same day (see below), so it did not gate this
|
||||
landing; the dock transition inside it always ran `result=ok`. The idle
|
||||
wake-path behaviour change (full undock, incl. dock-intent clearing +
|
||||
`restore_keyboards`) is V3 — HARDWARE-QUEUE.
|
||||
- ✓ **Dock harness de-flaked (#154, 2026-07-20):** `tools/monitor-fallback.nix`
|
||||
flaked at the #148 reload-mid-dock assertion — after a lid-closed
|
||||
`hyprctl reload` re-lights the disabled `Virtual-1` panel, the watcher's
|
||||
`enforce_dock_intent` re-disables it, but only on the loop's 1s **idle
|
||||
tick** (a reload re-enables an existing connector, emitting no
|
||||
`monitoradded`, and chatty IPC events `continue` past `reconcile`). Under
|
||||
the softGL VM's load — swaync crash-loops against the absent Vulkan device —
|
||||
that idle tick is starved and the (correct, prompt-on-hardware) re-dock
|
||||
lands ~15-20s out, right on the old `timeout=15`. Instrumented run proved
|
||||
the mechanism fires with `dock-intent=true` and re-disables the panel; fix
|
||||
is the bound (15→45s, matching the test's other 20-30s waits), not the
|
||||
watcher. Harness now green end-to-end (61s). Not a product bug and unrelated
|
||||
to #150 (byte-identical tool store paths).
|
||||
- ✓ **The idle brick's CAUSE found (#127 closed, 2026-07-17):** the incident
|
||||
was misdated — it did not happen "before 12:51:34 Jul 15" (that boot was
|
||||
healthy all day and ended in a routine clean reboot); it ended the
|
||||
@@ -1834,8 +1873,9 @@ Design/decision records and a running log of shipped work (items marked
|
||||
builds `system.build.toplevel`, and on green lands on `main` — which nobody
|
||||
tracks, so a bad bump costs a debug session, not a user outage; `v1` stays
|
||||
the manual on-hardware gate (it only ever fast-forwards, never force-pushed,
|
||||
or a user's locked rev can vanish from history). **Cadence weekly**
|
||||
(release-26.05 doesn't move fast; nightly is just churn), and `nix flake
|
||||
or a user's locked rev can vanish from history). **Cadence daily**
|
||||
(2026-07-20; was weekly — release-26.05 doesn't move fast, but daily
|
||||
shrinks security-patch latency and a no-op bump is cheap), and `nix flake
|
||||
update` stays *within* the pinned release branches — no surprise major bump
|
||||
(a 26.11 jump is a deliberate `v2`, hand-edited in flake.nix). Side benefit:
|
||||
shrinks the security-patch latency the single-input model otherwise imposes
|
||||
@@ -1843,8 +1883,9 @@ Design/decision records and a running log of shipped work (items marked
|
||||
already eval/build/VM-tested and one hardware promotion away from `v1` —
|
||||
worth fast-laning lock-only/security bumps ahead of feature batches.
|
||||
**Shipped since:** `.gitea/workflows/check.yml` (eval tier on every main
|
||||
push) and `bump.yml` (Monday 05:17 UTC scheduled lock bump, eval + V1
|
||||
build gate, auto-lands on green — first landing 8fded63, 2026-07-06).
|
||||
push) and `bump.yml` (daily 05:17 UTC scheduled lock bump, eval + V1
|
||||
build gate, auto-lands on green — first landing 8fded63, 2026-07-06;
|
||||
cadence weekly→daily 2026-07-20).
|
||||
2026-07-12: both gates moved from one big `nix flake check --no-build`
|
||||
(~6.0 GB peak RSS — OOM'd the 4 GB VPS, then could never fit the
|
||||
runner's 2 GB container cap) to `tools/ci-eval.sh`, one output per nix
|
||||
@@ -1941,6 +1982,12 @@ Design/decision records and a running log of shipped work (items marked
|
||||
unsupervised/custom bars; `reload_style_on_change` stays for manual
|
||||
`home-update` restyles. VM-verified on the headless software-GL
|
||||
desktop: SIGKILL → new pid; clean kill → respawn; SIGUSR2 → alive.
|
||||
**Follow-up (2026-07-19):** a later waybar package wrap renamed the
|
||||
comm to `.waybar-wrapped`, silently no-oping every `pkill -x waybar`
|
||||
(switches stopped touching the bar → the stale workspace-digit-color
|
||||
bug), while the *unanchored* RTMIN pokes substring-matched the
|
||||
supervisor's `nomarchy-waybar` comm and killed it. All pokes now use
|
||||
`-x 'waybar|\.waybar-wrapped'`.
|
||||
- ✓ **`sys-rebuild`** (Latitude QA request): the no-update twin of
|
||||
`sys-update` — snapshot-first system rebuild against the *current*
|
||||
lock, for config-only changes; `home-update` was already lock-free.
|
||||
|
||||
38
flake.lock
generated
38
flake.lock
generated
@@ -145,11 +145,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1783740085,
|
||||
"narHash": "sha256-qajyHfZY29G2oEQk+uHxmsJcRoBUBXP9maTpFlwP/dI=",
|
||||
"lastModified": 1784350909,
|
||||
"narHash": "sha256-ZWyzLbS1yKUTeFJLmdVuWNnHttL333/ldJbEE+KzCrM=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "3cd22efe6471dc7365c822bd9ad73a21e55f38fb",
|
||||
"rev": "4ce190229c73d44536caa7072f6308fb2d8feeb3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -166,11 +166,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1783792734,
|
||||
"narHash": "sha256-50rvY9GdFvpYDcMLcD/4cWSi0hVxArT5wsGlVsHy8eY=",
|
||||
"lastModified": 1784310968,
|
||||
"narHash": "sha256-rkSPTePrKqs4dg+i7ZFCq93+HrClac6oSwXX927SVjA=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "8efb4337e857949f4cfac86d12ef1066f417f31f",
|
||||
"rev": "779c32a00155994c86cde8213a8dd4df139d4355",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -182,11 +182,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1783703440,
|
||||
"narHash": "sha256-O3/YajjWo001VUIgD8BwaRdSNLUFe7nZ1qV5TwhRBcw=",
|
||||
"lastModified": 1784432872,
|
||||
"narHash": "sha256-n3gKTBIV4ZA5VQpUakffBe3KGu4+mhPoA34rrqS0GkA=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "8f0500b9660505dc3cb647775fe9a978a74b5283",
|
||||
"rev": "fd1462031fdee08f65fd0b4c6b64e22239a77870",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -198,11 +198,11 @@
|
||||
},
|
||||
"nixpkgs-unstable": {
|
||||
"locked": {
|
||||
"lastModified": 1784120854,
|
||||
"narHash": "sha256-KesHgItiZPgGX740axSiQLcIQ8D24MDqNpkKYWIek8k=",
|
||||
"lastModified": 1784497964,
|
||||
"narHash": "sha256-vlHUuqAcbcH2RKmHbPiuQzbv1pnzzavXnI62RD0bqCU=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "753cc8a3a87467296ddd1fa93f0cc3e81120ee46",
|
||||
"rev": "241313f4e8e508cb9b13278c2b0fa25b9ca27163",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -215,11 +215,11 @@
|
||||
"nomarchy-wallpapers": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1784302860,
|
||||
"narHash": "sha256-nQ+eLEggLxDcbKks3Ui6rbJ4P24H2JXenLLg9si007M=",
|
||||
"lastModified": 1784478251,
|
||||
"narHash": "sha256-sEBx2ce6g0398FlclNwfv5FuwZ1WzLYNHK6jX/2kV88=",
|
||||
"ref": "main",
|
||||
"rev": "803b48ddf35aeff08999c8c7f563457181105cf5",
|
||||
"revCount": 2,
|
||||
"rev": "5c361e17b524b6ef27fb7ba948269d0e0c6e954e",
|
||||
"revCount": 5,
|
||||
"type": "git",
|
||||
"url": "https://git.bemagri.xyz/bernardo/Nomarchy-Wallpapers.git"
|
||||
},
|
||||
@@ -284,11 +284,11 @@
|
||||
"tinted-zed": "tinted-zed"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1783359251,
|
||||
"narHash": "sha256-HUiCnEVlJ4n+qJlZojiz/zv+P0cqM5zsg1dxpz2J7Mg=",
|
||||
"lastModified": 1784060273,
|
||||
"narHash": "sha256-14rIy2kTs5CufmDpgJrwkR+7IzuCAXyLYDAx6ixfRFc=",
|
||||
"owner": "nix-community",
|
||||
"repo": "stylix",
|
||||
"rev": "e602ad042f00409f33c8ad2829cd8d59ba345c7e",
|
||||
"rev": "2245fa9e16034149b6501834b99863a486e94725",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
75
flake.nix
75
flake.nix
@@ -342,6 +342,48 @@
|
||||
pkgs.runCommand "nomarchy-state-bridges" { }
|
||||
"touch $out"; # all ${toString (builtins.length cases)} assertions held at eval
|
||||
|
||||
# The baked auto-theme timer (#79 revision): sunrise/sunset land in
|
||||
# the unit's OnCalendar at rebuild, and nothing in a build fails
|
||||
# when that bake goes stale or produces a calendar systemd rejects
|
||||
# — so assert it at eval, state-bridges style.
|
||||
auto-theme-timer =
|
||||
let
|
||||
homeWith = stateFile:
|
||||
(downstream.homeConfigurations.me.extendModules {
|
||||
modules = [{
|
||||
nomarchy.stateFile = nixpkgs.lib.mkForce stateFile;
|
||||
}];
|
||||
}).config;
|
||||
atState = name: at: stateFileOf name { settings.autoTheme = at; };
|
||||
on = homeWith (atState "state-autotheme-on.json" {
|
||||
enable = true; day = "summer-day"; night = "summer-night";
|
||||
sunrise = "06:30"; sunset = "21:45";
|
||||
});
|
||||
garbage = homeWith (atState "state-autotheme-garbage.json" {
|
||||
enable = true; day = "summer-day"; night = "summer-night";
|
||||
sunrise = "sometime"; sunset = "25:99";
|
||||
});
|
||||
off = homeWith absentState; # template carries no autoTheme key
|
||||
cal = c: c.systemd.user.timers.nomarchy-auto-theme.Timer.OnCalendar;
|
||||
cases = [
|
||||
{ n = "configured times are baked into OnCalendar";
|
||||
ok = cal on == [ "*-*-* 06:30:00" "*-*-* 21:45:00" ]; }
|
||||
{ n = "garbage times fall back to 07:00/20:00";
|
||||
ok = cal garbage == [ "*-*-* 07:00:00" "*-*-* 20:00:00" ]; }
|
||||
{ n = "disabled → no timer unit installed";
|
||||
ok = !(off.systemd.user.timers ? nomarchy-auto-theme); }
|
||||
];
|
||||
failed = builtins.filter (c: !c.ok) cases;
|
||||
in
|
||||
if failed != [ ] then
|
||||
throw ''
|
||||
Auto-theme timer bake broken — settings.autoTheme no longer
|
||||
reaches the unit as expected:
|
||||
${nixpkgs.lib.concatMapStringsSep "\n" (c: " ✗ ${c.n}") failed}''
|
||||
else
|
||||
pkgs.runCommand "nomarchy-auto-theme-timer" { }
|
||||
"touch $out"; # all ${toString (builtins.length cases)} assertions held at eval
|
||||
|
||||
# The bridge, end to end on a booted machine: checks.state-bridges
|
||||
# proves the option flips at eval, this proves a state key alone
|
||||
# reaches a RUNNING service. The node sets no
|
||||
@@ -2204,10 +2246,14 @@
|
||||
# `home-manager switch` is stubbed via NOMARCHY_REBUILD (that
|
||||
# generic apply path is exercised by every manual theme change);
|
||||
# this isolates the auto decision + apply + rebuild-trigger.
|
||||
# The state dir is a git repo with autoCommit on, so every set/apply
|
||||
# also exercises auto_commit against a repo that has ONLY state.json
|
||||
# — the post-#107 shape whose dead legacy pathspecs once aborted
|
||||
# every commit silently.
|
||||
auto-theme = pkgs.testers.runNixOSTest {
|
||||
name = "nomarchy-auto-theme";
|
||||
nodes.machine = { pkgs, ... }: {
|
||||
environment.systemPackages = [ pkgs.nomarchy-state-sync ];
|
||||
environment.systemPackages = [ pkgs.nomarchy-state-sync pkgs.git ];
|
||||
time.timeZone = "UTC"; # naive HH:MM == the clock we set
|
||||
};
|
||||
testScript = ''
|
||||
@@ -2220,6 +2266,14 @@
|
||||
machine.succeed(
|
||||
"echo '{\"slug\":\"summer-day\"}' > /root/.nomarchy/state.json"
|
||||
)
|
||||
# Git-tracked like a real downstream flake — no legacy
|
||||
# theme-state.json/theme.json anywhere in its history.
|
||||
machine.succeed(
|
||||
"git -C /root/.nomarchy init -q"
|
||||
" && git -C /root/.nomarchy add state.json"
|
||||
" && git -C /root/.nomarchy -c user.name=t -c user.email=t@t"
|
||||
" commit -qm init"
|
||||
)
|
||||
machine.succeed(
|
||||
"printf '#!/bin/sh\\necho switch >> /root/rebuilds\\n' > /root/rebuild"
|
||||
" && chmod +x /root/rebuild"
|
||||
@@ -2229,14 +2283,24 @@
|
||||
"NOMARCHY_DEFAULT_THEMES=${pkgs.nomarchy-default-themes} "
|
||||
"NOMARCHY_REBUILD=/root/rebuild ")
|
||||
|
||||
# Pair + schedule (setup writes only, no rebuild).
|
||||
for kv in ["settings.autoTheme.enable true",
|
||||
# Pair + schedule (setup writes only, no rebuild). autoCommit
|
||||
# first, so every following write must land as its own commit.
|
||||
for kv in ["settings.autoCommit true",
|
||||
"settings.autoTheme.enable true",
|
||||
"settings.autoTheme.day summer-day",
|
||||
"settings.autoTheme.night summer-night",
|
||||
"settings.autoTheme.sunrise 07:00",
|
||||
"settings.autoTheme.sunset 20:00"]:
|
||||
machine.succeed(env + "nomarchy-state-sync --quiet set " + kv + " --no-switch")
|
||||
|
||||
# Every `set` above auto-committed (the regression: dead legacy
|
||||
# pathspecs made `git commit` abort, skipping ALL of these).
|
||||
machine.succeed(
|
||||
"git -C /root/.nomarchy log --format=%s"
|
||||
" | grep -qF 'set settings.autoTheme.sunset'"
|
||||
)
|
||||
machine.succeed("git -C /root/.nomarchy diff --quiet HEAD -- state.json")
|
||||
|
||||
def slug():
|
||||
return machine.succeed(env + "nomarchy-state-sync get slug").strip()
|
||||
def rebuilds():
|
||||
@@ -2253,6 +2317,11 @@
|
||||
machine.succeed(env + "nomarchy-state-sync auto")
|
||||
assert slug() == "summer-night", f"post-sunset should be night, got {slug()}"
|
||||
assert rebuilds() == 1, f"sunset should trigger one rebuild, got {rebuilds()}"
|
||||
# The switch auto-committed too — nothing left dirty behind it.
|
||||
machine.succeed(
|
||||
"git -C /root/.nomarchy log --format=%s | grep -qF 'apply theme'"
|
||||
)
|
||||
machine.succeed("git -C /root/.nomarchy diff --quiet HEAD -- state.json")
|
||||
|
||||
# Another tick still after sunset → idempotent, no extra rebuild.
|
||||
machine.succeed("date -s '2026-01-02 20:06:00'")
|
||||
|
||||
@@ -1,18 +1,37 @@
|
||||
# Auto time-of-day theme switch (BACKLOG #79, VISION § D). A user timer
|
||||
# periodically runs `nomarchy-state-sync auto`, which reads
|
||||
# settings.autoTheme = { enable, day, night, sunrise, sunset } from the
|
||||
# state file and applies the day or night preset for the current clock —
|
||||
# through the SAME one engine as a manual `apply` (no second pipeline).
|
||||
# runs `nomarchy-state-sync auto` at the configured sunrise and sunset,
|
||||
# which reads settings.autoTheme = { enable, day, night, sunrise, sunset }
|
||||
# from the state file and applies the day or night preset for the current
|
||||
# clock — through the SAME one engine as a manual `apply` (no second
|
||||
# pipeline).
|
||||
#
|
||||
# The command self-gates (no-op when disabled) and is idempotent (it only
|
||||
# rebuilds when the active theme actually needs to change), so the timer
|
||||
# can tick freely. Install is gated on the state flag (like nomarchy.updates
|
||||
# gates on its enable), so a machine not using the feature carries no timer;
|
||||
# enabling it from the menu (slice 3) writes the flag + rebuilds, which is
|
||||
# what brings the timer into being.
|
||||
# The trigger times are BAKED into OnCalendar at rebuild (originally this
|
||||
# was a 15-min poll; exact times won on wasted wakeups — Bernardo
|
||||
# 2026-07-18), so a time edit must rebuild: the menu's Sunrise/Sunset
|
||||
# writes run `auto --force`, whose apply is that rebuild. Missed
|
||||
# transitions are covered without polling: Persistent=true catches ones
|
||||
# that pass while powered off, systemd fires elapsed OnCalendar timers on
|
||||
# resume from suspend, and OnStartupSec settles the theme just after
|
||||
# login. The command self-gates (no-op when disabled) and is idempotent
|
||||
# (it only rebuilds when the active theme actually needs to change), so
|
||||
# every extra firing is cheap.
|
||||
#
|
||||
# Install is gated on the state flag (like nomarchy.updates gates on its
|
||||
# enable), so a machine not using the feature carries no timer; enabling
|
||||
# it from the menu (slice 3) writes the flag + rebuilds, which is what
|
||||
# brings the timer into being.
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
lib.mkIf (config.nomarchy.settings.autoTheme.enable or false) {
|
||||
let
|
||||
at = config.nomarchy.settings.autoTheme or { };
|
||||
# "HH:MM" or the fallback — mirrors _hhmm_to_min in nomarchy-state-sync,
|
||||
# so a hand-edited state can't bake an OnCalendar systemd rejects.
|
||||
hhmm = v: fallback:
|
||||
if builtins.isString v
|
||||
&& builtins.match "([01][0-9]|2[0-3]):[0-5][0-9]" v != null
|
||||
then v else fallback;
|
||||
in
|
||||
lib.mkIf (at.enable or false) {
|
||||
systemd.user.services.nomarchy-auto-theme = {
|
||||
Unit.Description = "Apply the day/night theme for the current time";
|
||||
Service = {
|
||||
@@ -25,10 +44,13 @@ lib.mkIf (config.nomarchy.settings.autoTheme.enable or false) {
|
||||
};
|
||||
|
||||
systemd.user.timers.nomarchy-auto-theme = {
|
||||
Unit.Description = "Periodic day/night theme check";
|
||||
Unit.Description = "Day/night theme switch at sunrise and sunset";
|
||||
Timer = {
|
||||
OnStartupSec = "1min"; # settle on the right theme shortly after login
|
||||
OnCalendar = "*:0/15"; # re-check every 15 min; auto no-ops if unchanged
|
||||
OnCalendar = [
|
||||
"*-*-* ${hhmm (at.sunrise or null) "07:00"}:00" # sunrise → day
|
||||
"*-*-* ${hhmm (at.sunset or null) "20:00"}:00" # sunset → night
|
||||
];
|
||||
Persistent = true; # catch a transition missed while powered off
|
||||
};
|
||||
Install.WantedBy = [ "timers.target" ];
|
||||
|
||||
191
modules/home/display-transition.nix
Normal file
191
modules/home/display-transition.nix
Normal file
@@ -0,0 +1,191 @@
|
||||
# The full dock / undock / enable display-transition primitive
|
||||
# (nomarchy-display-transition) — the one safety-critical copy. Extracted
|
||||
# from hyprland.nix (#150) so hyprland.nix and idle.nix share it instead of
|
||||
# idle.nix carrying a lossy mini that lacked logging, the lid-inhibitor
|
||||
# gate, restore_keyboards, and the failure dump.
|
||||
#
|
||||
# One transition primitive for the interactive Dock mode, abrupt undock,
|
||||
# and named profiles that disable the internal panel. Dock is one Hyprland
|
||||
# batch: enable the target, move every internal workspace, focus it, then
|
||||
# disable the panel. Undock deliberately enables the panel FIRST, waits
|
||||
# for it to become an active target, then restores every workspace.
|
||||
#
|
||||
# sync — nomarchy-state-sync exe (dock-intent writes)
|
||||
# keyboardTool — nomarchy-keyboard-layout (restore after reload)
|
||||
# displayDumpTool — nomarchy-display-dump (evidence on enable failure)
|
||||
{ pkgs, sync, keyboardTool, displayDumpTool }:
|
||||
pkgs.writeShellScriptBin "nomarchy-display-transition" ''
|
||||
set -u
|
||||
LOGGER=${pkgs.util-linux}/bin/logger
|
||||
log() { "$LOGGER" -t nomarchy-display-transition -- "$*"; }
|
||||
valid_output() {
|
||||
case "$1" in *[!A-Za-z0-9_.:-]*|"") return 1 ;; *) return 0 ;; esac
|
||||
}
|
||||
workspaces_on() {
|
||||
hyprctl workspaces -j 2>/dev/null \
|
||||
| jq -r --arg m "$1" '.[] | select(.monitor == $m and .id > 0) | .id'
|
||||
}
|
||||
all_workspaces() {
|
||||
hyprctl workspaces -j 2>/dev/null | jq -r '.[] | select(.id > 0) | .id'
|
||||
}
|
||||
lid_inhibitor_held() {
|
||||
${pkgs.systemd}/bin/systemd-inhibit --list --json=short 2>/dev/null \
|
||||
| ${pkgs.jq}/bin/jq -e 'any(.[]; .what == "handle-lid-switch" and .why == "Safe dock/undock display transition" and .mode == "block")' \
|
||||
>/dev/null
|
||||
}
|
||||
batch_moves() { # stdin workspace ids, $1 target
|
||||
target="$1"; commands=
|
||||
while IFS= read -r ws; do
|
||||
case "$ws" in *[!0-9]*|"") continue ;; esac
|
||||
commands="$commands dispatch moveworkspacetomonitor $ws $target;"
|
||||
done
|
||||
printf '%s' "$commands"
|
||||
}
|
||||
# `monitors` (enabled-only) listing the output is the ONLY proof it is
|
||||
# really on: every path here issues keywords hyprctl answers "ok" to
|
||||
# without acting. $1 = output, $2 = polls of 0.2s.
|
||||
output_enabled() {
|
||||
tries=0
|
||||
while [ "$tries" -lt "$2" ]; do
|
||||
hyprctl monitors -j 2>/dev/null \
|
||||
| jq -e --arg m "$1" 'any(.[]; .name == $m)' >/dev/null && return 0
|
||||
tries=$((tries+1)); sleep 0.2
|
||||
done
|
||||
return 1
|
||||
}
|
||||
# `hyprctl reload` re-reads the config, and every runtime keyword dies
|
||||
# with it — including the `device[<name>]:kb_layout` the keyboard watcher
|
||||
# applies to an external board. Measured on hardware 2026-07-14: a bare
|
||||
# reload took a keyboard remembered as `us` straight back to the session's
|
||||
# `gb`, so without this the undock's escalation would silently break the
|
||||
# layout of any keyboard that stays behind when the dock leaves (a
|
||||
# wireless receiver in the laptop; only boards on the dock's own hub are
|
||||
# unaffected, and only because they leave with it). The remembered
|
||||
# choices live in the in-flake state, so `restore` is authoritative.
|
||||
restore_keyboards() {
|
||||
hyprctl devices -j 2>/dev/null | jq -r '.keyboards[].name' 2>/dev/null \
|
||||
| while IFS= read -r kb; do
|
||||
[ -n "$kb" ] || continue
|
||||
${keyboardTool}/bin/nomarchy-keyboard-layout restore "$kb" \
|
||||
>/dev/null 2>&1 || true
|
||||
done
|
||||
}
|
||||
|
||||
# Dock mode is an *intent*, and until #142 it lived only in the compositor:
|
||||
# `keyword monitor <internal>, disable` and nothing written down. Any config
|
||||
# reload re-applies the catch-all `monitor=,preferred,auto,1` and re-lights
|
||||
# the panel — which is exactly why `undock` below uses `hyprctl reload` as
|
||||
# its hammer — so every `nomarchy-home` silently performed an undock and the
|
||||
# user re-picked Dock mode by hand.
|
||||
#
|
||||
# So record the intent where every other setting lives (the in-flake state,
|
||||
# menu-writable), and let the watcher re-assert it. `--no-switch`: the
|
||||
# watcher reads this at run time; a rebuild here would be both pointless and
|
||||
# recursive. Failure to write is never fatal — a session that cannot reach
|
||||
# the state file must still dock.
|
||||
set_dock_intent() { # $1 = true|false
|
||||
${sync} --quiet set settings.display.dockMode "$1" --no-switch \
|
||||
>/dev/null 2>&1 || log "dock-intent=$1 result=state-write-failed"
|
||||
}
|
||||
|
||||
case "''${1:-}" in
|
||||
dock)
|
||||
internal="''${2:-}"; external="''${3:-}"
|
||||
rule="''${4:-$external, preferred, auto, 1}"
|
||||
valid_output "$internal" && valid_output "$external" \
|
||||
|| { echo "invalid monitor name" >&2; exit 64; }
|
||||
# Fail closed: disabling the panel without this lock recreates the
|
||||
# exact cable-removal → logind suspend race #100 is fixing.
|
||||
lid_inhibitor_held \
|
||||
|| { log "transition=dock internal=$internal external=$external result=no-lid-inhibitor"; exit 1; }
|
||||
moves=$(workspaces_on "$internal" | batch_moves "$external")
|
||||
if hyprctl --batch \
|
||||
"keyword monitor $rule; $moves dispatch focusmonitor $external; keyword monitor $internal, disable" \
|
||||
>/dev/null 2>&1; then
|
||||
set_dock_intent true
|
||||
log "transition=dock internal=$internal external=$external result=ok"
|
||||
else
|
||||
log "transition=dock internal=$internal external=$external result=failed"
|
||||
exit 1
|
||||
fi ;;
|
||||
undock)
|
||||
internal="''${2:-}"
|
||||
valid_output "$internal" || { echo "invalid monitor name" >&2; exit 64; }
|
||||
# Clear the intent *first*: this path runs when the external is already
|
||||
# gone, and if anything below fails the last thing the session needs is
|
||||
# a watcher that keeps trying to dock to a monitor that left.
|
||||
set_dock_intent false
|
||||
# Safety-critical ordering: never remove/move away from an external
|
||||
# before the internal panel is active and can receive workspaces.
|
||||
#
|
||||
# With ZERO enabled outputs — an abrupt undock, the panel already
|
||||
# disabled by the dock — Hyprland 0.55.4 accepts `keyword monitor`
|
||||
# (prints "ok", exits 0) and then never flushes it: the rule is held
|
||||
# until some DRM event arrives, and the panel stays dark. This is
|
||||
# deterministic, not a race. Probed on hardware 2026-07-14: the
|
||||
# keyword was inert across 4s and 5s windows in two separate runs,
|
||||
# `dispatch forcerendererreload` did not flush it either, and only
|
||||
# `hyprctl reload` did — in 99ms and 289ms, with the cable out.
|
||||
#
|
||||
# Round 6 read the same symptom as a teardown race and re-issued the
|
||||
# keyword 25 times a poll. Retrying an inert command cannot work: it
|
||||
# bought 30s of black screen and every `result=ok` in that journal was
|
||||
# really the user plugging the cable back in, whose hotplug flushed
|
||||
# the queued rule and let the next poll take the credit.
|
||||
#
|
||||
# So issue the keyword once — enough whenever another output is still
|
||||
# enabled, e.g. the menu's Dock mode toggle — and escalate to the
|
||||
# reload hammer only when it proves inert.
|
||||
hyprctl keyword monitor "$internal,preferred,auto,1" >/dev/null 2>&1
|
||||
if ! output_enabled "$internal" 5; then
|
||||
log "transition=undock internal=$internal keyword=inert escalate=reload"
|
||||
hyprctl reload >/dev/null 2>&1
|
||||
if ! output_enabled "$internal" 25; then
|
||||
log "transition=undock internal=$internal result=enable-failed"
|
||||
# #127: leave evidence on disk without SSH (TTY or next login).
|
||||
${displayDumpTool}/bin/nomarchy-display-dump undock-enable-failed \
|
||||
>/dev/null 2>&1 || true
|
||||
exit 1
|
||||
fi
|
||||
# The config's monitor rules own the panel now. Re-assert the
|
||||
# runtime rule — which flushes normally, an output being enabled
|
||||
# again — so a config that parks the panel off cannot undo the
|
||||
# undock, and give the keyboards back what the reload took.
|
||||
hyprctl keyword monitor "$internal,preferred,auto,1" >/dev/null 2>&1
|
||||
restore_keyboards
|
||||
log "transition=undock internal=$internal enable=via-reload"
|
||||
fi
|
||||
moves=$(all_workspaces | batch_moves "$internal")
|
||||
hyprctl --batch "$moves dispatch focusmonitor $internal" >/dev/null 2>&1 \
|
||||
|| { log "transition=undock internal=$internal result=move-failed"; exit 1; }
|
||||
# #127: undock after idle DPMS left the seat black even when the
|
||||
# panel was re-enabled — always light the chain after enable.
|
||||
hyprctl dispatch dpms on >/dev/null 2>&1 || true
|
||||
log "transition=undock internal=$internal result=ok" ;;
|
||||
enable)
|
||||
internal="''${2:-}"
|
||||
valid_output "$internal" || exit 64
|
||||
# Menu ▸ Display ▸ "Screen on". Turning the laptop panel back on *is*
|
||||
# leaving dock mode, and saying so is what stops the watcher from
|
||||
# re-docking the panel out from under the user a second later (#142).
|
||||
# Only the internal clears the intent: lighting some third monitor is
|
||||
# not a statement about the lid.
|
||||
case "$internal" in
|
||||
eDP*|LVDS*|DSI*) set_dock_intent false ;;
|
||||
esac
|
||||
# Reachable only from the menu, i.e. with a screen already on, so the
|
||||
# keyword flushes and no reload escalation is needed — but still make
|
||||
# `monitors` the proof, or the menu's "back on" notification cheers
|
||||
# for a keyword hyprctl merely said "ok" to.
|
||||
hyprctl keyword monitor "$internal,preferred,auto,1" >/dev/null 2>&1
|
||||
if output_enabled "$internal" 10; then
|
||||
hyprctl dispatch dpms on >/dev/null 2>&1 || true
|
||||
true
|
||||
else
|
||||
false
|
||||
fi ;;
|
||||
*)
|
||||
echo "usage: nomarchy-display-transition [dock <internal> <external> [external-rule]|undock <internal>|enable <internal>]" >&2
|
||||
exit 64 ;;
|
||||
esac
|
||||
''
|
||||
@@ -128,186 +128,11 @@ let
|
||||
displayDumpTool =
|
||||
(import ./display-tools.nix { inherit pkgs; }).displayDumpTool;
|
||||
|
||||
# One transition primitive for the interactive Dock mode, abrupt undock,
|
||||
# and named profiles that disable the internal panel. Dock is one Hyprland
|
||||
# batch: enable the target, move every internal workspace, focus it, then
|
||||
# disable the panel. Undock deliberately enables the panel FIRST, waits
|
||||
# for it to become an active target, then restores every workspace.
|
||||
displayTransitionTool = pkgs.writeShellScriptBin "nomarchy-display-transition" ''
|
||||
set -u
|
||||
LOGGER=${pkgs.util-linux}/bin/logger
|
||||
log() { "$LOGGER" -t nomarchy-display-transition -- "$*"; }
|
||||
valid_output() {
|
||||
case "$1" in *[!A-Za-z0-9_.:-]*|"") return 1 ;; *) return 0 ;; esac
|
||||
}
|
||||
workspaces_on() {
|
||||
hyprctl workspaces -j 2>/dev/null \
|
||||
| jq -r --arg m "$1" '.[] | select(.monitor == $m and .id > 0) | .id'
|
||||
}
|
||||
all_workspaces() {
|
||||
hyprctl workspaces -j 2>/dev/null | jq -r '.[] | select(.id > 0) | .id'
|
||||
}
|
||||
lid_inhibitor_held() {
|
||||
${pkgs.systemd}/bin/systemd-inhibit --list --json=short 2>/dev/null \
|
||||
| ${pkgs.jq}/bin/jq -e 'any(.[]; .what == "handle-lid-switch" and .why == "Safe dock/undock display transition" and .mode == "block")' \
|
||||
>/dev/null
|
||||
}
|
||||
batch_moves() { # stdin workspace ids, $1 target
|
||||
target="$1"; commands=
|
||||
while IFS= read -r ws; do
|
||||
case "$ws" in *[!0-9]*|"") continue ;; esac
|
||||
commands="$commands dispatch moveworkspacetomonitor $ws $target;"
|
||||
done
|
||||
printf '%s' "$commands"
|
||||
}
|
||||
# `monitors` (enabled-only) listing the output is the ONLY proof it is
|
||||
# really on: every path here issues keywords hyprctl answers "ok" to
|
||||
# without acting. $1 = output, $2 = polls of 0.2s.
|
||||
output_enabled() {
|
||||
tries=0
|
||||
while [ "$tries" -lt "$2" ]; do
|
||||
hyprctl monitors -j 2>/dev/null \
|
||||
| jq -e --arg m "$1" 'any(.[]; .name == $m)' >/dev/null && return 0
|
||||
tries=$((tries+1)); sleep 0.2
|
||||
done
|
||||
return 1
|
||||
}
|
||||
# `hyprctl reload` re-reads the config, and every runtime keyword dies
|
||||
# with it — including the `device[<name>]:kb_layout` the keyboard watcher
|
||||
# applies to an external board. Measured on hardware 2026-07-14: a bare
|
||||
# reload took a keyboard remembered as `us` straight back to the session's
|
||||
# `gb`, so without this the undock's escalation would silently break the
|
||||
# layout of any keyboard that stays behind when the dock leaves (a
|
||||
# wireless receiver in the laptop; only boards on the dock's own hub are
|
||||
# unaffected, and only because they leave with it). The remembered
|
||||
# choices live in the in-flake state, so `restore` is authoritative.
|
||||
restore_keyboards() {
|
||||
hyprctl devices -j 2>/dev/null | jq -r '.keyboards[].name' 2>/dev/null \
|
||||
| while IFS= read -r kb; do
|
||||
[ -n "$kb" ] || continue
|
||||
${keyboardTool}/bin/nomarchy-keyboard-layout restore "$kb" \
|
||||
>/dev/null 2>&1 || true
|
||||
done
|
||||
}
|
||||
|
||||
# Dock mode is an *intent*, and until #142 it lived only in the compositor:
|
||||
# `keyword monitor <internal>, disable` and nothing written down. Any config
|
||||
# reload re-applies the catch-all `monitor=,preferred,auto,1` and re-lights
|
||||
# the panel — which is exactly why `undock` below uses `hyprctl reload` as
|
||||
# its hammer — so every `nomarchy-home` silently performed an undock and the
|
||||
# user re-picked Dock mode by hand.
|
||||
#
|
||||
# So record the intent where every other setting lives (the in-flake state,
|
||||
# menu-writable), and let the watcher re-assert it. `--no-switch`: the
|
||||
# watcher reads this at run time; a rebuild here would be both pointless and
|
||||
# recursive. Failure to write is never fatal — a session that cannot reach
|
||||
# the state file must still dock.
|
||||
set_dock_intent() { # $1 = true|false
|
||||
${sync} --quiet set settings.display.dockMode "$1" --no-switch \
|
||||
>/dev/null 2>&1 || log "dock-intent=$1 result=state-write-failed"
|
||||
}
|
||||
|
||||
case "''${1:-}" in
|
||||
dock)
|
||||
internal="''${2:-}"; external="''${3:-}"
|
||||
rule="''${4:-$external, preferred, auto, 1}"
|
||||
valid_output "$internal" && valid_output "$external" \
|
||||
|| { echo "invalid monitor name" >&2; exit 64; }
|
||||
# Fail closed: disabling the panel without this lock recreates the
|
||||
# exact cable-removal → logind suspend race #100 is fixing.
|
||||
lid_inhibitor_held \
|
||||
|| { log "transition=dock internal=$internal external=$external result=no-lid-inhibitor"; exit 1; }
|
||||
moves=$(workspaces_on "$internal" | batch_moves "$external")
|
||||
if hyprctl --batch \
|
||||
"keyword monitor $rule; $moves dispatch focusmonitor $external; keyword monitor $internal, disable" \
|
||||
>/dev/null 2>&1; then
|
||||
set_dock_intent true
|
||||
log "transition=dock internal=$internal external=$external result=ok"
|
||||
else
|
||||
log "transition=dock internal=$internal external=$external result=failed"
|
||||
exit 1
|
||||
fi ;;
|
||||
undock)
|
||||
internal="''${2:-}"
|
||||
valid_output "$internal" || { echo "invalid monitor name" >&2; exit 64; }
|
||||
# Clear the intent *first*: this path runs when the external is already
|
||||
# gone, and if anything below fails the last thing the session needs is
|
||||
# a watcher that keeps trying to dock to a monitor that left.
|
||||
set_dock_intent false
|
||||
# Safety-critical ordering: never remove/move away from an external
|
||||
# before the internal panel is active and can receive workspaces.
|
||||
#
|
||||
# With ZERO enabled outputs — an abrupt undock, the panel already
|
||||
# disabled by the dock — Hyprland 0.55.4 accepts `keyword monitor`
|
||||
# (prints "ok", exits 0) and then never flushes it: the rule is held
|
||||
# until some DRM event arrives, and the panel stays dark. This is
|
||||
# deterministic, not a race. Probed on hardware 2026-07-14: the
|
||||
# keyword was inert across 4s and 5s windows in two separate runs,
|
||||
# `dispatch forcerendererreload` did not flush it either, and only
|
||||
# `hyprctl reload` did — in 99ms and 289ms, with the cable out.
|
||||
#
|
||||
# Round 6 read the same symptom as a teardown race and re-issued the
|
||||
# keyword 25 times a poll. Retrying an inert command cannot work: it
|
||||
# bought 30s of black screen and every `result=ok` in that journal was
|
||||
# really the user plugging the cable back in, whose hotplug flushed
|
||||
# the queued rule and let the next poll take the credit.
|
||||
#
|
||||
# So issue the keyword once — enough whenever another output is still
|
||||
# enabled, e.g. the menu's Dock mode toggle — and escalate to the
|
||||
# reload hammer only when it proves inert.
|
||||
hyprctl keyword monitor "$internal,preferred,auto,1" >/dev/null 2>&1
|
||||
if ! output_enabled "$internal" 5; then
|
||||
log "transition=undock internal=$internal keyword=inert escalate=reload"
|
||||
hyprctl reload >/dev/null 2>&1
|
||||
if ! output_enabled "$internal" 25; then
|
||||
log "transition=undock internal=$internal result=enable-failed"
|
||||
# #127: leave evidence on disk without SSH (TTY or next login).
|
||||
${displayDumpTool}/bin/nomarchy-display-dump undock-enable-failed \
|
||||
>/dev/null 2>&1 || true
|
||||
exit 1
|
||||
fi
|
||||
# The config's monitor rules own the panel now. Re-assert the
|
||||
# runtime rule — which flushes normally, an output being enabled
|
||||
# again — so a config that parks the panel off cannot undo the
|
||||
# undock, and give the keyboards back what the reload took.
|
||||
hyprctl keyword monitor "$internal,preferred,auto,1" >/dev/null 2>&1
|
||||
restore_keyboards
|
||||
log "transition=undock internal=$internal enable=via-reload"
|
||||
fi
|
||||
moves=$(all_workspaces | batch_moves "$internal")
|
||||
hyprctl --batch "$moves dispatch focusmonitor $internal" >/dev/null 2>&1 \
|
||||
|| { log "transition=undock internal=$internal result=move-failed"; exit 1; }
|
||||
# #127: undock after idle DPMS left the seat black even when the
|
||||
# panel was re-enabled — always light the chain after enable.
|
||||
hyprctl dispatch dpms on >/dev/null 2>&1 || true
|
||||
log "transition=undock internal=$internal result=ok" ;;
|
||||
enable)
|
||||
internal="''${2:-}"
|
||||
valid_output "$internal" || exit 64
|
||||
# Menu ▸ Display ▸ "Screen on". Turning the laptop panel back on *is*
|
||||
# leaving dock mode, and saying so is what stops the watcher from
|
||||
# re-docking the panel out from under the user a second later (#142).
|
||||
# Only the internal clears the intent: lighting some third monitor is
|
||||
# not a statement about the lid.
|
||||
case "$internal" in
|
||||
eDP*|LVDS*|DSI*) set_dock_intent false ;;
|
||||
esac
|
||||
# Reachable only from the menu, i.e. with a screen already on, so the
|
||||
# keyword flushes and no reload escalation is needed — but still make
|
||||
# `monitors` the proof, or the menu's "back on" notification cheers
|
||||
# for a keyword hyprctl merely said "ok" to.
|
||||
hyprctl keyword monitor "$internal,preferred,auto,1" >/dev/null 2>&1
|
||||
if output_enabled "$internal" 10; then
|
||||
hyprctl dispatch dpms on >/dev/null 2>&1 || true
|
||||
true
|
||||
else
|
||||
false
|
||||
fi ;;
|
||||
*)
|
||||
echo "usage: nomarchy-display-transition [dock <internal> <external> [external-rule]|undock <internal>|enable <internal>]" >&2
|
||||
exit 64 ;;
|
||||
esac
|
||||
'';
|
||||
# The full dock/undock/enable transition primitive lives in its own file
|
||||
# so idle.nix shares this exact safety-critical copy (#150), not a mini.
|
||||
displayTransitionTool = import ./display-transition.nix {
|
||||
inherit pkgs sync keyboardTool displayDumpTool;
|
||||
};
|
||||
|
||||
displayWakeTool =
|
||||
(import ./display-tools.nix {
|
||||
@@ -786,78 +611,7 @@ ${lib.concatStringsSep "\n" (lib.mapAttrsToList
|
||||
done
|
||||
'';
|
||||
|
||||
# Candidate layouts offered by the new-keyboard picker: the session
|
||||
# layout(s) (nomarchy.keyboard.layout, comma-split for a multi-layout
|
||||
# session) plus the extra nomarchy.keyboard.layouts pool. The pool is
|
||||
# deliberately NOT merged into input.kb_layout — those candidates are for
|
||||
# *external* keyboards and get applied per-device by the watcher's apply().
|
||||
# Loading them onto the session keyboard is what let a global switch flip
|
||||
# the built-in board to the wrong layout.
|
||||
pickerLayouts = lib.unique (
|
||||
(lib.splitString "," config.nomarchy.keyboard.layout)
|
||||
++ config.nomarchy.keyboard.layouts
|
||||
);
|
||||
|
||||
# Per-device keyboard helper shared by the hotplug watcher and the manual
|
||||
# System › Keyboard menu. The configured candidates are listed first, then
|
||||
# every XKB layout known to the system, so the feature works on a default
|
||||
# install instead of silently disappearing until home.nix is edited.
|
||||
keyboardTool = pkgs.writeShellScriptBin "nomarchy-keyboard-layout" ''
|
||||
set -u
|
||||
sync=${sync}
|
||||
|
||||
layouts() {
|
||||
printf '%s\n' ${lib.concatMapStringsSep " " lib.escapeShellArg pickerLayouts}
|
||||
${pkgs.gawk}/bin/awk '
|
||||
/^! layout/ { in_layouts=1; next }
|
||||
/^!/ && in_layouts { exit }
|
||||
in_layouts && NF { print $1 }
|
||||
' ${pkgs.xkeyboard_config}/share/X11/xkb/rules/base.lst
|
||||
}
|
||||
saved_map() { "$sync" get settings.keyboard.devices 2>/dev/null || echo '{}'; }
|
||||
saved_for() { saved_map | jq -r --arg k "$1" '.[$k] // empty'; }
|
||||
apply_runtime() { hyprctl keyword "device[$1]:kb_layout" "$2" >/dev/null 2>&1; }
|
||||
|
||||
case "''${1:-}" in
|
||||
layouts)
|
||||
layouts | ${pkgs.gawk}/bin/awk 'NF && !seen[$0]++' ;;
|
||||
devices)
|
||||
hyprctl devices -j 2>/dev/null \
|
||||
| jq -r '.keyboards[] | "\(.name)\t\(.active_keymap // \"unknown\")"' ;;
|
||||
saved)
|
||||
[ -n "''${2:-}" ] || exit 64
|
||||
saved_for "$2" ;;
|
||||
restore)
|
||||
[ -n "''${2:-}" ] || exit 64
|
||||
layout=$(saved_for "$2")
|
||||
[ -n "$layout" ] && apply_runtime "$2" "$layout" ;;
|
||||
apply)
|
||||
[ -n "''${2:-}" ] && [ -n "''${3:-}" ] || exit 64
|
||||
layouts | ${pkgs.gnugrep}/bin/grep -Fxq "$3" \
|
||||
|| { notify-send "Keyboard" "Unknown XKB layout: $3"; exit 64; }
|
||||
if apply_runtime "$2" "$3"; then
|
||||
map=$(saved_map | jq -c --arg k "$2" --arg v "$3" '. + {($k): $v}') || exit 1
|
||||
if "$sync" --quiet set settings.keyboard.devices "$map" --no-switch; then
|
||||
notify-send "Keyboard" "$2 → $3"
|
||||
else
|
||||
notify-send "Keyboard" "$2 → $3 for this session, but the choice could not be saved."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
notify-send "Keyboard" "Could not apply $3 to $2."
|
||||
exit 1
|
||||
fi ;;
|
||||
forget)
|
||||
[ -n "''${2:-}" ] || exit 64
|
||||
map=$(saved_map | jq -c --arg k "$2" 'del(.[$k])') || exit 1
|
||||
"$sync" --quiet set settings.keyboard.devices "$map" --no-switch || exit 1
|
||||
apply_runtime "$2" ${lib.escapeShellArg config.nomarchy.keyboard.layout} || true
|
||||
notify-send "Keyboard" "$2 now follows the session layout." ;;
|
||||
*)
|
||||
echo "usage: nomarchy-keyboard-layout [layouts|devices|saved <device>|restore <device>|apply <device> <layout>|forget <device>]" >&2
|
||||
exit 64 ;;
|
||||
esac
|
||||
'';
|
||||
keyboardTool = import ./keyboard-tool.nix { inherit pkgs lib config; };
|
||||
|
||||
# On a keyboard that connects after login (not declared in
|
||||
# keyboard.devices, not already remembered), ask for a layout and persist it
|
||||
@@ -970,6 +724,24 @@ in
|
||||
# (Hyprland then boots into emergency mode with no binds).
|
||||
configType = "hyprlang";
|
||||
|
||||
# Session bring-up (HM renders these into the first exec-once, after
|
||||
# its dbus-update-activation-environment). The default is just
|
||||
# stop/start of hyprland-session.target — not enough after a broken
|
||||
# logout: if the graphical-session.target *stop* transaction was
|
||||
# rejected mid-teardown (seen 2026-07-18: "transaction is destructive"
|
||||
# while easyeffects had a queued start job), the target stays active
|
||||
# across the logout, its services crash-loop against the dead Wayland
|
||||
# socket into start-limit-hit, and the next login's plain `start` is a
|
||||
# no-op — cliphist/swaync/portals stay failed for the whole session
|
||||
# (doctor all red). So: tear the stale targets down, clear
|
||||
# failed/start-limit state, then start fresh. All three are no-ops
|
||||
# after a clean logout or cold boot.
|
||||
systemd.extraCommands = [
|
||||
"systemctl --user stop hyprland-session.target graphical-session.target"
|
||||
"systemctl --user reset-failed"
|
||||
"systemctl --user start hyprland-session.target"
|
||||
];
|
||||
|
||||
settings = {
|
||||
"$mod" = "SUPER";
|
||||
"$terminal" = config.nomarchy.terminal;
|
||||
@@ -1042,7 +814,12 @@ in
|
||||
};
|
||||
shadow = {
|
||||
enabled = t.ui.shadow;
|
||||
range = lib.mkDefault 20;
|
||||
# The mantle-tinted shadow reads as a dark halo on dark themes
|
||||
# but as a warm *glow* on light ones (mantle is light there) —
|
||||
# kept as an identity feature, just tight (a few px) so it never
|
||||
# bleeds into neighbouring windows or the bar (hardware report
|
||||
# 2026-07-18); dark themes keep the soft 20px ambient shadow.
|
||||
range = lib.mkDefault (if t.mode == "light" then 5 else 20);
|
||||
render_power = lib.mkDefault 3;
|
||||
color = rgba c.mantle "aa";
|
||||
};
|
||||
|
||||
@@ -21,35 +21,23 @@ let
|
||||
'';
|
||||
|
||||
# Absolute store paths for hypridle (thin PATH). Wake reuses the shared
|
||||
# helper; a mini transition avoids a circular import on hyprland.nix.
|
||||
# helper AND the full display-transition tool (#150): idle.nix used to
|
||||
# carry a lossy mini copy to dodge a circular import on hyprland.nix, but
|
||||
# both live in leaf files now, so the wake path gets the real undock —
|
||||
# logging, the enable-failure dump, and restore_keyboards after a reload.
|
||||
displayWake =
|
||||
let
|
||||
miniTransition = pkgs.writeShellScriptBin "nomarchy-display-transition" ''
|
||||
set -u
|
||||
case "''${1:-}" in
|
||||
undock|enable)
|
||||
internal="''${2:-}"
|
||||
[ -n "$internal" ] || exit 64
|
||||
hyprctl keyword monitor "$internal,preferred,auto,1" >/dev/null 2>&1 || true
|
||||
if ! hyprctl monitors -j 2>/dev/null \
|
||||
| ${pkgs.jq}/bin/jq -e --arg m "$internal" 'any(.[]; .name == $m)' \
|
||||
>/dev/null 2>&1; then
|
||||
hyprctl reload >/dev/null 2>&1 || true
|
||||
sleep 0.5
|
||||
fi
|
||||
hyprctl keyword monitor "$internal,preferred,auto,1" >/dev/null 2>&1 || true
|
||||
hyprctl dispatch dpms on >/dev/null 2>&1 || true
|
||||
hyprctl monitors -j 2>/dev/null \
|
||||
| ${pkgs.jq}/bin/jq -e --arg m "$internal" 'any(.[]; .name == $m)' \
|
||||
>/dev/null 2>&1
|
||||
;;
|
||||
*) exit 64 ;;
|
||||
esac
|
||||
'';
|
||||
keyboardTool = import ./keyboard-tool.nix { inherit pkgs lib config; };
|
||||
displayDumpTool =
|
||||
(import ./display-tools.nix { inherit pkgs; }).displayDumpTool;
|
||||
displayTransition = import ./display-transition.nix {
|
||||
inherit pkgs keyboardTool displayDumpTool;
|
||||
sync = lib.getExe config.nomarchy.package;
|
||||
};
|
||||
in
|
||||
(import ./display-tools.nix {
|
||||
inherit pkgs;
|
||||
displayTransition = miniTransition;
|
||||
inherit displayTransition;
|
||||
}).displayWakeTool;
|
||||
in
|
||||
{
|
||||
|
||||
81
modules/home/keyboard-tool.nix
Normal file
81
modules/home/keyboard-tool.nix
Normal file
@@ -0,0 +1,81 @@
|
||||
# The per-device keyboard-layout helper (nomarchy-keyboard-layout).
|
||||
# Extracted from hyprland.nix (#150) so it is built ONCE and shared: the
|
||||
# Hyprland module puts it on PATH and drives it from the hotplug watcher,
|
||||
# while the display-transition tool calls it (restore_keyboards) after a
|
||||
# config reload. Pass the module's { pkgs, lib, config }.
|
||||
{ pkgs, lib, config }:
|
||||
let
|
||||
sync = lib.getExe config.nomarchy.package;
|
||||
|
||||
# Candidate layouts offered by the new-keyboard picker: the session
|
||||
# layout(s) (nomarchy.keyboard.layout, comma-split for a multi-layout
|
||||
# session) plus the extra nomarchy.keyboard.layouts pool. The pool is
|
||||
# deliberately NOT merged into input.kb_layout — those candidates are for
|
||||
# *external* keyboards and get applied per-device by the watcher's apply().
|
||||
# Loading them onto the session keyboard is what let a global switch flip
|
||||
# the built-in board to the wrong layout.
|
||||
pickerLayouts = lib.unique (
|
||||
(lib.splitString "," config.nomarchy.keyboard.layout)
|
||||
++ config.nomarchy.keyboard.layouts
|
||||
);
|
||||
in
|
||||
# Per-device keyboard helper shared by the hotplug watcher and the manual
|
||||
# System › Keyboard menu. The configured candidates are listed first, then
|
||||
# every XKB layout known to the system, so the feature works on a default
|
||||
# install instead of silently disappearing until home.nix is edited.
|
||||
pkgs.writeShellScriptBin "nomarchy-keyboard-layout" ''
|
||||
set -u
|
||||
sync=${sync}
|
||||
|
||||
layouts() {
|
||||
printf '%s\n' ${lib.concatMapStringsSep " " lib.escapeShellArg pickerLayouts}
|
||||
${pkgs.gawk}/bin/awk '
|
||||
/^! layout/ { in_layouts=1; next }
|
||||
/^!/ && in_layouts { exit }
|
||||
in_layouts && NF { print $1 }
|
||||
' ${pkgs.xkeyboard_config}/share/X11/xkb/rules/base.lst
|
||||
}
|
||||
saved_map() { "$sync" get settings.keyboard.devices 2>/dev/null || echo '{}'; }
|
||||
saved_for() { saved_map | jq -r --arg k "$1" '.[$k] // empty'; }
|
||||
apply_runtime() { hyprctl keyword "device[$1]:kb_layout" "$2" >/dev/null 2>&1; }
|
||||
|
||||
case "''${1:-}" in
|
||||
layouts)
|
||||
layouts | ${pkgs.gawk}/bin/awk 'NF && !seen[$0]++' ;;
|
||||
devices)
|
||||
hyprctl devices -j 2>/dev/null \
|
||||
| jq -r '.keyboards[] | "\(.name)\t\(.active_keymap // \"unknown\")"' ;;
|
||||
saved)
|
||||
[ -n "''${2:-}" ] || exit 64
|
||||
saved_for "$2" ;;
|
||||
restore)
|
||||
[ -n "''${2:-}" ] || exit 64
|
||||
layout=$(saved_for "$2")
|
||||
[ -n "$layout" ] && apply_runtime "$2" "$layout" ;;
|
||||
apply)
|
||||
[ -n "''${2:-}" ] && [ -n "''${3:-}" ] || exit 64
|
||||
layouts | ${pkgs.gnugrep}/bin/grep -Fxq "$3" \
|
||||
|| { notify-send "Keyboard" "Unknown XKB layout: $3"; exit 64; }
|
||||
if apply_runtime "$2" "$3"; then
|
||||
map=$(saved_map | jq -c --arg k "$2" --arg v "$3" '. + {($k): $v}') || exit 1
|
||||
if "$sync" --quiet set settings.keyboard.devices "$map" --no-switch; then
|
||||
notify-send "Keyboard" "$2 → $3"
|
||||
else
|
||||
notify-send "Keyboard" "$2 → $3 for this session, but the choice could not be saved."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
notify-send "Keyboard" "Could not apply $3 to $2."
|
||||
exit 1
|
||||
fi ;;
|
||||
forget)
|
||||
[ -n "''${2:-}" ] || exit 64
|
||||
map=$(saved_map | jq -c --arg k "$2" 'del(.[$k])') || exit 1
|
||||
"$sync" --quiet set settings.keyboard.devices "$map" --no-switch || exit 1
|
||||
apply_runtime "$2" ${lib.escapeShellArg config.nomarchy.keyboard.layout} || true
|
||||
notify-send "Keyboard" "$2 now follows the session layout." ;;
|
||||
*)
|
||||
echo "usage: nomarchy-keyboard-layout [layouts|devices|saved <device>|restore <device>|apply <device> <layout>|forget <device>]" >&2
|
||||
exit 64 ;;
|
||||
esac
|
||||
''
|
||||
@@ -18,7 +18,10 @@ lib.mkIf config.nomarchy.rofi.enable {
|
||||
filefile="$run/nomarchy-record.file"
|
||||
|
||||
alive() { [ -f "$pidfile" ] && kill -0 "$(cat "$pidfile")" 2>/dev/null; }
|
||||
poke_bar() { pkill -RTMIN+8 waybar 2>/dev/null || true; }
|
||||
# -x, both comm names: nixpkgs wraps the binary as `.waybar-wrapped`,
|
||||
# and an unanchored `waybar` also matches (and kills) the
|
||||
# nomarchy-waybar supervisor, whose bash dies on an unhandled RTMIN.
|
||||
poke_bar() { pkill -RTMIN+8 -x 'waybar|\.waybar-wrapped' 2>/dev/null || true; }
|
||||
|
||||
case "''${1:-}" in
|
||||
start)
|
||||
|
||||
@@ -962,13 +962,16 @@ ${lib.concatStringsSep "\n" (lib.mapAttrsToList
|
||||
autotheme)
|
||||
# Look & Feel › Auto theme — automatic day/night theme switch
|
||||
# (settings.autoTheme, applied by the nomarchy-auto-theme timer from
|
||||
# autotheme.nix). The enable flag GATES the timer's install, so
|
||||
# turning it *on* must rebuild; day/night/times are read live by
|
||||
# `nomarchy-state-sync auto`, so those writes are instant
|
||||
# (--no-switch). Enabling writes the flag then `auto --force`, so a
|
||||
# single rebuild both installs the timer and applies the right theme
|
||||
# now. Disabling is instant: the flag flips and `auto` self-gates to
|
||||
# a no-op, so the lingering timer does nothing until the next rebuild.
|
||||
# autotheme.nix). The enable flag GATES the timer's install and the
|
||||
# sunrise/sunset times are BAKED into its OnCalendar, so turning it
|
||||
# *on* or editing a time must rebuild — both run `auto --force`, so
|
||||
# one rebuild re-bakes the timer AND lands on the right theme now.
|
||||
# Day/night slugs are read live by `nomarchy-state-sync auto`, so
|
||||
# those writes are instant (--no-switch); when the edited slot is the
|
||||
# one on screen, a plain `auto` applies it right away (the timer only
|
||||
# fires at the next transition — there is no poll to catch it up).
|
||||
# Disabling is instant: the flag flips and `auto` self-gates to a
|
||||
# no-op, so the lingering timer does nothing until the next rebuild.
|
||||
at_get() { nomarchy-state-sync get "settings.autoTheme.$1" 2>/dev/null; }
|
||||
en=$(at_get enable); day=$(at_get day); night=$(at_get night)
|
||||
sunrise=$(at_get sunrise); sunset=$(at_get sunset)
|
||||
@@ -997,15 +1000,20 @@ ${lib.concatStringsSep "\n" (lib.mapAttrsToList
|
||||
nomarchy-state-sync --quiet set settings.autoTheme.enable true --no-switch
|
||||
notify-send "Auto theme" "On — applying the theme for now…"
|
||||
exec nomarchy-state-sync auto --force ;; # one rebuild: install timer + apply
|
||||
"Day theme"*)
|
||||
slug=$( { nomarchy-state-sync list; printf '%s\n' "$BACK"; } | rofi_menu -p "Day theme") || exec "$0" autotheme
|
||||
[ "$slug" != "$BACK" ] && [ -n "$slug" ] \
|
||||
&& nomarchy-state-sync --quiet set settings.autoTheme.day "$slug" --no-switch
|
||||
exec "$0" autotheme ;;
|
||||
"Night theme"*)
|
||||
slug=$( { nomarchy-state-sync list; printf '%s\n' "$BACK"; } | rofi_menu -p "Night theme") || exec "$0" autotheme
|
||||
[ "$slug" != "$BACK" ] && [ -n "$slug" ] \
|
||||
&& nomarchy-state-sync --quiet set settings.autoTheme.night "$slug" --no-switch
|
||||
"Day theme"*|"Night theme"*)
|
||||
key=day; label="Day theme"
|
||||
case "$choice" in "Night theme"*) key=night; label="Night theme" ;; esac
|
||||
slug=$( { nomarchy-state-sync list; printf '%s\n' "$BACK"; } | rofi_menu -p "$label") || exec "$0" autotheme
|
||||
if [ "$slug" != "$BACK" ] && [ -n "$slug" ]; then
|
||||
nomarchy-state-sync --quiet set "settings.autoTheme.$key" "$slug" --no-switch
|
||||
# Edited the slot that is on screen right now? Apply it — the
|
||||
# timer won't fire again until the next sunrise/sunset.
|
||||
if [ "$en" = true ] && [ "$(nomarchy-state-sync auto --which)" = "$slug" ] \
|
||||
&& [ "$(nomarchy-state-sync get slug)" != "$slug" ]; then
|
||||
notify-send "Auto theme" "$label: $slug — applying…"
|
||||
exec nomarchy-state-sync auto
|
||||
fi
|
||||
fi
|
||||
exec "$0" autotheme ;;
|
||||
"Sunrise"*|"Sunset"*)
|
||||
key=sunrise; label=Sunrise; cur="''${sunrise:-07:00}"
|
||||
@@ -1014,7 +1022,14 @@ ${lib.concatStringsSep "\n" (lib.mapAttrsToList
|
||||
case "$t" in
|
||||
""|"$BACK") : ;;
|
||||
[01][0-9]:[0-5][0-9]|2[0-3]:[0-5][0-9])
|
||||
nomarchy-state-sync --quiet set "settings.autoTheme.$key" "$t" --no-switch ;;
|
||||
nomarchy-state-sync --quiet set "settings.autoTheme.$key" "$t" --no-switch
|
||||
# The time is baked into the timer's OnCalendar, so a change
|
||||
# must rebuild; `auto --force` is that rebuild AND lands on
|
||||
# the right theme for the new schedule in the same pass.
|
||||
if [ "$en" = true ]; then
|
||||
notify-send "Auto theme" "$label $t — rebuilding the schedule…"
|
||||
exec nomarchy-state-sync auto --force
|
||||
fi ;;
|
||||
*) notify-send "Auto theme" "Ignored '$t' — use HH:MM (24-hour)." ;;
|
||||
esac
|
||||
exec "$0" autotheme ;;
|
||||
|
||||
@@ -128,8 +128,18 @@ in
|
||||
color: #${base16.base00};
|
||||
}
|
||||
|
||||
/* Dialog / message-box action buttons (#98). */
|
||||
button, button label,
|
||||
/* Dialog / message-box action buttons (#98) — dialog-scoped
|
||||
ONLY, never a bare `button` / `button label`. This file is
|
||||
loaded by every GTK3 process including Waybar, and a direct
|
||||
`button label` rule beats the color waybar.css puts on
|
||||
`#workspaces button` (a rule matching the label node always
|
||||
outranks color inherited from the button), so the old bare
|
||||
pin painted the workspace digits with whatever palette was
|
||||
live when the bar process started — the 2026-07-19
|
||||
stale-digit bug: switch themes, digits keep the previous
|
||||
gtk.css color until the bar restarts. The real #98 fix is
|
||||
forcing adw-gtk3-dark (below); these pins are only the
|
||||
dialog safety net for a light sheet slipping in. */
|
||||
.dialog-action-area button,
|
||||
.dialog-action-area button label,
|
||||
messagedialog button,
|
||||
@@ -138,7 +148,9 @@ in
|
||||
.message-dialog button label {
|
||||
color: #${base16.base05};
|
||||
}
|
||||
button:disabled, button:disabled label {
|
||||
.dialog-action-area button:disabled, .dialog-action-area button:disabled label,
|
||||
messagedialog button:disabled, messagedialog button:disabled label,
|
||||
.message-dialog button:disabled, .message-dialog button:disabled label {
|
||||
color: alpha(#${base16.base05}, 0.5);
|
||||
}
|
||||
/* Accent buttons: the palette's base as the label, on a chip
|
||||
|
||||
@@ -71,12 +71,47 @@ in
|
||||
font-size: ${toString t.fonts.size}pt;
|
||||
}
|
||||
|
||||
.control-center .notification-row:focus,
|
||||
.control-center .notification-row:hover {
|
||||
/* Unscoped on purpose: the floating popup wraps .notification in
|
||||
a .notification-row too, and swaync's DEFAULT stylesheet (still
|
||||
loaded underneath this one) paints that row dark on hover — on
|
||||
light themes the theme's dark @text then sat on the default's
|
||||
dark hover, unreadable. The same alpha(@text) tint as
|
||||
everywhere else overrides it in both surfaces. */
|
||||
.notification-row:focus,
|
||||
.notification-row:hover {
|
||||
background: alpha(@text, 0.1);
|
||||
border-radius: ${r}px;
|
||||
}
|
||||
|
||||
/* The REAL popup-hover culprit: the notification body is one big
|
||||
GTK button (.notification-default-action), and the default
|
||||
sheet hovers IT to rgb(56,56,56) — on light themes that put
|
||||
dark @text on a dark chip (unreadable, hardware report
|
||||
2026-07-18). Re-pin body + action buttons to the palette's
|
||||
tint construction; hover stays a tint of @text, so it works
|
||||
in both modes by construction. */
|
||||
.notification-default-action,
|
||||
.notification-action {
|
||||
background: transparent;
|
||||
color: @text;
|
||||
}
|
||||
.notification-default-action:hover,
|
||||
.notification-action:hover {
|
||||
background: alpha(@text, 0.08);
|
||||
}
|
||||
|
||||
/* Same default-stylesheet leak: swaync ships a dark close-button
|
||||
chip; re-pin both ends to the palette's tint construction. */
|
||||
.close-button {
|
||||
background: alpha(@text, 0.1);
|
||||
color: @text;
|
||||
border-radius: ${r}px;
|
||||
}
|
||||
.close-button:hover {
|
||||
background: alpha(@text, 0.2);
|
||||
color: @text;
|
||||
}
|
||||
|
||||
.widget-title {
|
||||
color: @text;
|
||||
font-weight: bold;
|
||||
|
||||
@@ -24,7 +24,8 @@ let
|
||||
cur=$(${pkgs.systemd}/bin/timedatectl show -p Timezone --value 2>/dev/null || true)
|
||||
[ "$cur" = "$last" ] && continue
|
||||
last=$cur
|
||||
${pkgs.procps}/bin/pkill -SIGUSR2 -x waybar 2>/dev/null || true
|
||||
# Both comm names: nixpkgs wraps the binary as `.waybar-wrapped`.
|
||||
${pkgs.procps}/bin/pkill -SIGUSR2 -x 'waybar|\.waybar-wrapped' 2>/dev/null || true
|
||||
done
|
||||
'';
|
||||
in
|
||||
|
||||
@@ -71,7 +71,8 @@ let
|
||||
echo 0
|
||||
}
|
||||
|
||||
refresh_bar() { ${pkgs.procps}/bin/pkill -RTMIN+9 -x waybar 2>/dev/null || true; }
|
||||
# Both comm names: nixpkgs wraps the binary as `.waybar-wrapped`.
|
||||
refresh_bar() { ${pkgs.procps}/bin/pkill -RTMIN+9 -x 'waybar|\.waybar-wrapped' 2>/dev/null || true; }
|
||||
|
||||
case "''${1:-status}" in
|
||||
check)
|
||||
|
||||
@@ -36,9 +36,10 @@ let
|
||||
# Waybar supervisor — exec-once has no restart, so a crashed bar used to
|
||||
# leave the session bar-less until relogin (seen on hardware: a theme
|
||||
# switch crashed waybar mid-reload). Respawns on ANY exit — a plain
|
||||
# `pkill -x waybar` is now a clean restart, which nomarchy-state-sync
|
||||
# uses instead of the crash-prone in-place SIGUSR2 reload when it sees
|
||||
# this supervisor running. Crash-loop guard: 5 exits within 10s of
|
||||
# `pkill -x 'waybar|\.waybar-wrapped'` (nixpkgs wraps the binary, so
|
||||
# the comm is `.waybar-wrapped`) is now a clean restart, which
|
||||
# nomarchy-state-sync uses instead of the crash-prone in-place SIGUSR2
|
||||
# reload when it sees this supervisor running. Crash-loop guard: 5 exits within 10s of
|
||||
# their start → give up with a critical notification instead of
|
||||
# spinning. Stop the bar for real: pkill -f nomarchy-waybar (TERM is
|
||||
# trapped to take the child down too).
|
||||
@@ -162,7 +163,10 @@ let
|
||||
# normal tiling. Keep in sync with the whole-swap jsoncs (parity rule).
|
||||
layer = "bottom";
|
||||
position = "top";
|
||||
height = 34;
|
||||
# 36, not 34: the active-workspace pill is inset 3px top+bottom (CSS
|
||||
# below) so it can never overhang the bar's border — the extra height
|
||||
# keeps the pill's text from cramping inside the inset (#152).
|
||||
height = 36;
|
||||
margin-top = t.ui.gapsOut;
|
||||
margin-left = t.ui.gapsOut;
|
||||
margin-right = t.ui.gapsOut;
|
||||
@@ -423,14 +427,20 @@ let
|
||||
border-radius: ${toString t.ui.rounding}px;
|
||||
}
|
||||
|
||||
/* Dim states use the palette's @muted role: since item 28b it is
|
||||
floor-guaranteed legible on @base in every theme (muted/base >=
|
||||
2.0, gated by tools/check-theme-contrast.py) — the palettes that
|
||||
once made it vanish (gruvbox muted≈base, item 27) were retuned.
|
||||
/* Dim states use the palette's @muted role on DARK themes: since
|
||||
item 28b it is floor-guaranteed legible on @base (muted/base >=
|
||||
2.0, gated by tools/check-theme-contrast.py). On LIGHT themes that
|
||||
2.0-floor grey washes out at number size — inactive workspace
|
||||
numbers were unreadable on every light palette — so light mode
|
||||
promotes them to @subtext (>= 3.0 floor, typically 4-7:1).
|
||||
Secondary-but-not-dim stays alpha(@text, 0.85). */
|
||||
/* 3px vertical margin insets the active pill INSIDE the bar — without
|
||||
it the filled button spans the bar's full inner height and visually
|
||||
overhangs the rounded border (#152). */
|
||||
#workspaces button {
|
||||
padding: 0 8px;
|
||||
color: @muted;
|
||||
margin: 3px 0;
|
||||
color: ${if t.mode == "light" then "@subtext" else "@muted"};
|
||||
border-radius: ${toString t.ui.rounding}px;
|
||||
}
|
||||
|
||||
@@ -458,7 +468,10 @@ let
|
||||
color: @accent;
|
||||
font-family: Nomarchy;
|
||||
font-size: ${toString (t.fonts.size + 4)}pt;
|
||||
padding: 0 10px;
|
||||
/* Wider outer padding: the bar's rounded corner curves into the
|
||||
end module's box, so the edge glyphs need more room than the
|
||||
uniform 10px or they look cramped (#152; power button mirrors). */
|
||||
padding: 0 10px 0 14px;
|
||||
}
|
||||
#custom-nomarchy:hover { color: @accentAlt; }
|
||||
|
||||
@@ -466,6 +479,7 @@ let
|
||||
color: alpha(@text, 0.85);
|
||||
padding: 0 10px;
|
||||
}
|
||||
#custom-powermenu { padding: 0 16px 0 10px; }
|
||||
#custom-powermenu:hover { color: @bad; }
|
||||
|
||||
/* Group rhythm (item 28c): a wider breath before each functional
|
||||
|
||||
@@ -22,8 +22,11 @@ writeShellScriptBin "nomarchy-airplane" ''
|
||||
networkmanager util-linux bluez coreutils gnugrep gawk libnotify procps
|
||||
]}
|
||||
|
||||
# -x, both comm names: nixpkgs wraps the binary as `.waybar-wrapped`,
|
||||
# and an unanchored `waybar` also matches (and kills) the
|
||||
# nomarchy-waybar supervisor, whose bash dies on an unhandled RTMIN.
|
||||
poke_bar() {
|
||||
pkill -RTMIN+11 waybar 2>/dev/null || true
|
||||
pkill -RTMIN+11 -x 'waybar|\.waybar-wrapped' 2>/dev/null || true
|
||||
}
|
||||
|
||||
wifi_enabled() {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "nomarchy-state-sync";
|
||||
version = "0.5.0";
|
||||
version = "0.5.2";
|
||||
|
||||
src = ./.;
|
||||
|
||||
|
||||
@@ -189,8 +189,17 @@ def auto_commit(message: str) -> None:
|
||||
if not (FLAKE_DIR / ".git").exists() or shutil.which("git") is None:
|
||||
return
|
||||
git = ["git", "-C", str(FLAKE_DIR)]
|
||||
# Pathspec: preferred name plus any leftover legacy file still staged.
|
||||
paths = [STATE_NAME, *LEGACY_STATE_NAMES]
|
||||
# Pathspec: preferred name plus any legacy file git still knows — in the
|
||||
# index or in HEAD (a migration's staged `git rm` needs the pathspec to
|
||||
# ride along). Names known to neither MUST be dropped: unlike `git diff`,
|
||||
# `git commit` aborts on a pathspec that matches nothing, which silently
|
||||
# killed every auto-commit once the #107 rename removed the legacy files.
|
||||
def known(name: str) -> bool:
|
||||
return subprocess.run(git + ["ls-files", "--error-unmatch", "--", name],
|
||||
capture_output=True).returncode == 0 \
|
||||
or subprocess.run(git + ["cat-file", "-e", f"HEAD:{name}"],
|
||||
capture_output=True).returncode == 0
|
||||
paths = [STATE_NAME] + [n for n in LEGACY_STATE_NAMES if known(n)]
|
||||
# No-op when the file already matches HEAD (a `set` to the same value).
|
||||
# On a repo with no commits yet this diff errors — then just commit.
|
||||
if subprocess.run(git + ["diff", "--quiet", "HEAD", "--"] + paths,
|
||||
@@ -438,14 +447,23 @@ def run_switch() -> None:
|
||||
# reload_style_on_change while the symlinks flip), so prefer the
|
||||
# restart whenever the supervisor is there to catch it; fall back to
|
||||
# SIGUSR2 for unsupervised/custom bars. No-ops if nothing is running.
|
||||
# The pattern matches both comm names: nixpkgs wraps the binary, so
|
||||
# the process is `.waybar-wrapped` — a bare `pkill -x waybar` matched
|
||||
# nothing, theme switches never touched the bar, and it kept the
|
||||
# gtk.css of whatever theme it was started under (the 2026-07-19
|
||||
# stale-digit-color bug). Keep -x: unanchored `waybar` also matches
|
||||
# the supervisor's own `nomarchy-waybar` comm and would kill it.
|
||||
if shutil.which("pkill"):
|
||||
supervised = subprocess.run(
|
||||
["pgrep", "-f", "nomarchy-waybar"], capture_output=True
|
||||
).returncode == 0
|
||||
if supervised:
|
||||
subprocess.run(["pkill", "-x", "waybar"], check=False)
|
||||
subprocess.run(["pkill", "-x", r"waybar|\.waybar-wrapped"], check=False)
|
||||
else:
|
||||
subprocess.run(["pkill", "--signal", "SIGUSR2", "-x", "waybar"], check=False)
|
||||
subprocess.run(
|
||||
["pkill", "--signal", "SIGUSR2", "-x", r"waybar|\.waybar-wrapped"],
|
||||
check=False,
|
||||
)
|
||||
|
||||
|
||||
# ─── Theme assets (wallpapers) ────────────────────────────────────────────
|
||||
|
||||
60
themes/boreal-dawn.json
Normal file
60
themes/boreal-dawn.json
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"version": 1,
|
||||
"name": "Boreal Dawn",
|
||||
"slug": "boreal-dawn",
|
||||
"mode": "light",
|
||||
"wallpaper": "",
|
||||
"colors": {
|
||||
"base": "#EDF2F6",
|
||||
"mantle": "#CBD6DF",
|
||||
"surface": "#DFE7EE",
|
||||
"overlay": "#A9B8C6",
|
||||
"text": "#333E4E",
|
||||
"subtext": "#51617A",
|
||||
"muted": "#7C8B9D",
|
||||
"accent": "#7458C8",
|
||||
"accentAlt": "#22766E",
|
||||
"good": "#48752C",
|
||||
"warn": "#8F5E0A",
|
||||
"bad": "#B03A47"
|
||||
},
|
||||
"border": {
|
||||
"active": "accent",
|
||||
"inactive": "overlay"
|
||||
},
|
||||
"fonts": {
|
||||
"mono": "GeistMono Nerd Font",
|
||||
"ui": "Inter",
|
||||
"size": 11
|
||||
},
|
||||
"ui": {
|
||||
"gapsIn": 6,
|
||||
"gapsOut": 14,
|
||||
"borderSize": 3,
|
||||
"rounding": 12,
|
||||
"iconSize": 44,
|
||||
"activeOpacity": 1.0,
|
||||
"inactiveOpacity": 0.95,
|
||||
"terminalOpacity": 0.94,
|
||||
"blur": true,
|
||||
"shadow": true
|
||||
},
|
||||
"ansi": [
|
||||
"#333E4E",
|
||||
"#B03A47",
|
||||
"#48752C",
|
||||
"#8F5E0A",
|
||||
"#3565BE",
|
||||
"#7458C8",
|
||||
"#22766E",
|
||||
"#EDF2F6",
|
||||
"#7C8B9D",
|
||||
"#C94E5C",
|
||||
"#5A8A3C",
|
||||
"#A9731A",
|
||||
"#4678D0",
|
||||
"#8568D8",
|
||||
"#2E8A80",
|
||||
"#F8FAFC"
|
||||
]
|
||||
}
|
||||
25
themes/boreal-dawn/btop.theme
Normal file
25
themes/boreal-dawn/btop.theme
Normal file
@@ -0,0 +1,25 @@
|
||||
theme[main_bg]="#EDF2F6"
|
||||
theme[main_fg]="#333E4E"
|
||||
theme[title]="#333E4E"
|
||||
theme[hi_fg]="#7458C8"
|
||||
theme[selected_bg]="#A9B8C6"
|
||||
theme[selected_fg]="#333E4E"
|
||||
theme[inactive_fg]="#7C8B9D"
|
||||
theme[graph_text]="#51617A"
|
||||
theme[meter_bg]="#DFE7EE"
|
||||
theme[proc_misc]="#22766E"
|
||||
theme[cpu_box]="#7458C8"
|
||||
theme[mem_box]="#48752C"
|
||||
theme[net_box]="#22766E"
|
||||
theme[proc_box]="#DFE7EE"
|
||||
theme[div_line]="#A9B8C6"
|
||||
theme[temp_start]="#48752C"
|
||||
theme[temp_mid]="#8F5E0A"
|
||||
theme[temp_end]="#B03A47"
|
||||
theme[cpu_start]="#48752C"
|
||||
theme[cpu_mid]="#8F5E0A"
|
||||
theme[cpu_end]="#B03A47"
|
||||
theme[free_start]="#48752C"
|
||||
theme[used_start]="#8F5E0A"
|
||||
theme[download_start]="#7458C8"
|
||||
theme[upload_start]="#22766E"
|
||||
42
themes/boreal-dawn/launcher.rasi
Normal file
42
themes/boreal-dawn/launcher.rasi
Normal file
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* Boreal Dawn — app-launcher override (themes/<slug>/launcher.rasi).
|
||||
* Installed to ~/.local/share/rofi/themes/launcher.rasi and used only by
|
||||
* `rofi -show drun` (the SUPER+Space / SUPER+D launcher). It inherits the
|
||||
* frosted dawn panel from the sibling rofi.rasi (this whole-swap theme,
|
||||
* which HM deploys under its source basename — rofi.rasi — not custom.rasi),
|
||||
* then reshapes the list into a 4×3 grid of large application icons.
|
||||
* Text menus keep the list — they don't use this theme.
|
||||
*/
|
||||
|
||||
@import "rofi.rasi"
|
||||
|
||||
window { width: 780px; }
|
||||
|
||||
listview {
|
||||
columns: 4;
|
||||
lines: 3;
|
||||
fixed-columns: true;
|
||||
spacing: 10px;
|
||||
padding: 6px 0px 0px 0px;
|
||||
/* Fill row-by-row so Down at a column's foot pages to the next screen
|
||||
instead of jumping to the top of the next column (rofi's default
|
||||
Vertical flow). Mirrors the theme-picker grid in rofi.nix. */
|
||||
flow: horizontal;
|
||||
}
|
||||
|
||||
element {
|
||||
orientation: vertical;
|
||||
padding: 16px 8px;
|
||||
spacing: 10px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 56px;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
element-text {
|
||||
horizontal-align: 0.5;
|
||||
vertical-align: 0.5;
|
||||
}
|
||||
BIN
themes/boreal-dawn/preview.png
Normal file
BIN
themes/boreal-dawn/preview.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 80 KiB |
122
themes/boreal-dawn/rofi.rasi
Normal file
122
themes/boreal-dawn/rofi.rasi
Normal file
@@ -0,0 +1,122 @@
|
||||
/**
|
||||
* Boreal Dawn — rofi whole-swap (themes/<slug>/rofi.rasi).
|
||||
* The base theme: a frosted dawn panel used by every menu (and, as a
|
||||
* list, the fallback launcher). The app launcher reshapes this into a
|
||||
* grid via themes/boreal-dawn/launcher.rasi, which @imports this file. The
|
||||
* `configuration {}` block is omitted on purpose — it comes from
|
||||
* modules/home/rofi.nix. Element structure mirrors the generated theme
|
||||
* so the theme-grid picker's per-invocation -theme-str still lays out.
|
||||
*/
|
||||
|
||||
* {
|
||||
base: #EDF2F6;
|
||||
glassBg: #EDF2F6E6;
|
||||
surface: #DFE7EE;
|
||||
overlay: #A9B8C6;
|
||||
text: #333E4E;
|
||||
subtext: #51617A;
|
||||
muted: #7C8B9D;
|
||||
accent: #7458C8;
|
||||
accentAlt: #22766E;
|
||||
accentSoft: #7458C83B;
|
||||
frostEdge: #22766E5C;
|
||||
|
||||
font: "GeistMono Nerd Font 11";
|
||||
background-color: transparent;
|
||||
text-color: @text;
|
||||
}
|
||||
|
||||
window {
|
||||
background-color: @glassBg;
|
||||
border: 1px;
|
||||
border-color: @frostEdge;
|
||||
border-radius: 14px;
|
||||
width: calc( 84ch min 65% );
|
||||
location: center;
|
||||
anchor: center;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: transparent;
|
||||
children: [ inputbar, message, listview ];
|
||||
spacing: 12px;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [ prompt, entry ];
|
||||
background-color: @surface;
|
||||
text-color: @text;
|
||||
border-radius: 10px;
|
||||
padding: 12px 16px;
|
||||
spacing: 10px;
|
||||
}
|
||||
|
||||
prompt { text-color: @accent; }
|
||||
|
||||
entry {
|
||||
text-color: @text;
|
||||
cursor: text;
|
||||
placeholder: "Search…";
|
||||
placeholder-color: @muted;
|
||||
}
|
||||
|
||||
listview {
|
||||
background-color: transparent;
|
||||
columns: 1;
|
||||
lines: 8;
|
||||
dynamic: true;
|
||||
scrollbar: true;
|
||||
spacing: 6px;
|
||||
padding: 4px 0px 0px 0px;
|
||||
}
|
||||
|
||||
element {
|
||||
background-color: transparent;
|
||||
text-color: @text;
|
||||
orientation: horizontal;
|
||||
border-radius: 10px;
|
||||
padding: 10px 14px;
|
||||
spacing: 12px;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* Selected row lifts on a soft aurora-violet wash. */
|
||||
element selected.normal {
|
||||
background-color: @accentSoft;
|
||||
text-color: @text;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
background-color: transparent;
|
||||
size: 30px;
|
||||
cursor: inherit;
|
||||
}
|
||||
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
highlight: bold;
|
||||
vertical-align: 0.5;
|
||||
}
|
||||
|
||||
message { padding: 0px; }
|
||||
|
||||
textbox {
|
||||
background-color: @surface;
|
||||
text-color: @text;
|
||||
border-radius: 10px;
|
||||
padding: 10px 14px;
|
||||
}
|
||||
|
||||
scrollbar {
|
||||
width: 4px;
|
||||
handle-width: 4px;
|
||||
handle-color: @accent;
|
||||
background-color: @surface;
|
||||
border: 0px;
|
||||
}
|
||||
195
themes/boreal-dawn/waybar.css
Normal file
195
themes/boreal-dawn/waybar.css
Normal file
@@ -0,0 +1,195 @@
|
||||
/*
|
||||
* Boreal Dawn — Waybar whole-swap (themes/<slug>/waybar.css).
|
||||
*
|
||||
* A theme waybar.css replaces the ENTIRE generated stylesheet and is read
|
||||
* raw (no palette is prepended), so this file MUST define its own colors.
|
||||
* Identity: a floating "frost dawn" bar — three frosted-glass pills
|
||||
* (launcher+clock · workspaces · status) over the wallpaper's blur. The
|
||||
* whole right side is ONE continuous pill: the system tray shares its
|
||||
* glass with the status modules, no separators, no boxes. Companion:
|
||||
* waybar.jsonc.
|
||||
*/
|
||||
|
||||
@define-color base #EDF2F6;
|
||||
@define-color mantle #CBD6DF;
|
||||
@define-color surface #DFE7EE;
|
||||
@define-color overlay #A9B8C6;
|
||||
@define-color text #333E4E;
|
||||
@define-color subtext #51617A;
|
||||
@define-color muted #7C8B9D;
|
||||
@define-color accent #7458C8;
|
||||
@define-color accentAlt #22766E;
|
||||
@define-color good #48752C;
|
||||
@define-color warn #8F5E0A;
|
||||
@define-color bad #B03A47;
|
||||
|
||||
/* NB: this `*` reset reaches the SNI tray menus Waybar hosts too (its
|
||||
stylesheet applies process-wide, at a priority user gtk.css cannot
|
||||
out-rank). The menu block right below undoes the damage — keep the two
|
||||
in sync. Do NOT scope `*` to window#waybar instead: the id's
|
||||
specificity would beat the class rules below (pills) and wreck the
|
||||
bar. */
|
||||
* {
|
||||
/* Mono Nerd face for status glyphs (tight right bearings on the
|
||||
proportional Symbols face make icon+percentage collide). */
|
||||
font-family: "GeistMono Nerd Font", "Symbols Nerd Font Mono";
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
/* ── Tray menus (nm-applet & co live in Waybar's process) ─────────────
|
||||
Undo the `*` reset for them: same stylesheet, higher specificity.
|
||||
Arrows/checks are CSS-sized nodes — min-height 0 makes them invisible;
|
||||
separators die the same way; the bar's mono face reads wrong in text
|
||||
menus. */
|
||||
menu, menu * { font-family: "Inter", sans-serif; }
|
||||
menu menuitem arrow { min-width: 16px; min-height: 16px; }
|
||||
menu check, menu radio { min-width: 14px; min-height: 14px; }
|
||||
menu separator {
|
||||
min-height: 1px;
|
||||
margin: 5px 0;
|
||||
background: alpha(@text, 0.2);
|
||||
}
|
||||
|
||||
/* The bar itself is invisible — the pills float over the wallpaper. */
|
||||
window#waybar {
|
||||
background: transparent;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
/* ── The three frosted-glass pills ────────────────────────────────────
|
||||
Global blur turns the translucent @base into frosted glass; a faint
|
||||
frost edge lifts each pill off the wallpaper. Light frost needs more
|
||||
alpha than the dark theme's to stay visible on pale wallpapers. */
|
||||
.modules-left,
|
||||
.modules-center,
|
||||
.modules-right {
|
||||
background: alpha(@base, 0.78);
|
||||
border: 1px solid alpha(@accentAlt, 0.35);
|
||||
border-radius: 14px;
|
||||
padding: 0 6px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Every module sits ON its pill: transparent, so nothing boxes the tray
|
||||
off from the status icons — the seamless-cluster requirement. */
|
||||
#custom-nomarchy,
|
||||
#clock,
|
||||
#custom-recording,
|
||||
#custom-updates,
|
||||
#custom-doctor,
|
||||
#idle_inhibitor,
|
||||
#custom-nightlight,
|
||||
#custom-airplane,
|
||||
#language,
|
||||
#custom-vpn,
|
||||
#pulseaudio,
|
||||
#battery,
|
||||
#custom-powerprofile,
|
||||
#tray,
|
||||
#custom-notification,
|
||||
#custom-powermenu {
|
||||
background: transparent;
|
||||
color: alpha(@text, 0.95);
|
||||
padding: 0 8px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ── Launcher — the aurora-violet Nomarchy mark opens the pill ────────
|
||||
The mark lives at U+F000 in the dedicated "Nomarchy" font; pin the
|
||||
family or the Nerd Font's glass glyph at the same codepoint wins. */
|
||||
#custom-nomarchy {
|
||||
color: @accent;
|
||||
font-family: Nomarchy;
|
||||
font-size: 18px;
|
||||
padding: 0 12px 0 14px;
|
||||
}
|
||||
#custom-nomarchy:hover { color: @accentAlt; }
|
||||
|
||||
/* ── Clock — unified time · date ─────────────────────────────────────*/
|
||||
#clock {
|
||||
color: @text;
|
||||
font-weight: 600;
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
/* ── Workspaces — dots that bloom to an aurora pill when active ───────*/
|
||||
#workspaces { padding: 0 2px; }
|
||||
|
||||
#workspaces button {
|
||||
/* @subtext, not @muted: on a light pill the 2.0-floor grey washes out
|
||||
at number size — inactive workspaces must stay readable (6.4:1). */
|
||||
color: @subtext;
|
||||
padding: 0 9px;
|
||||
margin: 3px 1px;
|
||||
border-radius: 9px;
|
||||
transition: color 0.2s ease, background 0.2s ease;
|
||||
}
|
||||
#workspaces button:hover {
|
||||
color: @text;
|
||||
background: alpha(@overlay, 0.5);
|
||||
}
|
||||
#workspaces button.active {
|
||||
color: @base;
|
||||
background: @accent;
|
||||
}
|
||||
#workspaces button.urgent {
|
||||
color: @base;
|
||||
background: @bad;
|
||||
}
|
||||
|
||||
/* ── Status semantics (neutral until a state fires) ──────────────────*/
|
||||
#custom-recording.recording { color: @bad; }
|
||||
#custom-updates.available { color: @accent; }
|
||||
#custom-doctor { color: @bad; }
|
||||
#idle_inhibitor.activated { color: @warn; }
|
||||
#custom-nightlight.on { color: @warn; }
|
||||
#custom-airplane.on { color: @warn; }
|
||||
#custom-vpn.on { color: @good; }
|
||||
#pulseaudio.muted { color: @muted; }
|
||||
|
||||
#battery.charging { color: @good; }
|
||||
#battery.warning:not(.charging) { color: @warn; }
|
||||
#battery.critical:not(.charging) { color: @bad; }
|
||||
|
||||
/* Icon-only status modules carry no text, so they don't get the 13pt
|
||||
Pango icon span the icon+text modules (volume/battery/language) use —
|
||||
bump their font-size to match, or these glyphs read noticeably smaller
|
||||
than their neighbours. */
|
||||
#custom-recording,
|
||||
#custom-updates,
|
||||
#custom-doctor,
|
||||
#custom-nightlight,
|
||||
#custom-airplane,
|
||||
#custom-vpn,
|
||||
#custom-notification { font-size: 17px; }
|
||||
/* Speedometer + caffeine cup render small in their em box — a touch more. */
|
||||
#custom-powerprofile,
|
||||
#idle_inhibitor { font-size: 18px; }
|
||||
|
||||
#custom-notification.notification { color: @accent; }
|
||||
#custom-notification.dnd-none,
|
||||
#custom-notification.dnd-notification,
|
||||
#custom-notification.inhibited-none,
|
||||
#custom-notification.inhibited-notification { color: @muted; }
|
||||
|
||||
/* Tray shares the pill's glass — same transparent background, its own
|
||||
modest padding so nm-applet & friends breathe with the status icons. */
|
||||
#tray { padding: 0 6px; }
|
||||
#tray > .passive { -gtk-icon-effect: dim; }
|
||||
#tray > .needs-attention { -gtk-icon-effect: highlight; }
|
||||
|
||||
/* Power button closes the pill on the right; warms to alert on hover. */
|
||||
#custom-powermenu { color: @subtext; padding: 0 12px 0 8px; }
|
||||
#custom-powermenu:hover { color: @bad; }
|
||||
|
||||
/* ── Tooltips — frosted, frost edge ───────────────────────────────────*/
|
||||
tooltip {
|
||||
background: alpha(@base, 0.97);
|
||||
border: 1px solid alpha(@accentAlt, 0.45);
|
||||
border-radius: 10px;
|
||||
}
|
||||
tooltip label { color: @text; }
|
||||
183
themes/boreal-dawn/waybar.jsonc
Normal file
183
themes/boreal-dawn/waybar.jsonc
Normal file
@@ -0,0 +1,183 @@
|
||||
{
|
||||
"margin-top": 8,
|
||||
"margin-left": 14,
|
||||
"margin-right": 14,
|
||||
"margin-bottom": 0,
|
||||
"height": 38,
|
||||
"layer": "bottom",
|
||||
"position": "top",
|
||||
"spacing": 4,
|
||||
"reload_style_on_change": true,
|
||||
"modules-left": [
|
||||
"custom/nomarchy",
|
||||
"clock"
|
||||
],
|
||||
"modules-center": [
|
||||
"hyprland/workspaces"
|
||||
],
|
||||
"modules-right": [
|
||||
"custom/recording",
|
||||
"custom/updates",
|
||||
"custom/doctor",
|
||||
"idle_inhibitor",
|
||||
"custom/nightlight",
|
||||
"hyprland/language",
|
||||
"custom/vpn",
|
||||
"custom/airplane",
|
||||
"pulseaudio",
|
||||
"battery",
|
||||
"custom/powerprofile",
|
||||
"tray",
|
||||
"custom/notification",
|
||||
"custom/powermenu"
|
||||
],
|
||||
"custom/nomarchy": {
|
||||
"interval": "once",
|
||||
"format": "\uf000",
|
||||
"on-click": "nomarchy-menu",
|
||||
"tooltip-format": "Nomarchy menu"
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%H:%M \u00b7 %a %d %b}",
|
||||
"on-click": "nomarchy-calendar",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{:%A, %d %B %Y\n%Z (UTC%z)}"
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": true,
|
||||
"on-click": "activate",
|
||||
"on-scroll-up": "hyprctl dispatch workspace r+1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace r-1"
|
||||
},
|
||||
"custom/recording": {
|
||||
"return-type": "json",
|
||||
"interval": 10,
|
||||
"signal": 8,
|
||||
"exec": "nomarchy-record status",
|
||||
"on-click": "nomarchy-record stop"
|
||||
},
|
||||
"custom/updates": {
|
||||
"return-type": "json",
|
||||
"interval": 1800,
|
||||
"signal": 9,
|
||||
"exec": "nomarchy-updates status",
|
||||
"on-click": "nomarchy-updates upgrade-window"
|
||||
},
|
||||
"custom/doctor": {
|
||||
"return-type": "json",
|
||||
"format": "{}",
|
||||
"interval": 300,
|
||||
"signal": 10,
|
||||
"exec": "nomarchy-doctor-status",
|
||||
"on-click": "nomarchy-menu doctor"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": " \udb80\udd76 ",
|
||||
"deactivated": " \udb83\udfaa "
|
||||
}
|
||||
},
|
||||
"custom/nightlight": {
|
||||
"return-type": "json",
|
||||
"interval": 3,
|
||||
"exec": "nomarchy-nightlight status",
|
||||
"on-click": "nomarchy-nightlight toggle"
|
||||
},
|
||||
"hyprland/language": {
|
||||
"format": "<span size='13pt'>\udb80\udf0c </span>{short}",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/vpn": {
|
||||
"return-type": "json",
|
||||
"interval": 5,
|
||||
"exec": "nomarchy-vpn-status",
|
||||
"on-click": "nomarchy-vpn"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"scroll-step": 5,
|
||||
"format": "<span size='13pt'>{icon}</span>{volume}%",
|
||||
"format-bluetooth": "<span size='13pt'>{icon}\uf294 </span>{volume}%",
|
||||
"format-bluetooth-muted": "\uf6a9 {icon}\uf294",
|
||||
"format-muted": "<span size='13pt'>\uf6a9 </span>muted",
|
||||
"format-icons": {
|
||||
"headphone": "\uf025 ",
|
||||
"hands-free": "\uf025 ",
|
||||
"headset": "\uf025 ",
|
||||
"phone": "\uf095 ",
|
||||
"portable": "\uf095 ",
|
||||
"car": "\uf1b9 ",
|
||||
"default": [
|
||||
"\uf026 ",
|
||||
"\uf027 ",
|
||||
"\uf028 "
|
||||
]
|
||||
},
|
||||
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
||||
"on-click-right": "pwvucontrol",
|
||||
"tooltip-format": "{desc} | {volume}%"
|
||||
},
|
||||
"battery": {
|
||||
"interval": 30,
|
||||
"states": {
|
||||
"warning": 25,
|
||||
"critical": 10
|
||||
},
|
||||
"format": "<span size='13pt'>{icon}</span>{capacity}%",
|
||||
"format-charging": "<span size='13pt'>\uf0e7 </span>{capacity}%",
|
||||
"format-plugged": "<span size='13pt'>\uf1e6 </span>{capacity}%",
|
||||
"tooltip-format-plugged": "Plugged in, not charging \u2014 held at {capacity}% by the battery charge cap\nCharging resumes ~10% below the cap \u00b7 click to adjust",
|
||||
"format-icons": [
|
||||
"\uf244 ",
|
||||
"\uf243 ",
|
||||
"\uf242 ",
|
||||
"\uf241 ",
|
||||
"\uf240 "
|
||||
],
|
||||
"on-click": "nomarchy-menu powermgmt",
|
||||
"tooltip-format": "Battery status"
|
||||
},
|
||||
"custom/powerprofile": {
|
||||
"return-type": "json",
|
||||
"interval": 5,
|
||||
"exec": "nomarchy-powerprofile-status",
|
||||
"on-click": "nomarchy-menu powermgmt"
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 15,
|
||||
"spacing": 10
|
||||
},
|
||||
"custom/notification": {
|
||||
"format": "{icon}",
|
||||
"return-type": "json",
|
||||
"exec": "swaync-client -swb",
|
||||
"exec-if": "which swaync-client",
|
||||
"escape": true,
|
||||
"tooltip": true,
|
||||
"on-click": "swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"format-icons": {
|
||||
"none": "\udb80\udc9c",
|
||||
"notification": "\udb80\udc9a",
|
||||
"dnd-none": "\udb80\udc9b",
|
||||
"dnd-notification": "\udb80\udc9b",
|
||||
"inhibited-none": "\udb80\udc9b",
|
||||
"inhibited-notification": "\udb80\udc9b",
|
||||
"dnd-inhibited-none": "\udb80\udc9b",
|
||||
"dnd-inhibited-notification": "\udb80\udc9b"
|
||||
}
|
||||
},
|
||||
"custom/powermenu": {
|
||||
"format": "\uf011",
|
||||
"on-click": "nomarchy-menu power",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/airplane": {
|
||||
"return-type": "json",
|
||||
"interval": 5,
|
||||
"signal": 11,
|
||||
"exec": "nomarchy-airplane status",
|
||||
"on-click": "nomarchy-airplane toggle"
|
||||
}
|
||||
}
|
||||
60
themes/executive-ivory.json
Normal file
60
themes/executive-ivory.json
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"version": 1,
|
||||
"name": "Executive Ivory",
|
||||
"slug": "executive-ivory",
|
||||
"mode": "light",
|
||||
"wallpaper": "",
|
||||
"colors": {
|
||||
"base": "#F2F0E9",
|
||||
"mantle": "#DCD9CE",
|
||||
"surface": "#E8E5DB",
|
||||
"overlay": "#ABA898",
|
||||
"text": "#252D3B",
|
||||
"subtext": "#4A5568",
|
||||
"muted": "#767E8D",
|
||||
"accent": "#2F5FBF",
|
||||
"accentAlt": "#46689E",
|
||||
"good": "#3E7449",
|
||||
"warn": "#8D6110",
|
||||
"bad": "#A84048"
|
||||
},
|
||||
"border": {
|
||||
"active": "accent",
|
||||
"inactive": "overlay"
|
||||
},
|
||||
"fonts": {
|
||||
"mono": "JetBrainsMono Nerd Font",
|
||||
"ui": "Inter",
|
||||
"size": 11
|
||||
},
|
||||
"ui": {
|
||||
"gapsIn": 5,
|
||||
"gapsOut": 12,
|
||||
"borderSize": 2,
|
||||
"rounding": 10,
|
||||
"iconSize": 36,
|
||||
"activeOpacity": 1.0,
|
||||
"inactiveOpacity": 0.95,
|
||||
"terminalOpacity": 0.96,
|
||||
"blur": true,
|
||||
"shadow": true
|
||||
},
|
||||
"ansi": [
|
||||
"#252D3B",
|
||||
"#A84048",
|
||||
"#3E7449",
|
||||
"#8D6110",
|
||||
"#2F5FBF",
|
||||
"#6B4FA8",
|
||||
"#2E7D88",
|
||||
"#F2F0E9",
|
||||
"#767E8D",
|
||||
"#BC5560",
|
||||
"#4F8A5B",
|
||||
"#A5761A",
|
||||
"#4674D0",
|
||||
"#7E63BE",
|
||||
"#3D93A0",
|
||||
"#FAF9F4"
|
||||
]
|
||||
}
|
||||
25
themes/executive-ivory/btop.theme
Normal file
25
themes/executive-ivory/btop.theme
Normal file
@@ -0,0 +1,25 @@
|
||||
theme[main_bg]="#F2F0E9"
|
||||
theme[main_fg]="#252D3B"
|
||||
theme[title]="#252D3B"
|
||||
theme[hi_fg]="#2F5FBF"
|
||||
theme[selected_bg]="#ABA898"
|
||||
theme[selected_fg]="#252D3B"
|
||||
theme[inactive_fg]="#767E8D"
|
||||
theme[graph_text]="#4A5568"
|
||||
theme[meter_bg]="#E8E5DB"
|
||||
theme[proc_misc]="#46689E"
|
||||
theme[cpu_box]="#2F5FBF"
|
||||
theme[mem_box]="#3E7449"
|
||||
theme[net_box]="#46689E"
|
||||
theme[proc_box]="#E8E5DB"
|
||||
theme[div_line]="#ABA898"
|
||||
theme[temp_start]="#3E7449"
|
||||
theme[temp_mid]="#8D6110"
|
||||
theme[temp_end]="#A84048"
|
||||
theme[cpu_start]="#3E7449"
|
||||
theme[cpu_mid]="#8D6110"
|
||||
theme[cpu_end]="#A84048"
|
||||
theme[free_start]="#3E7449"
|
||||
theme[used_start]="#8D6110"
|
||||
theme[download_start]="#2F5FBF"
|
||||
theme[upload_start]="#46689E"
|
||||
46
themes/executive-ivory/launcher.rasi
Normal file
46
themes/executive-ivory/launcher.rasi
Normal file
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* Executive Ivory — app-launcher override (themes/<slug>/launcher.rasi).
|
||||
* Installed to ~/.local/share/rofi/themes/launcher.rasi and used only by
|
||||
* `rofi -show drun` (the SUPER+Space / SUPER+D launcher). It inherits the
|
||||
* flat ivory panel from the sibling rofi.rasi (this whole-swap theme,
|
||||
* which HM deploys under its source basename — rofi.rasi — not custom.rasi),
|
||||
* then reshapes the list into a 4×3 grid of large application icons —
|
||||
* the same grid the executive-slate night sibling ships, so the pair
|
||||
* swaps shape-invariant. Text menus keep the list — they don't use this
|
||||
* theme. Cards stay at the theme's 4px radius (sharp "control panel"
|
||||
* identity), and the selected card keeps the one-accent-edge highlight
|
||||
* from rofi.rasi.
|
||||
*/
|
||||
|
||||
@import "rofi.rasi"
|
||||
|
||||
window { width: 780px; }
|
||||
|
||||
listview {
|
||||
columns: 4;
|
||||
lines: 3;
|
||||
fixed-columns: true;
|
||||
spacing: 10px;
|
||||
padding: 6px 0px 0px 0px;
|
||||
/* Fill row-by-row so Down at a column's foot pages to the next screen
|
||||
instead of jumping to the top of the next column (rofi's default
|
||||
Vertical flow). Mirrors the theme-picker grid in rofi.nix. */
|
||||
flow: horizontal;
|
||||
}
|
||||
|
||||
element {
|
||||
orientation: vertical;
|
||||
padding: 16px 8px;
|
||||
spacing: 10px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 56px;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
|
||||
element-text {
|
||||
horizontal-align: 0.5;
|
||||
vertical-align: 0.5;
|
||||
}
|
||||
BIN
themes/executive-ivory/preview.png
Normal file
BIN
themes/executive-ivory/preview.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 62 KiB |
125
themes/executive-ivory/rofi.rasi
Normal file
125
themes/executive-ivory/rofi.rasi
Normal file
@@ -0,0 +1,125 @@
|
||||
/**
|
||||
* Executive Ivory — rofi whole-swap (themes/<slug>/rofi.rasi).
|
||||
* Identity: a flat, sharp-cornered "control panel". No zebra, no glow —
|
||||
* a solid ivory window, a recessed surface inputbar, and one accent edge
|
||||
* marking the selected row. The `configuration {}` block is omitted on
|
||||
* purpose — modi/terminal/show-icons come from modules/home/rofi.nix.
|
||||
* Element structure mirrors the generated theme so the theme-grid
|
||||
* picker's per-invocation -theme-str (vertical cards) still lays out.
|
||||
*/
|
||||
|
||||
* {
|
||||
base: #F2F0E9;
|
||||
surface: #E8E5DB;
|
||||
overlay: #ABA898;
|
||||
text: #252D3B;
|
||||
subtext: #4A5568;
|
||||
muted: #767E8D;
|
||||
accent: #2F5FBF;
|
||||
accentAlt: #46689E;
|
||||
|
||||
font: "Inter 13";
|
||||
background-color: transparent;
|
||||
text-color: @text;
|
||||
}
|
||||
|
||||
window {
|
||||
background-color: @base;
|
||||
border: 1px;
|
||||
border-color: @overlay;
|
||||
border-radius: 4px;
|
||||
width: calc( 84ch min 65% );
|
||||
location: center;
|
||||
anchor: center;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: transparent;
|
||||
children: [ inputbar, message, listview ];
|
||||
spacing: 10px;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [ prompt, entry ];
|
||||
background-color: @surface;
|
||||
text-color: @text;
|
||||
border: 1px;
|
||||
border-color: @overlay;
|
||||
border-radius: 4px;
|
||||
padding: 10px 14px;
|
||||
spacing: 10px;
|
||||
}
|
||||
|
||||
prompt { text-color: @accent; }
|
||||
|
||||
entry {
|
||||
text-color: @text;
|
||||
cursor: text;
|
||||
placeholder: "Type to filter…";
|
||||
placeholder-color: @muted;
|
||||
}
|
||||
|
||||
listview {
|
||||
background-color: transparent;
|
||||
columns: 1;
|
||||
lines: 8;
|
||||
dynamic: true;
|
||||
scrollbar: true;
|
||||
spacing: 4px;
|
||||
padding: 4px 0px 0px 0px;
|
||||
}
|
||||
|
||||
element {
|
||||
background-color: transparent;
|
||||
text-color: @text;
|
||||
orientation: horizontal;
|
||||
border-radius: 4px;
|
||||
padding: 9px 14px;
|
||||
spacing: 12px;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* The one highlight: a solid accent-tinted row with an accent edge. */
|
||||
element selected.normal {
|
||||
background-color: #2F5FBF26;
|
||||
text-color: @text;
|
||||
border: 0px 0px 0px 3px;
|
||||
border-color: @accent;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
background-color: transparent;
|
||||
size: 36px;
|
||||
cursor: inherit;
|
||||
}
|
||||
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
highlight: bold;
|
||||
vertical-align: 0.5;
|
||||
}
|
||||
|
||||
message { padding: 0px; }
|
||||
|
||||
textbox {
|
||||
background-color: @surface;
|
||||
text-color: @text;
|
||||
border: 1px;
|
||||
border-color: @overlay;
|
||||
border-radius: 4px;
|
||||
padding: 9px 14px;
|
||||
}
|
||||
|
||||
scrollbar {
|
||||
width: 4px;
|
||||
handle-width: 4px;
|
||||
handle-color: @accent;
|
||||
background-color: @surface;
|
||||
border: 0px;
|
||||
}
|
||||
207
themes/executive-ivory/waybar.css
Normal file
207
themes/executive-ivory/waybar.css
Normal file
@@ -0,0 +1,207 @@
|
||||
/*
|
||||
* Executive Ivory — Waybar whole-swap (themes/<slug>/waybar.css).
|
||||
*
|
||||
* A theme waybar.css replaces the ENTIRE generated stylesheet and is read
|
||||
* raw (no palette is prepended), so this file MUST define its own colors.
|
||||
* Identity: a solid, non-transparent, edge-to-edge status strip — no
|
||||
* floating island, sharp corners, tight modules, and a single accent
|
||||
* underline marking the active workspace. Companion: waybar.jsonc.
|
||||
*/
|
||||
|
||||
@define-color base #F2F0E9;
|
||||
@define-color mantle #DCD9CE;
|
||||
@define-color surface #E8E5DB;
|
||||
@define-color overlay #ABA898;
|
||||
@define-color text #252D3B;
|
||||
@define-color subtext #4A5568;
|
||||
@define-color muted #767E8D;
|
||||
@define-color accent #2F5FBF;
|
||||
@define-color accentAlt #46689E;
|
||||
@define-color good #3E7449;
|
||||
@define-color warn #8D6110;
|
||||
@define-color bad #A84048;
|
||||
|
||||
/* NB: this `*` reset reaches the SNI tray menus Waybar hosts too (its
|
||||
stylesheet applies process-wide, at a priority user gtk.css cannot
|
||||
out-rank). The menu block right below undoes the damage — keep the two
|
||||
in sync. Do NOT scope `*` to window#waybar instead: the id's
|
||||
specificity would beat the class rules below and wreck the bar. */
|
||||
* {
|
||||
/* Mono Nerd face first for status glyphs: proportional "Symbols Nerd
|
||||
Font" has tight right bearings that make icon+percentage collide. */
|
||||
font-family: "Symbols Nerd Font Mono", "Inter", "JetBrainsMono Nerd Font", sans-serif;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
/* ── Tray menus (nm-applet & co live in Waybar's process) ─────────────
|
||||
Undo the `*` reset for them: same stylesheet, higher specificity.
|
||||
Arrows/checks are CSS-sized nodes — min-height 0 makes them invisible;
|
||||
separators die the same way; the glyph-first face reads wrong in text
|
||||
menus. */
|
||||
menu, menu * { font-family: "Inter", sans-serif; }
|
||||
menu menuitem arrow { min-width: 16px; min-height: 16px; }
|
||||
menu check, menu radio { min-width: 14px; min-height: 14px; }
|
||||
menu separator {
|
||||
min-height: 1px;
|
||||
margin: 5px 0;
|
||||
background: alpha(@text, 0.2);
|
||||
}
|
||||
|
||||
/* Solid bar, crisp edge against the content below. */
|
||||
window#waybar {
|
||||
background: @base;
|
||||
border-bottom: 1px solid @overlay;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
.modules-left,
|
||||
.modules-center,
|
||||
.modules-right {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Uniform module rhythm; groups get a wider breath below. */
|
||||
#custom-nomarchy,
|
||||
#clock,
|
||||
#custom-recording,
|
||||
#idle_inhibitor,
|
||||
#custom-nightlight,
|
||||
#custom-airplane,
|
||||
#language,
|
||||
#custom-updates,
|
||||
#pulseaudio,
|
||||
#custom-powerprofile,
|
||||
#battery,
|
||||
#custom-vpn,
|
||||
#custom-doctor,
|
||||
#custom-notification,
|
||||
#tray,
|
||||
#custom-powermenu {
|
||||
color: @text;
|
||||
padding: 0 11px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Group heads — a wider gap before each functional cluster of the
|
||||
right side (media/toggles · stats · status). Self-hiding heads
|
||||
(e.g. no battery on a desktop) degrade to the uniform spacing. */
|
||||
#pulseaudio,
|
||||
#battery,
|
||||
#custom-vpn { margin-left: 6px; }
|
||||
|
||||
/* ── Menu launcher — the branded Nomarchy mark ───────────────────────
|
||||
The mark lives at U+F000 in the dedicated "Nomarchy" font; pin the
|
||||
family or the Nerd Font's glass glyph at the same codepoint wins. */
|
||||
#custom-nomarchy {
|
||||
color: @accent;
|
||||
font-family: Nomarchy;
|
||||
font-size: 16px;
|
||||
padding: 0 14px;
|
||||
}
|
||||
#custom-nomarchy:hover {
|
||||
background: @surface;
|
||||
color: @accentAlt;
|
||||
}
|
||||
|
||||
/* ── Workspaces — flat cells, active carries an accent underline ──── */
|
||||
#workspaces { padding: 0; margin: 0; }
|
||||
|
||||
#workspaces button {
|
||||
color: @subtext;
|
||||
padding: 0 11px;
|
||||
margin: 0;
|
||||
border-bottom: 2px solid transparent;
|
||||
transition: color 0.15s ease-in-out, background 0.15s ease-in-out;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: @surface;
|
||||
color: @text;
|
||||
border-bottom: 2px solid @overlay;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: @text;
|
||||
background: @surface;
|
||||
border-bottom: 2px solid @accent;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: @bad;
|
||||
border-bottom: 2px solid @bad;
|
||||
}
|
||||
|
||||
/* ── Clock — unified time · date in one module ───────────────────── */
|
||||
#clock {
|
||||
color: @text;
|
||||
font-weight: 600;
|
||||
font-family: "Inter", "Symbols Nerd Font Mono", sans-serif;
|
||||
}
|
||||
|
||||
/* ── Status cluster: neutral by default, semantic on state ───────── */
|
||||
#custom-recording.recording { color: @bad; }
|
||||
|
||||
#idle_inhibitor.activated { color: @warn; }
|
||||
|
||||
#custom-nightlight.on { color: @warn; }
|
||||
#custom-airplane.on { color: @warn; }
|
||||
|
||||
#custom-updates.available { color: @accent; }
|
||||
|
||||
/* Icon-only status modules carry no text, so they don't get the 13pt
|
||||
Pango icon span the icon+text modules (volume/battery/language) use —
|
||||
bump their font-size to match, or these glyphs read smaller than their
|
||||
neighbours. */
|
||||
#custom-recording,
|
||||
#custom-nightlight,
|
||||
#custom-airplane,
|
||||
#custom-updates,
|
||||
#custom-vpn,
|
||||
#custom-doctor,
|
||||
#custom-notification { font-size: 17px; }
|
||||
/* Speedometer + caffeine cup render small in their em box — a touch more. */
|
||||
#custom-powerprofile,
|
||||
#idle_inhibitor { font-size: 18px; }
|
||||
|
||||
#pulseaudio.muted { color: @muted; }
|
||||
|
||||
#battery.charging { color: @good; }
|
||||
#battery.warning:not(.charging) { color: @warn; }
|
||||
#battery.critical:not(.charging) {
|
||||
color: @bad;
|
||||
border-bottom: 2px solid @bad;
|
||||
}
|
||||
|
||||
#custom-vpn.on { color: @good; }
|
||||
|
||||
/* Doctor is only rendered when something is ✖, so always the alert. */
|
||||
#custom-doctor { color: @bad; }
|
||||
|
||||
#custom-notification.notification { color: @accent; }
|
||||
#custom-notification.dnd-none,
|
||||
#custom-notification.dnd-notification,
|
||||
#custom-notification.inhibited-none,
|
||||
#custom-notification.inhibited-notification { color: @muted; }
|
||||
|
||||
#tray { color: @text; }
|
||||
|
||||
#custom-powermenu { color: @subtext; }
|
||||
#custom-powermenu:hover {
|
||||
background: @surface;
|
||||
color: @bad;
|
||||
}
|
||||
|
||||
/* ── Tooltips ─────────────────────────────────────────────────────── */
|
||||
tooltip {
|
||||
background: @surface;
|
||||
border: 1px solid @overlay;
|
||||
border-radius: 4px;
|
||||
}
|
||||
tooltip label {
|
||||
color: @text;
|
||||
}
|
||||
182
themes/executive-ivory/waybar.jsonc
Normal file
182
themes/executive-ivory/waybar.jsonc
Normal file
@@ -0,0 +1,182 @@
|
||||
{
|
||||
"margin-top": 0,
|
||||
"margin-left": 0,
|
||||
"margin-bottom": 0,
|
||||
"margin-right": 0,
|
||||
"height": 34,
|
||||
"layer": "bottom",
|
||||
"position": "top",
|
||||
"spacing": 0,
|
||||
"reload_style_on_change": true,
|
||||
"modules-left": [
|
||||
"custom/nomarchy",
|
||||
"hyprland/workspaces"
|
||||
],
|
||||
"modules-center": [
|
||||
"clock"
|
||||
],
|
||||
"modules-right": [
|
||||
"custom/recording",
|
||||
"idle_inhibitor",
|
||||
"custom/nightlight",
|
||||
"hyprland/language",
|
||||
"custom/updates",
|
||||
"pulseaudio",
|
||||
"custom/powerprofile",
|
||||
"battery",
|
||||
"custom/vpn",
|
||||
"custom/airplane",
|
||||
"custom/doctor",
|
||||
"custom/notification",
|
||||
"tray",
|
||||
"custom/powermenu"
|
||||
],
|
||||
"custom/nomarchy": {
|
||||
"interval": "once",
|
||||
"format": "\uf000",
|
||||
"on-click": "nomarchy-menu",
|
||||
"tooltip-format": "Nomarchy menu"
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": true,
|
||||
"on-click": "activate",
|
||||
"on-scroll-up": "hyprctl dispatch workspace r+1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace r-1"
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%H:%M \u00b7 %a %d %b}",
|
||||
"on-click": "nomarchy-calendar",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{:%A, %d %B %Y\n%Z (UTC%z)}"
|
||||
},
|
||||
"custom/recording": {
|
||||
"return-type": "json",
|
||||
"interval": 10,
|
||||
"signal": 8,
|
||||
"exec": "nomarchy-record status",
|
||||
"on-click": "nomarchy-record stop"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": " \udb80\udd76 ",
|
||||
"deactivated": " \udb83\udfaa "
|
||||
}
|
||||
},
|
||||
"custom/nightlight": {
|
||||
"return-type": "json",
|
||||
"interval": 3,
|
||||
"exec": "nomarchy-nightlight status",
|
||||
"on-click": "nomarchy-nightlight toggle"
|
||||
},
|
||||
"hyprland/language": {
|
||||
"format": "<span size='13pt'>\udb80\udf0c </span>{short}",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/updates": {
|
||||
"return-type": "json",
|
||||
"interval": 1800,
|
||||
"signal": 9,
|
||||
"exec": "nomarchy-updates status",
|
||||
"on-click": "nomarchy-updates upgrade-window"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"scroll-step": 5,
|
||||
"format": "<span size='13pt'>{icon}</span>{volume}%",
|
||||
"format-bluetooth": "<span size='13pt'>{icon}\uf294 </span>{volume}%",
|
||||
"format-bluetooth-muted": "\uf6a9 {icon}\uf294",
|
||||
"format-muted": "<span size='13pt'>\uf6a9 </span>muted",
|
||||
"format-icons": {
|
||||
"headphone": "\uf025 ",
|
||||
"hands-free": "\uf025 ",
|
||||
"headset": "\uf025 ",
|
||||
"phone": "\uf095 ",
|
||||
"portable": "\uf095 ",
|
||||
"car": "\uf1b9 ",
|
||||
"default": [
|
||||
"\uf026 ",
|
||||
"\uf027 ",
|
||||
"\uf028 "
|
||||
]
|
||||
},
|
||||
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
||||
"on-click-right": "pwvucontrol",
|
||||
"tooltip-format": "{desc} | {volume}%"
|
||||
},
|
||||
"custom/powerprofile": {
|
||||
"return-type": "json",
|
||||
"interval": 5,
|
||||
"exec": "nomarchy-powerprofile-status",
|
||||
"on-click": "nomarchy-menu powermgmt"
|
||||
},
|
||||
"battery": {
|
||||
"interval": 30,
|
||||
"states": {
|
||||
"warning": 25,
|
||||
"critical": 10
|
||||
},
|
||||
"format": "<span size='13pt'>{icon}</span>{capacity}%",
|
||||
"format-charging": "<span size='13pt'>\uf0e7 </span>{capacity}%",
|
||||
"format-plugged": "<span size='13pt'>\uf1e6 </span>{capacity}%",
|
||||
"tooltip-format-plugged": "Plugged in, not charging \u2014 held at {capacity}% by the battery charge cap\nCharging resumes ~10% below the cap \u00b7 click to adjust",
|
||||
"format-icons": [
|
||||
"\uf244 ",
|
||||
"\uf243 ",
|
||||
"\uf242 ",
|
||||
"\uf241 ",
|
||||
"\uf240 "
|
||||
],
|
||||
"on-click": "nomarchy-menu powermgmt",
|
||||
"tooltip-format": "Battery status"
|
||||
},
|
||||
"custom/vpn": {
|
||||
"return-type": "json",
|
||||
"interval": 5,
|
||||
"exec": "nomarchy-vpn-status",
|
||||
"on-click": "nomarchy-vpn"
|
||||
},
|
||||
"custom/doctor": {
|
||||
"return-type": "json",
|
||||
"format": "{}",
|
||||
"interval": 300,
|
||||
"signal": 10,
|
||||
"exec": "nomarchy-doctor-status",
|
||||
"on-click": "nomarchy-menu doctor"
|
||||
},
|
||||
"custom/notification": {
|
||||
"format": "{icon}",
|
||||
"return-type": "json",
|
||||
"exec": "swaync-client -swb",
|
||||
"exec-if": "which swaync-client",
|
||||
"escape": true,
|
||||
"tooltip": true,
|
||||
"on-click": "swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"format-icons": {
|
||||
"none": "\udb80\udc9c",
|
||||
"notification": "\udb80\udc9a",
|
||||
"dnd-none": "\udb80\udc9b",
|
||||
"dnd-notification": "\udb80\udc9b",
|
||||
"inhibited-none": "\udb80\udc9b",
|
||||
"inhibited-notification": "\udb80\udc9b",
|
||||
"dnd-inhibited-none": "\udb80\udc9b",
|
||||
"dnd-inhibited-notification": "\udb80\udc9b"
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
"spacing": 8
|
||||
},
|
||||
"custom/powermenu": {
|
||||
"format": "\uf011",
|
||||
"on-click": "nomarchy-menu power",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/airplane": {
|
||||
"return-type": "json",
|
||||
"interval": 5,
|
||||
"signal": 11,
|
||||
"exec": "nomarchy-airplane status",
|
||||
"on-click": "nomarchy-airplane toggle"
|
||||
}
|
||||
}
|
||||
60
themes/kiln-clay.json
Normal file
60
themes/kiln-clay.json
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"version": 1,
|
||||
"name": "Kiln Clay",
|
||||
"slug": "kiln-clay",
|
||||
"mode": "light",
|
||||
"wallpaper": "",
|
||||
"colors": {
|
||||
"base": "#F4EDE3",
|
||||
"mantle": "#DFD4C4",
|
||||
"surface": "#EAE1D3",
|
||||
"overlay": "#B1A28E",
|
||||
"text": "#39302A",
|
||||
"subtext": "#5D5142",
|
||||
"muted": "#877867",
|
||||
"accent": "#A34F1F",
|
||||
"accentAlt": "#75621A",
|
||||
"good": "#586F26",
|
||||
"warn": "#8A5E08",
|
||||
"bad": "#AC3B31"
|
||||
},
|
||||
"border": {
|
||||
"active": "accent",
|
||||
"inactive": "overlay"
|
||||
},
|
||||
"fonts": {
|
||||
"mono": "CaskaydiaCove Nerd Font",
|
||||
"ui": "Inter",
|
||||
"size": 11
|
||||
},
|
||||
"ui": {
|
||||
"gapsIn": 5,
|
||||
"gapsOut": 12,
|
||||
"borderSize": 2,
|
||||
"rounding": 8,
|
||||
"iconSize": 40,
|
||||
"activeOpacity": 1.0,
|
||||
"inactiveOpacity": 0.95,
|
||||
"terminalOpacity": 0.95,
|
||||
"blur": true,
|
||||
"shadow": true
|
||||
},
|
||||
"ansi": [
|
||||
"#39302A",
|
||||
"#AC3B31",
|
||||
"#586F26",
|
||||
"#8A5E08",
|
||||
"#3E5F8A",
|
||||
"#7E4A8A",
|
||||
"#33705F",
|
||||
"#F4EDE3",
|
||||
"#877867",
|
||||
"#C05045",
|
||||
"#6A8332",
|
||||
"#A06E10",
|
||||
"#4E70A0",
|
||||
"#96609F",
|
||||
"#418472",
|
||||
"#FAF6EF"
|
||||
]
|
||||
}
|
||||
25
themes/kiln-clay/btop.theme
Normal file
25
themes/kiln-clay/btop.theme
Normal file
@@ -0,0 +1,25 @@
|
||||
theme[main_bg]="#F4EDE3"
|
||||
theme[main_fg]="#39302A"
|
||||
theme[title]="#39302A"
|
||||
theme[hi_fg]="#A34F1F"
|
||||
theme[selected_bg]="#EAE1D3"
|
||||
theme[selected_fg]="#39302A"
|
||||
theme[inactive_fg]="#877867"
|
||||
theme[graph_text]="#5D5142"
|
||||
theme[meter_bg]="#DFD4C4"
|
||||
theme[proc_misc]="#75621A"
|
||||
theme[cpu_box]="#A34F1F"
|
||||
theme[mem_box]="#586F26"
|
||||
theme[net_box]="#75621A"
|
||||
theme[proc_box]="#B1A28E"
|
||||
theme[div_line]="#B1A28E"
|
||||
theme[temp_start]="#586F26"
|
||||
theme[temp_mid]="#8A5E08"
|
||||
theme[temp_end]="#AC3B31"
|
||||
theme[cpu_start]="#586F26"
|
||||
theme[cpu_mid]="#8A5E08"
|
||||
theme[cpu_end]="#AC3B31"
|
||||
theme[free_start]="#586F26"
|
||||
theme[used_start]="#8A5E08"
|
||||
theme[download_start]="#A34F1F"
|
||||
theme[upload_start]="#75621A"
|
||||
BIN
themes/kiln-clay/preview.png
Normal file
BIN
themes/kiln-clay/preview.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 43 KiB |
122
themes/kiln-clay/rofi.rasi
Normal file
122
themes/kiln-clay/rofi.rasi
Normal file
@@ -0,0 +1,122 @@
|
||||
/**
|
||||
* Kiln Clay — rofi whole-swap (themes/<slug>/rofi.rasi).
|
||||
* The base theme: the same solid clay panel as Kiln, lit by midday
|
||||
* terracotta edge glow instead of ember-copper — cream plaster, not
|
||||
* frost or glass. Element structure mirrors the generated theme so the
|
||||
* theme-grid picker's per-invocation -theme-str still lays out. The
|
||||
* `configuration {}` block is omitted on purpose — it comes from
|
||||
* modules/home/rofi.nix.
|
||||
*/
|
||||
|
||||
* {
|
||||
base: #F4EDE3;
|
||||
panelBg: #F4EDE3F5;
|
||||
surface: #EAE1D3;
|
||||
overlay: #B1A28E;
|
||||
text: #39302A;
|
||||
subtext: #5D5142;
|
||||
muted: #877867;
|
||||
accent: #A34F1F;
|
||||
accentAlt: #75621A;
|
||||
accentEdge: #A34F1F59;
|
||||
accentWash: #A34F1F33;
|
||||
|
||||
font: "CaskaydiaCove Nerd Font 11";
|
||||
background-color: transparent;
|
||||
text-color: @text;
|
||||
}
|
||||
|
||||
window {
|
||||
background-color: @panelBg;
|
||||
border: 1px;
|
||||
border-color: @accentEdge;
|
||||
border-radius: 8px;
|
||||
width: calc( 84ch min 65% );
|
||||
location: center;
|
||||
anchor: center;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: transparent;
|
||||
children: [ inputbar, message, listview ];
|
||||
spacing: 12px;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [ prompt, entry ];
|
||||
background-color: @surface;
|
||||
text-color: @text;
|
||||
border-radius: 8px;
|
||||
padding: 12px 16px;
|
||||
spacing: 10px;
|
||||
}
|
||||
|
||||
prompt { text-color: @accent; }
|
||||
|
||||
entry {
|
||||
text-color: @text;
|
||||
cursor: text;
|
||||
placeholder: "Search…";
|
||||
placeholder-color: @muted;
|
||||
}
|
||||
|
||||
listview {
|
||||
background-color: transparent;
|
||||
columns: 1;
|
||||
lines: 8;
|
||||
dynamic: true;
|
||||
scrollbar: true;
|
||||
spacing: 6px;
|
||||
padding: 4px 0px 0px 0px;
|
||||
}
|
||||
|
||||
element {
|
||||
background-color: transparent;
|
||||
text-color: @text;
|
||||
orientation: horizontal;
|
||||
border-radius: 8px;
|
||||
padding: 10px 14px;
|
||||
spacing: 12px;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* Selected row lifts on a soft terracotta wash. */
|
||||
element selected.normal {
|
||||
background-color: @accentWash;
|
||||
text-color: @text;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
background-color: transparent;
|
||||
size: 30px;
|
||||
cursor: inherit;
|
||||
}
|
||||
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
highlight: bold;
|
||||
vertical-align: 0.5;
|
||||
}
|
||||
|
||||
message { padding: 0px; }
|
||||
|
||||
textbox {
|
||||
background-color: @surface;
|
||||
text-color: @text;
|
||||
border-radius: 8px;
|
||||
padding: 10px 14px;
|
||||
}
|
||||
|
||||
scrollbar {
|
||||
width: 4px;
|
||||
handle-width: 4px;
|
||||
handle-color: @accent;
|
||||
background-color: @surface;
|
||||
border: 0px;
|
||||
}
|
||||
194
themes/kiln-clay/waybar.css
Normal file
194
themes/kiln-clay/waybar.css
Normal file
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
* Kiln Clay — Waybar whole-swap (themes/<slug>/waybar.css).
|
||||
*
|
||||
* A theme waybar.css replaces the ENTIRE generated stylesheet and is read
|
||||
* raw (no palette is prepended), so this file MUST define its own colors.
|
||||
* Identity: "the workbench" at midday — the same ONE continuous floating
|
||||
* island as Kiln's night plank, translated to daylight: cream plaster
|
||||
* worktop, terracotta edge-glow. No pills, no edge-to-edge strip: every
|
||||
* module — including the tray — sits directly on the one plank, seamless.
|
||||
* Companion: waybar.jsonc.
|
||||
*/
|
||||
|
||||
@define-color base #F4EDE3;
|
||||
@define-color mantle #DFD4C4;
|
||||
@define-color surface #EAE1D3;
|
||||
@define-color overlay #B1A28E;
|
||||
@define-color text #39302A;
|
||||
@define-color subtext #5D5142;
|
||||
@define-color muted #877867;
|
||||
@define-color accent #A34F1F;
|
||||
@define-color accentAlt #75621A;
|
||||
@define-color good #586F26;
|
||||
@define-color warn #8A5E08;
|
||||
@define-color bad #AC3B31;
|
||||
|
||||
/* NB: this `*` reset reaches the SNI tray menus Waybar hosts too (its
|
||||
stylesheet applies process-wide, at a priority user gtk.css cannot
|
||||
out-rank). The menu block right below undoes the damage — keep the two
|
||||
in sync. Do NOT scope `*` to window#waybar instead: the id's
|
||||
specificity would beat the class rules below (the plank) and wreck the
|
||||
bar. */
|
||||
* {
|
||||
/* Mono Nerd face for status glyphs (tight right bearings on the
|
||||
proportional Symbols face make icon+percentage collide). */
|
||||
font-family: "CaskaydiaCove Nerd Font", "Symbols Nerd Font Mono";
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
/* ── Tray menus (nm-applet & co live in Waybar's process) ─────────────
|
||||
Undo the `*` reset for them: same stylesheet, higher specificity.
|
||||
Arrows/checks are CSS-sized nodes — min-height 0 makes them invisible;
|
||||
separators die the same way; the bar's mono face reads wrong in text
|
||||
menus. */
|
||||
menu, menu * { font-family: "Inter", sans-serif; }
|
||||
menu menuitem arrow { min-width: 16px; min-height: 16px; }
|
||||
menu check, menu radio { min-width: 14px; min-height: 14px; }
|
||||
menu separator {
|
||||
min-height: 1px;
|
||||
margin: 5px 0;
|
||||
background: alpha(@text, 0.15);
|
||||
}
|
||||
|
||||
/* The plank itself — one solid worktop spanning the island, a faint
|
||||
terracotta edge-glow lifting it off the wallpaper. */
|
||||
window#waybar {
|
||||
background: alpha(@base, 0.94);
|
||||
border: 1px solid alpha(@accent, 0.35);
|
||||
border-radius: 8px;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
.modules-left,
|
||||
.modules-center,
|
||||
.modules-right {
|
||||
background: transparent;
|
||||
padding: 0 6px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Every module sits ON the plank: transparent, so nothing boxes the tray
|
||||
off from the status icons — the seamless-cluster requirement. */
|
||||
#custom-nomarchy,
|
||||
#clock,
|
||||
#custom-recording,
|
||||
#custom-updates,
|
||||
#custom-doctor,
|
||||
#idle_inhibitor,
|
||||
#custom-nightlight,
|
||||
#custom-airplane,
|
||||
#language,
|
||||
#custom-vpn,
|
||||
#pulseaudio,
|
||||
#battery,
|
||||
#custom-powerprofile,
|
||||
#tray,
|
||||
#custom-notification,
|
||||
#custom-powermenu {
|
||||
background: transparent;
|
||||
color: alpha(@text, 0.9);
|
||||
padding: 0 8px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ── Launcher — the terracotta Nomarchy mark opens the plank ──────────
|
||||
The mark lives at U+F000 in the dedicated "Nomarchy" font; pin the
|
||||
family or the Nerd Font's glass glyph at the same codepoint wins. */
|
||||
#custom-nomarchy {
|
||||
color: @accent;
|
||||
font-family: Nomarchy;
|
||||
font-size: 18px;
|
||||
padding: 0 12px 0 14px;
|
||||
}
|
||||
#custom-nomarchy:hover { color: @accentAlt; }
|
||||
|
||||
/* ── Clock — unified time · date ─────────────────────────────────────*/
|
||||
#clock {
|
||||
color: @text;
|
||||
font-weight: 600;
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
/* ── Workspaces — dots that fire to a fired-clay pill when active ─────*/
|
||||
#workspaces { padding: 0 2px; }
|
||||
|
||||
#workspaces button {
|
||||
/* @subtext, not @muted: on the cream plank the 2.0-floor grey washes
|
||||
out at number size — inactive workspaces must stay readable (6.6:1). */
|
||||
color: @subtext;
|
||||
padding: 0 9px;
|
||||
margin: 3px 1px;
|
||||
border-radius: 6px;
|
||||
transition: color 0.2s ease, background 0.2s ease;
|
||||
}
|
||||
#workspaces button:hover {
|
||||
color: @text;
|
||||
background: alpha(@overlay, 0.6);
|
||||
}
|
||||
#workspaces button.active {
|
||||
color: @base;
|
||||
background: @accent;
|
||||
border-radius: 6px;
|
||||
}
|
||||
#workspaces button.urgent {
|
||||
color: @base;
|
||||
background: @bad;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
/* ── Status semantics (neutral until a state fires) ──────────────────*/
|
||||
#custom-recording.recording { color: @bad; }
|
||||
#custom-updates.available { color: @accent; }
|
||||
#custom-doctor { color: @bad; }
|
||||
#idle_inhibitor.activated { color: @warn; }
|
||||
#custom-nightlight.on { color: @warn; }
|
||||
#custom-airplane.on { color: @warn; }
|
||||
#custom-vpn.on { color: @good; }
|
||||
#pulseaudio.muted { color: @muted; }
|
||||
|
||||
#battery.charging { color: @good; }
|
||||
#battery.warning:not(.charging) { color: @warn; }
|
||||
#battery.critical:not(.charging) { color: @bad; }
|
||||
|
||||
/* Icon-only status modules carry no text, so they don't get the 13pt
|
||||
Pango icon span the icon+text modules (volume/battery/language) use —
|
||||
bump their font-size to match, or these glyphs read noticeably smaller
|
||||
than their neighbours. */
|
||||
#custom-recording,
|
||||
#custom-updates,
|
||||
#custom-doctor,
|
||||
#custom-nightlight,
|
||||
#custom-airplane,
|
||||
#custom-vpn,
|
||||
#custom-notification { font-size: 17px; }
|
||||
/* Speedometer + caffeine cup render small in their em box — a touch more. */
|
||||
#custom-powerprofile,
|
||||
#idle_inhibitor { font-size: 18px; }
|
||||
|
||||
#custom-notification.notification { color: @accent; }
|
||||
#custom-notification.dnd-none,
|
||||
#custom-notification.dnd-notification,
|
||||
#custom-notification.inhibited-none,
|
||||
#custom-notification.inhibited-notification { color: @muted; }
|
||||
|
||||
/* Tray shares the plank — same transparent background, its own modest
|
||||
padding so nm-applet & friends breathe with the status icons. */
|
||||
#tray { padding: 0 6px; }
|
||||
#tray > .passive { -gtk-icon-effect: dim; }
|
||||
#tray > .needs-attention { -gtk-icon-effect: highlight; }
|
||||
|
||||
/* Power button closes the plank on the right; warms to alert on hover. */
|
||||
#custom-powermenu { color: @subtext; padding: 0 12px 0 8px; }
|
||||
#custom-powermenu:hover { color: @bad; }
|
||||
|
||||
/* ── Tooltips — solid plaster, terracotta edge ───────────────────────*/
|
||||
tooltip {
|
||||
background: alpha(@base, 0.97);
|
||||
border: 1px solid alpha(@accent, 0.4);
|
||||
border-radius: 8px;
|
||||
}
|
||||
tooltip label { color: @text; }
|
||||
183
themes/kiln-clay/waybar.jsonc
Normal file
183
themes/kiln-clay/waybar.jsonc
Normal file
@@ -0,0 +1,183 @@
|
||||
{
|
||||
"margin-top": 6,
|
||||
"margin-left": 12,
|
||||
"margin-right": 12,
|
||||
"margin-bottom": 0,
|
||||
"height": 38,
|
||||
"layer": "bottom",
|
||||
"position": "top",
|
||||
"spacing": 4,
|
||||
"reload_style_on_change": true,
|
||||
"modules-left": [
|
||||
"custom/nomarchy",
|
||||
"clock"
|
||||
],
|
||||
"modules-center": [
|
||||
"hyprland/workspaces"
|
||||
],
|
||||
"modules-right": [
|
||||
"custom/recording",
|
||||
"custom/updates",
|
||||
"custom/doctor",
|
||||
"idle_inhibitor",
|
||||
"custom/nightlight",
|
||||
"hyprland/language",
|
||||
"custom/vpn",
|
||||
"custom/airplane",
|
||||
"pulseaudio",
|
||||
"battery",
|
||||
"custom/powerprofile",
|
||||
"tray",
|
||||
"custom/notification",
|
||||
"custom/powermenu"
|
||||
],
|
||||
"custom/nomarchy": {
|
||||
"interval": "once",
|
||||
"format": "",
|
||||
"on-click": "nomarchy-menu",
|
||||
"tooltip-format": "Nomarchy menu"
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%H:%M · %a %d %b}",
|
||||
"on-click": "nomarchy-calendar",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{:%A, %d %B %Y\n%Z (UTC%z)}"
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": true,
|
||||
"on-click": "activate",
|
||||
"on-scroll-up": "hyprctl dispatch workspace r+1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace r-1"
|
||||
},
|
||||
"custom/recording": {
|
||||
"return-type": "json",
|
||||
"interval": 10,
|
||||
"signal": 8,
|
||||
"exec": "nomarchy-record status",
|
||||
"on-click": "nomarchy-record stop"
|
||||
},
|
||||
"custom/updates": {
|
||||
"return-type": "json",
|
||||
"interval": 1800,
|
||||
"signal": 9,
|
||||
"exec": "nomarchy-updates status",
|
||||
"on-click": "nomarchy-updates upgrade-window"
|
||||
},
|
||||
"custom/doctor": {
|
||||
"return-type": "json",
|
||||
"format": "{}",
|
||||
"interval": 300,
|
||||
"signal": 10,
|
||||
"exec": "nomarchy-doctor-status",
|
||||
"on-click": "nomarchy-menu doctor"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": " ",
|
||||
"deactivated": " "
|
||||
}
|
||||
},
|
||||
"custom/nightlight": {
|
||||
"return-type": "json",
|
||||
"interval": 3,
|
||||
"exec": "nomarchy-nightlight status",
|
||||
"on-click": "nomarchy-nightlight toggle"
|
||||
},
|
||||
"hyprland/language": {
|
||||
"format": "<span size='13pt'> </span>{short}",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/vpn": {
|
||||
"return-type": "json",
|
||||
"interval": 5,
|
||||
"exec": "nomarchy-vpn-status",
|
||||
"on-click": "nomarchy-vpn"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"scroll-step": 5,
|
||||
"format": "<span size='13pt'>{icon}</span>{volume}%",
|
||||
"format-bluetooth": "<span size='13pt'>{icon} </span>{volume}%",
|
||||
"format-bluetooth-muted": " {icon}",
|
||||
"format-muted": "<span size='13pt'> </span>muted",
|
||||
"format-icons": {
|
||||
"headphone": " ",
|
||||
"hands-free": " ",
|
||||
"headset": " ",
|
||||
"phone": " ",
|
||||
"portable": " ",
|
||||
"car": " ",
|
||||
"default": [
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
]
|
||||
},
|
||||
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
||||
"on-click-right": "pwvucontrol",
|
||||
"tooltip-format": "{desc} | {volume}%"
|
||||
},
|
||||
"battery": {
|
||||
"interval": 30,
|
||||
"states": {
|
||||
"warning": 25,
|
||||
"critical": 10
|
||||
},
|
||||
"format": "<span size='13pt'>{icon}</span>{capacity}%",
|
||||
"format-charging": "<span size='13pt'> </span>{capacity}%",
|
||||
"format-plugged": "<span size='13pt'> </span>{capacity}%",
|
||||
"tooltip-format-plugged": "Plugged in, not charging — held at {capacity}% by the battery charge cap\nCharging resumes ~10% below the cap · click to adjust",
|
||||
"format-icons": [
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
],
|
||||
"on-click": "nomarchy-menu powermgmt",
|
||||
"tooltip-format": "Battery status"
|
||||
},
|
||||
"custom/powerprofile": {
|
||||
"return-type": "json",
|
||||
"interval": 5,
|
||||
"exec": "nomarchy-powerprofile-status",
|
||||
"on-click": "nomarchy-menu powermgmt"
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 15,
|
||||
"spacing": 10
|
||||
},
|
||||
"custom/notification": {
|
||||
"format": "{icon}",
|
||||
"return-type": "json",
|
||||
"exec": "swaync-client -swb",
|
||||
"exec-if": "which swaync-client",
|
||||
"escape": true,
|
||||
"tooltip": true,
|
||||
"on-click": "swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"format-icons": {
|
||||
"none": "",
|
||||
"notification": "",
|
||||
"dnd-none": "",
|
||||
"dnd-notification": "",
|
||||
"inhibited-none": "",
|
||||
"inhibited-notification": "",
|
||||
"dnd-inhibited-none": "",
|
||||
"dnd-inhibited-notification": ""
|
||||
}
|
||||
},
|
||||
"custom/powermenu": {
|
||||
"format": "",
|
||||
"on-click": "nomarchy-menu power",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/airplane": {
|
||||
"return-type": "json",
|
||||
"interval": 5,
|
||||
"signal": 11,
|
||||
"exec": "nomarchy-airplane status",
|
||||
"on-click": "nomarchy-airplane toggle"
|
||||
}
|
||||
}
|
||||
60
themes/kiln.json
Normal file
60
themes/kiln.json
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"version": 1,
|
||||
"name": "Kiln",
|
||||
"slug": "kiln",
|
||||
"mode": "dark",
|
||||
"wallpaper": "",
|
||||
"colors": {
|
||||
"base": "#1D1815",
|
||||
"mantle": "#151110",
|
||||
"surface": "#2C241E",
|
||||
"overlay": "#41362D",
|
||||
"text": "#EADFD3",
|
||||
"subtext": "#B5A695",
|
||||
"muted": "#77685A",
|
||||
"accent": "#D68C5C",
|
||||
"accentAlt": "#C8A94E",
|
||||
"good": "#A0B36A",
|
||||
"warn": "#E0A458",
|
||||
"bad": "#E26D5A"
|
||||
},
|
||||
"border": {
|
||||
"active": "accent",
|
||||
"inactive": "overlay"
|
||||
},
|
||||
"fonts": {
|
||||
"mono": "CaskaydiaCove Nerd Font",
|
||||
"ui": "Inter",
|
||||
"size": 11
|
||||
},
|
||||
"ui": {
|
||||
"gapsIn": 5,
|
||||
"gapsOut": 12,
|
||||
"borderSize": 2,
|
||||
"rounding": 8,
|
||||
"iconSize": 40,
|
||||
"activeOpacity": 1.0,
|
||||
"inactiveOpacity": 0.94,
|
||||
"terminalOpacity": 0.93,
|
||||
"blur": true,
|
||||
"shadow": true
|
||||
},
|
||||
"ansi": [
|
||||
"#2C241E",
|
||||
"#E26D5A",
|
||||
"#A0B36A",
|
||||
"#E0A458",
|
||||
"#90A9C8",
|
||||
"#BC8FC6",
|
||||
"#9FBFAE",
|
||||
"#EADFD3",
|
||||
"#77685A",
|
||||
"#EB8272",
|
||||
"#AFC17C",
|
||||
"#E8B46E",
|
||||
"#A3B8D4",
|
||||
"#CBA3D4",
|
||||
"#B0CCBD",
|
||||
"#F4EDE5"
|
||||
]
|
||||
}
|
||||
25
themes/kiln/btop.theme
Normal file
25
themes/kiln/btop.theme
Normal file
@@ -0,0 +1,25 @@
|
||||
theme[main_bg]="#1D1815"
|
||||
theme[main_fg]="#EADFD3"
|
||||
theme[title]="#EADFD3"
|
||||
theme[hi_fg]="#D68C5C"
|
||||
theme[selected_bg]="#2C241E"
|
||||
theme[selected_fg]="#EADFD3"
|
||||
theme[inactive_fg]="#77685A"
|
||||
theme[graph_text]="#B5A695"
|
||||
theme[meter_bg]="#151110"
|
||||
theme[proc_misc]="#C8A94E"
|
||||
theme[cpu_box]="#D68C5C"
|
||||
theme[mem_box]="#A0B36A"
|
||||
theme[net_box]="#C8A94E"
|
||||
theme[proc_box]="#41362D"
|
||||
theme[div_line]="#41362D"
|
||||
theme[temp_start]="#A0B36A"
|
||||
theme[temp_mid]="#E0A458"
|
||||
theme[temp_end]="#E26D5A"
|
||||
theme[cpu_start]="#A0B36A"
|
||||
theme[cpu_mid]="#E0A458"
|
||||
theme[cpu_end]="#E26D5A"
|
||||
theme[free_start]="#A0B36A"
|
||||
theme[used_start]="#E0A458"
|
||||
theme[download_start]="#D68C5C"
|
||||
theme[upload_start]="#C8A94E"
|
||||
BIN
themes/kiln/preview.png
Normal file
BIN
themes/kiln/preview.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
121
themes/kiln/rofi.rasi
Normal file
121
themes/kiln/rofi.rasi
Normal file
@@ -0,0 +1,121 @@
|
||||
/**
|
||||
* Kiln — rofi whole-swap (themes/<slug>/rofi.rasi).
|
||||
* The base theme: a solid warm clay panel lit by ember-copper edge glow —
|
||||
* no frost, no glass, a potter's workbench at night. Element structure
|
||||
* mirrors the generated theme so the theme-grid picker's per-invocation
|
||||
* -theme-str still lays out. The `configuration {}` block is omitted on
|
||||
* purpose — it comes from modules/home/rofi.nix.
|
||||
*/
|
||||
|
||||
* {
|
||||
base: #1D1815;
|
||||
panelBg: #1D1815F2;
|
||||
surface: #2C241E;
|
||||
overlay: #41362D;
|
||||
text: #EADFD3;
|
||||
subtext: #B5A695;
|
||||
muted: #77685A;
|
||||
accent: #D68C5C;
|
||||
accentAlt: #C8A94E;
|
||||
accentEdge: #D68C5C66;
|
||||
accentWash: #D68C5C33;
|
||||
|
||||
font: "CaskaydiaCove Nerd Font 11";
|
||||
background-color: transparent;
|
||||
text-color: @text;
|
||||
}
|
||||
|
||||
window {
|
||||
background-color: @panelBg;
|
||||
border: 1px;
|
||||
border-color: @accentEdge;
|
||||
border-radius: 8px;
|
||||
width: calc( 84ch min 65% );
|
||||
location: center;
|
||||
anchor: center;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: transparent;
|
||||
children: [ inputbar, message, listview ];
|
||||
spacing: 12px;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [ prompt, entry ];
|
||||
background-color: @surface;
|
||||
text-color: @text;
|
||||
border-radius: 8px;
|
||||
padding: 12px 16px;
|
||||
spacing: 10px;
|
||||
}
|
||||
|
||||
prompt { text-color: @accent; }
|
||||
|
||||
entry {
|
||||
text-color: @text;
|
||||
cursor: text;
|
||||
placeholder: "Search…";
|
||||
placeholder-color: @muted;
|
||||
}
|
||||
|
||||
listview {
|
||||
background-color: transparent;
|
||||
columns: 1;
|
||||
lines: 8;
|
||||
dynamic: true;
|
||||
scrollbar: true;
|
||||
spacing: 6px;
|
||||
padding: 4px 0px 0px 0px;
|
||||
}
|
||||
|
||||
element {
|
||||
background-color: transparent;
|
||||
text-color: @text;
|
||||
orientation: horizontal;
|
||||
border-radius: 8px;
|
||||
padding: 10px 14px;
|
||||
spacing: 12px;
|
||||
}
|
||||
|
||||
element normal.normal,
|
||||
element alternate.normal {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* Selected row lifts on a soft ember-copper wash. */
|
||||
element selected.normal {
|
||||
background-color: @accentWash;
|
||||
text-color: @text;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
background-color: transparent;
|
||||
size: 30px;
|
||||
cursor: inherit;
|
||||
}
|
||||
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
highlight: bold;
|
||||
vertical-align: 0.5;
|
||||
}
|
||||
|
||||
message { padding: 0px; }
|
||||
|
||||
textbox {
|
||||
background-color: @surface;
|
||||
text-color: @text;
|
||||
border-radius: 8px;
|
||||
padding: 10px 14px;
|
||||
}
|
||||
|
||||
scrollbar {
|
||||
width: 4px;
|
||||
handle-width: 4px;
|
||||
handle-color: @accent;
|
||||
background-color: @surface;
|
||||
border: 0px;
|
||||
}
|
||||
192
themes/kiln/waybar.css
Normal file
192
themes/kiln/waybar.css
Normal file
@@ -0,0 +1,192 @@
|
||||
/*
|
||||
* Kiln — Waybar whole-swap (themes/<slug>/waybar.css).
|
||||
*
|
||||
* A theme waybar.css replaces the ENTIRE generated stylesheet and is read
|
||||
* raw (no palette is prepended), so this file MUST define its own colors.
|
||||
* Identity: "the workbench" — ONE continuous floating island, a solid
|
||||
* worktop plank spanning the screen width minus margins, with a faint
|
||||
* copper edge-glow border. No pills, no edge-to-edge strip: every module
|
||||
* — including the tray — sits directly on the one plank, seamless.
|
||||
* Companion: waybar.jsonc.
|
||||
*/
|
||||
|
||||
@define-color base #1D1815;
|
||||
@define-color mantle #151110;
|
||||
@define-color surface #2C241E;
|
||||
@define-color overlay #41362D;
|
||||
@define-color text #EADFD3;
|
||||
@define-color subtext #B5A695;
|
||||
@define-color muted #77685A;
|
||||
@define-color accent #D68C5C;
|
||||
@define-color accentAlt #C8A94E;
|
||||
@define-color good #A0B36A;
|
||||
@define-color warn #E0A458;
|
||||
@define-color bad #E26D5A;
|
||||
|
||||
/* NB: this `*` reset reaches the SNI tray menus Waybar hosts too (its
|
||||
stylesheet applies process-wide, at a priority user gtk.css cannot
|
||||
out-rank). The menu block right below undoes the damage — keep the two
|
||||
in sync. Do NOT scope `*` to window#waybar instead: the id's
|
||||
specificity would beat the class rules below (the plank) and wreck the
|
||||
bar. */
|
||||
* {
|
||||
/* Mono Nerd face for status glyphs (tight right bearings on the
|
||||
proportional Symbols face make icon+percentage collide). */
|
||||
font-family: "CaskaydiaCove Nerd Font", "Symbols Nerd Font Mono";
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
/* ── Tray menus (nm-applet & co live in Waybar's process) ─────────────
|
||||
Undo the `*` reset for them: same stylesheet, higher specificity.
|
||||
Arrows/checks are CSS-sized nodes — min-height 0 makes them invisible;
|
||||
separators die the same way; the bar's mono face reads wrong in text
|
||||
menus. */
|
||||
menu, menu * { font-family: "Inter", sans-serif; }
|
||||
menu menuitem arrow { min-width: 16px; min-height: 16px; }
|
||||
menu check, menu radio { min-width: 14px; min-height: 14px; }
|
||||
menu separator {
|
||||
min-height: 1px;
|
||||
margin: 5px 0;
|
||||
background: alpha(@text, 0.15);
|
||||
}
|
||||
|
||||
/* The plank itself — one solid worktop spanning the island, a faint
|
||||
ember-copper edge-glow lifting it off the wallpaper. */
|
||||
window#waybar {
|
||||
background: alpha(@base, 0.92);
|
||||
border: 1px solid alpha(@accent, 0.25);
|
||||
border-radius: 8px;
|
||||
color: @text;
|
||||
}
|
||||
|
||||
.modules-left,
|
||||
.modules-center,
|
||||
.modules-right {
|
||||
background: transparent;
|
||||
padding: 0 6px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Every module sits ON the plank: transparent, so nothing boxes the tray
|
||||
off from the status icons — the seamless-cluster requirement. */
|
||||
#custom-nomarchy,
|
||||
#clock,
|
||||
#custom-recording,
|
||||
#custom-updates,
|
||||
#custom-doctor,
|
||||
#idle_inhibitor,
|
||||
#custom-nightlight,
|
||||
#custom-airplane,
|
||||
#language,
|
||||
#custom-vpn,
|
||||
#pulseaudio,
|
||||
#battery,
|
||||
#custom-powerprofile,
|
||||
#tray,
|
||||
#custom-notification,
|
||||
#custom-powermenu {
|
||||
background: transparent;
|
||||
color: alpha(@text, 0.9);
|
||||
padding: 0 8px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ── Launcher — the ember-copper Nomarchy mark opens the plank ────────
|
||||
The mark lives at U+F000 in the dedicated "Nomarchy" font; pin the
|
||||
family or the Nerd Font's glass glyph at the same codepoint wins. */
|
||||
#custom-nomarchy {
|
||||
color: @accent;
|
||||
font-family: Nomarchy;
|
||||
font-size: 18px;
|
||||
padding: 0 12px 0 14px;
|
||||
}
|
||||
#custom-nomarchy:hover { color: @accentAlt; }
|
||||
|
||||
/* ── Clock — unified time · date ─────────────────────────────────────*/
|
||||
#clock {
|
||||
color: @text;
|
||||
font-weight: 600;
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
/* ── Workspaces — dots that fire to an ember pill when active ─────────*/
|
||||
#workspaces { padding: 0 2px; }
|
||||
|
||||
#workspaces button {
|
||||
color: @muted;
|
||||
padding: 0 9px;
|
||||
margin: 3px 1px;
|
||||
border-radius: 6px;
|
||||
transition: color 0.2s ease, background 0.2s ease;
|
||||
}
|
||||
#workspaces button:hover {
|
||||
color: @text;
|
||||
background: alpha(@overlay, 0.6);
|
||||
}
|
||||
#workspaces button.active {
|
||||
color: @base;
|
||||
background: @accent;
|
||||
border-radius: 6px;
|
||||
}
|
||||
#workspaces button.urgent {
|
||||
color: @base;
|
||||
background: @bad;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
/* ── Status semantics (neutral until a state fires) ──────────────────*/
|
||||
#custom-recording.recording { color: @bad; }
|
||||
#custom-updates.available { color: @accent; }
|
||||
#custom-doctor { color: @bad; }
|
||||
#idle_inhibitor.activated { color: @warn; }
|
||||
#custom-nightlight.on { color: @warn; }
|
||||
#custom-airplane.on { color: @warn; }
|
||||
#custom-vpn.on { color: @good; }
|
||||
#pulseaudio.muted { color: @muted; }
|
||||
|
||||
#battery.charging { color: @good; }
|
||||
#battery.warning:not(.charging) { color: @warn; }
|
||||
#battery.critical:not(.charging) { color: @bad; }
|
||||
|
||||
/* Icon-only status modules carry no text, so they don't get the 13pt
|
||||
Pango icon span the icon+text modules (volume/battery/language) use —
|
||||
bump their font-size to match, or these glyphs read noticeably smaller
|
||||
than their neighbours. */
|
||||
#custom-recording,
|
||||
#custom-updates,
|
||||
#custom-doctor,
|
||||
#custom-nightlight,
|
||||
#custom-airplane,
|
||||
#custom-vpn,
|
||||
#custom-notification { font-size: 17px; }
|
||||
/* Speedometer + caffeine cup render small in their em box — a touch more. */
|
||||
#custom-powerprofile,
|
||||
#idle_inhibitor { font-size: 18px; }
|
||||
|
||||
#custom-notification.notification { color: @accent; }
|
||||
#custom-notification.dnd-none,
|
||||
#custom-notification.dnd-notification,
|
||||
#custom-notification.inhibited-none,
|
||||
#custom-notification.inhibited-notification { color: @muted; }
|
||||
|
||||
/* Tray shares the plank — same transparent background, its own modest
|
||||
padding so nm-applet & friends breathe with the status icons. */
|
||||
#tray { padding: 0 6px; }
|
||||
#tray > .passive { -gtk-icon-effect: dim; }
|
||||
#tray > .needs-attention { -gtk-icon-effect: highlight; }
|
||||
|
||||
/* Power button closes the plank on the right; warms to alert on hover. */
|
||||
#custom-powermenu { color: @subtext; padding: 0 12px 0 8px; }
|
||||
#custom-powermenu:hover { color: @bad; }
|
||||
|
||||
/* ── Tooltips — solid clay, ember-copper edge ────────────────────────*/
|
||||
tooltip {
|
||||
background: alpha(@mantle, 0.96);
|
||||
border: 1px solid alpha(@accent, 0.35);
|
||||
border-radius: 8px;
|
||||
}
|
||||
tooltip label { color: @text; }
|
||||
183
themes/kiln/waybar.jsonc
Normal file
183
themes/kiln/waybar.jsonc
Normal file
@@ -0,0 +1,183 @@
|
||||
{
|
||||
"margin-top": 6,
|
||||
"margin-left": 12,
|
||||
"margin-right": 12,
|
||||
"margin-bottom": 0,
|
||||
"height": 38,
|
||||
"layer": "bottom",
|
||||
"position": "top",
|
||||
"spacing": 4,
|
||||
"reload_style_on_change": true,
|
||||
"modules-left": [
|
||||
"custom/nomarchy",
|
||||
"clock"
|
||||
],
|
||||
"modules-center": [
|
||||
"hyprland/workspaces"
|
||||
],
|
||||
"modules-right": [
|
||||
"custom/recording",
|
||||
"custom/updates",
|
||||
"custom/doctor",
|
||||
"idle_inhibitor",
|
||||
"custom/nightlight",
|
||||
"hyprland/language",
|
||||
"custom/vpn",
|
||||
"custom/airplane",
|
||||
"pulseaudio",
|
||||
"battery",
|
||||
"custom/powerprofile",
|
||||
"tray",
|
||||
"custom/notification",
|
||||
"custom/powermenu"
|
||||
],
|
||||
"custom/nomarchy": {
|
||||
"interval": "once",
|
||||
"format": "",
|
||||
"on-click": "nomarchy-menu",
|
||||
"tooltip-format": "Nomarchy menu"
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%H:%M · %a %d %b}",
|
||||
"on-click": "nomarchy-calendar",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{:%A, %d %B %Y\n%Z (UTC%z)}"
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": true,
|
||||
"on-click": "activate",
|
||||
"on-scroll-up": "hyprctl dispatch workspace r+1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace r-1"
|
||||
},
|
||||
"custom/recording": {
|
||||
"return-type": "json",
|
||||
"interval": 10,
|
||||
"signal": 8,
|
||||
"exec": "nomarchy-record status",
|
||||
"on-click": "nomarchy-record stop"
|
||||
},
|
||||
"custom/updates": {
|
||||
"return-type": "json",
|
||||
"interval": 1800,
|
||||
"signal": 9,
|
||||
"exec": "nomarchy-updates status",
|
||||
"on-click": "nomarchy-updates upgrade-window"
|
||||
},
|
||||
"custom/doctor": {
|
||||
"return-type": "json",
|
||||
"format": "{}",
|
||||
"interval": 300,
|
||||
"signal": 10,
|
||||
"exec": "nomarchy-doctor-status",
|
||||
"on-click": "nomarchy-menu doctor"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": " ",
|
||||
"deactivated": " "
|
||||
}
|
||||
},
|
||||
"custom/nightlight": {
|
||||
"return-type": "json",
|
||||
"interval": 3,
|
||||
"exec": "nomarchy-nightlight status",
|
||||
"on-click": "nomarchy-nightlight toggle"
|
||||
},
|
||||
"hyprland/language": {
|
||||
"format": "<span size='13pt'> </span>{short}",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/vpn": {
|
||||
"return-type": "json",
|
||||
"interval": 5,
|
||||
"exec": "nomarchy-vpn-status",
|
||||
"on-click": "nomarchy-vpn"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"scroll-step": 5,
|
||||
"format": "<span size='13pt'>{icon}</span>{volume}%",
|
||||
"format-bluetooth": "<span size='13pt'>{icon} </span>{volume}%",
|
||||
"format-bluetooth-muted": " {icon}",
|
||||
"format-muted": "<span size='13pt'> </span>muted",
|
||||
"format-icons": {
|
||||
"headphone": " ",
|
||||
"hands-free": " ",
|
||||
"headset": " ",
|
||||
"phone": " ",
|
||||
"portable": " ",
|
||||
"car": " ",
|
||||
"default": [
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
]
|
||||
},
|
||||
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
||||
"on-click-right": "pwvucontrol",
|
||||
"tooltip-format": "{desc} | {volume}%"
|
||||
},
|
||||
"battery": {
|
||||
"interval": 30,
|
||||
"states": {
|
||||
"warning": 25,
|
||||
"critical": 10
|
||||
},
|
||||
"format": "<span size='13pt'>{icon}</span>{capacity}%",
|
||||
"format-charging": "<span size='13pt'> </span>{capacity}%",
|
||||
"format-plugged": "<span size='13pt'> </span>{capacity}%",
|
||||
"tooltip-format-plugged": "Plugged in, not charging — held at {capacity}% by the battery charge cap\nCharging resumes ~10% below the cap · click to adjust",
|
||||
"format-icons": [
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "
|
||||
],
|
||||
"on-click": "nomarchy-menu powermgmt",
|
||||
"tooltip-format": "Battery status"
|
||||
},
|
||||
"custom/powerprofile": {
|
||||
"return-type": "json",
|
||||
"interval": 5,
|
||||
"exec": "nomarchy-powerprofile-status",
|
||||
"on-click": "nomarchy-menu powermgmt"
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 15,
|
||||
"spacing": 10
|
||||
},
|
||||
"custom/notification": {
|
||||
"format": "{icon}",
|
||||
"return-type": "json",
|
||||
"exec": "swaync-client -swb",
|
||||
"exec-if": "which swaync-client",
|
||||
"escape": true,
|
||||
"tooltip": true,
|
||||
"on-click": "swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"format-icons": {
|
||||
"none": "",
|
||||
"notification": "",
|
||||
"dnd-none": "",
|
||||
"dnd-notification": "",
|
||||
"inhibited-none": "",
|
||||
"inhibited-notification": "",
|
||||
"dnd-inhibited-none": "",
|
||||
"dnd-inhibited-notification": ""
|
||||
}
|
||||
},
|
||||
"custom/powermenu": {
|
||||
"format": "",
|
||||
"on-click": "nomarchy-menu power",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/airplane": {
|
||||
"return-type": "json",
|
||||
"interval": 5,
|
||||
"signal": 11,
|
||||
"exec": "nomarchy-airplane status",
|
||||
"on-click": "nomarchy-airplane toggle"
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@
|
||||
@define-color grey0 #a6b0a0;
|
||||
@define-color grey1 #939f91; /* overlay */
|
||||
@define-color grey2 #829181; /* muted */
|
||||
@define-color fg_dim #6e828a; /* subtext */
|
||||
|
||||
/* margin: top right bottom left */
|
||||
/* Spacing outside the element */
|
||||
@@ -79,6 +80,14 @@ window#waybar {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
/* Inactive workspace numbers: without an explicit rule the GTK default
|
||||
button color leaks in (the container's @fg does NOT inherit into
|
||||
buttons) and the numbers vanish on the cream chip. @fg_dim = the
|
||||
palette's subtext (4.0:1) — dim but readable. */
|
||||
#workspaces button {
|
||||
color: @fg_dim;
|
||||
}
|
||||
|
||||
/* The power-profile speedometer glyph renders small in its em box. */
|
||||
#custom-powerprofile {
|
||||
font-size: 20px;
|
||||
|
||||
@@ -140,8 +140,15 @@ pkgs.testers.runNixOSTest {
|
||||
# re-dock action.
|
||||
machine.succeed("printf 'state: closed\\n' > /run/nomarchy-test-lid-state")
|
||||
machine.succeed(hy + "reload'")
|
||||
# A reload re-lights the *already-present* (disabled) Virtual-1 connector,
|
||||
# which emits no `monitoradded` — so the watcher only re-disables it on its
|
||||
# 1s idle tick (chatty IPC events `continue` past reconcile). Under this
|
||||
# softGL VM's load (swaync crash-loops on the absent Vulkan device, see the
|
||||
# journal) that idle tick is badly starved and the re-dock lands ~15-20s
|
||||
# out — a real, prompt re-dock on hardware, but right on the old 15s bound,
|
||||
# so this flaked. Bounded generously, in line with the 20-30s waits above.
|
||||
machine.wait_until_succeeds(
|
||||
hy + "-j monitors' | jq -e 'all(.[]; .name != \"Virtual-1\")'", timeout=15
|
||||
hy + "-j monitors' | jq -e 'all(.[]; .name != \"Virtual-1\")'", timeout=45
|
||||
)
|
||||
machine.succeed("journalctl -t nomarchy-display-watch | grep -q 'action=re-dock'")
|
||||
print("reload-mid-dock: panel re-disabled by enforce_dock_intent; re-dock logged (#148)")
|
||||
|
||||
@@ -79,7 +79,7 @@ pkgs.testers.runNixOSTest {
|
||||
machine.succeed("grep -q 'theme\\[main_bg\\]' /home/nomarchy/.config/btop/themes/nomarchy.theme")
|
||||
# Poke custom/doctor (signal 10) so a first-poll miss at session start
|
||||
# doesn't leave the tripwire blank for the full 300s interval.
|
||||
machine.execute("su - nomarchy -c 'pkill -RTMIN+10 waybar' >/dev/null 2>&1 || true")
|
||||
machine.execute("su - nomarchy -c \"pkill -RTMIN+10 -x 'waybar|\\.waybar-wrapped'\" >/dev/null 2>&1 || true")
|
||||
machine.sleep(3)
|
||||
# Park the cursor in the bottom-right corner so it doesn't sit in the
|
||||
# middle of the desktop shot (that frame doubles as the theme-picker
|
||||
|
||||
Reference in New Issue
Block a user