repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

hypr: rework nugu theme fragments

468f2597c199a820fcfbfc5a19bad4c8b36490b5

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (19)

bash/linux-console/nugu-dark.sh

Added
new file mode 100644
1 +#!/bin/sh
2 +# Generated by nugu/linux_console.nu.
3 +# Sudo-free Linux virtual console palette.
4 +# No effect outside TERM=linux.
6 +if [ "${TERM:-}" != linux ]; then
7 + return 0 2>/dev/null || exit 0
8 +fi
10 +export NUGU_CONSOLE_THEME=dark
12 +printf '\033]P0121212'
13 +printf '\033]P1e46479'
14 +printf '\033]P27ba1aa'
15 +printf '\033]P39e9a69'
16 +printf '\033]P4b59ae4'
17 +printf '\033]P5d151d1'
18 +printf '\033]P65d5d5d'
19 +printf '\033]P7ededed'
20 +printf '\033]P88b8b8b'
21 +printf '\033]P93ec5dd'
22 +printf '\033]Pa6f6f6f'
23 +printf '\033]Pb242424'
24 +printf '\033]Pcdfd3f3'
25 +printf '\033]Pdd86dd8'
26 +printf '\033]Pec9b6eb'
27 +printf '\033]Pff3effb'
29 +# After palette rewrite, black=slot 0 and white=slot 7.
30 +if command -v setterm >/dev/null 2>&1; then
31 + setterm --foreground white --background black --store
32 +fi

bash/linux-console/nugu-light.sh

Added
new file mode 100644
1 +#!/bin/sh
2 +# Generated by nugu/linux_console.nu.
3 +# Sudo-free Linux virtual console palette.
4 +# No effect outside TERM=linux.
6 +if [ "${TERM:-}" != linux ]; then
7 + return 0 2>/dev/null || exit 0
8 +fi
10 +export NUGU_CONSOLE_THEME=light
12 +printf '\033]P0ededed'
13 +printf '\033]P1c0223c'
14 +printf '\033]P2184e5b'
15 +printf '\033]P3242317'
16 +printf '\033]P4715696'
17 +printf '\033]P5ae2eae'
18 +printf '\033]P66f6f6f'
19 +printf '\033]P7121212'
20 +printf '\033]P83b3b3b'
21 +printf '\033]P913616e'
22 +printf '\033]Pa5d5d5d'
23 +printf '\033]Pbdbdbdb'
24 +printf '\033]Pc4f3c69'
25 +printf '\033]Pd922792'
26 +printf '\033]Pe604980'
27 +printf '\033]Pf3e2f53'
29 +# After palette rewrite, black=slot 0 and white=slot 7.
30 +if command -v setterm >/dev/null 2>&1; then
31 + setterm --foreground white --background black --store
32 +fi

hypr/AGENTS.md

Added
new file mode 100644
1 +# AGENTS — Nugu theming
3 +Scope: `hypr/` desktop theming.
5 +Rules:
6 +- Nugu generators output palette/color fragments only when app supports import/include.
7 +- Keep app behavior/layout/fonts/spacing in app config dir.
8 +- Do not duplicate whole app configs in `nugu/`.
9 +- Use generated fragments:
10 + - Ironbar: `ironbar/nugu.css` via `@import url("nugu.css")`
11 + - Mako: `mako/nugu.conf` via `include=~/.config/mako/nugu.conf`
12 + - Hypr Lua: `hypr/generated/nugu.lua`
13 + - Runtime JSON: `hypr/generated/nugu.json`
14 +- Runtime switcher `hypr/scripts/theme.nu` writes active color fragments under `$XDG_CONFIG_HOME`.
16 +Hyprtoolkit:
17 +- Never rewrite `hyprtoolkit.conf` while Hyprtoolkit apps run.
18 +- Bug: https://github.com/hyprwm/hyprtoolkit/issues/92
19 +- Static session config only until fixed.
21 +Nugu semantics:
22 +- `content.*` = app/content/terminal text surfaces.
23 +- `ui.*` = chrome/widgets/borders/status bars.
24 +- `error|warning|info|debug` = semantic signal colors.
25 +- Active UI: bg `ui.focus`, fg `content.backdrop`.
26 +- Hover/accent UI: bg `ui.accent`, fg `content.backdrop`.
27 +- Muted UI text: `ui.minor` over `ui.backdrop`.
28 +- Borders/accent lines: `ui.accent`.
30 +Accessibility:
31 +- Check critical fg/bg pairs with `pastel format luminance` or `pastel textcolor`.
32 +- Target ≥4.5 contrast; prefer ≥7 for small bar text.
33 +- Verify screenshots; CSS cascade/child labels may override intended colors.
35 +Fonts:
36 +- Use IBM Plex family exclusively in Hypr desktop configs.
37 +- UI sans: `IBM Plex Sans`; mono/status: `IBM Plex Mono`.
39 +Testing:
40 +- After theme edits: `NUGU_NO_NOTIFY=1 hypr/scripts/theme.nu dark|light`.
41 +- Check `systemctl --user is-active mako.service ironbar.service hyprpaper.service`.
42 +- Screenshot dark/light with `grim`; inspect actual rendered colors, not just CSS.

hypr/generated/nugu.json

Added
new file mode 100644
1 +{
2 + "dark": {
3 + "debug": "#ed5eed",
4 + "error": "#e46479",
5 + "warning": "#9e9a69",
6 + "info": "#3ec5dd",
7 + "content": {
8 + "normal": "#ededed",
9 + "backdrop": "#121212",
10 + "accent": "#d151d1",
11 + "minor": "#8b8b8b",
12 + "focus": "#7ba1aa",
13 + "unfocus": "#5d5d5d",
14 + "important_local": "#b59ae4",
15 + "important_global": "#dfd3f3"
16 + },
17 + "ui": {
18 + "normal": "#dbdbdb",
19 + "backdrop": "#242424",
20 + "accent": "#d86dd8",
21 + "minor": "#9d9d9d",
22 + "focus": "#9aabae",
23 + "unfocus": "#6f6f6f",
24 + "important_local": "#c9b6eb",
25 + "important_global": "#f3effb"
26 + }
27 + },
28 + "light": {
29 + "debug": "#a112a1",
30 + "error": "#c0223c",
31 + "warning": "#242317",
32 + "info": "#13616e",
33 + "content": {
34 + "normal": "#121212",
35 + "backdrop": "#ededed",
36 + "accent": "#ae2eae",
37 + "minor": "#3b3b3b",
38 + "focus": "#184e5b",
39 + "unfocus": "#6f6f6f",
40 + "important_local": "#715696",
41 + "important_global": "#4f3c69"
42 + },
43 + "ui": {
44 + "normal": "#242424",
45 + "backdrop": "#dbdbdb",
46 + "accent": "#922792",
47 + "minor": "#292929",
48 + "focus": "#15333b",
49 + "unfocus": "#5d5d5d",
50 + "important_local": "#604980",
51 + "important_global": "#3e2f53"
52 + }
53 + }

hypr/generated/nugu.lua

Added
new file mode 100644
1 +local palette = {
2 + dark = {
3 + debug = "#ed5eed",
4 + error = "#e46479",
5 + warning = "#9e9a69",
6 + info = "#3ec5dd",
7 + content = {
8 + normal = "#ededed",
9 + backdrop = "#121212",
10 + accent = "#d151d1",
11 + minor = "#8b8b8b",
12 + focus = "#7ba1aa",
13 + unfocus = "#5d5d5d",
14 + important_local = "#b59ae4",
15 + important_global = "#dfd3f3",
16 + },
17 + ui = {
18 + normal = "#dbdbdb",
19 + backdrop = "#242424",
20 + accent = "#d86dd8",
21 + minor = "#9d9d9d",
22 + focus = "#9aabae",
23 + unfocus = "#6f6f6f",
24 + important_local = "#c9b6eb",
25 + important_global = "#f3effb",
26 + },
27 + },
28 + light = {
29 + debug = "#a112a1",
30 + error = "#c0223c",
31 + warning = "#242317",
32 + info = "#13616e",
33 + content = {
34 + normal = "#121212",
35 + backdrop = "#ededed",
36 + accent = "#ae2eae",
37 + minor = "#3b3b3b",
38 + focus = "#184e5b",
39 + unfocus = "#6f6f6f",
40 + important_local = "#715696",
41 + important_global = "#4f3c69",
42 + },
43 + ui = {
44 + normal = "#242424",
45 + backdrop = "#dbdbdb",
46 + accent = "#922792",
47 + minor = "#292929",
48 + focus = "#15333b",
49 + unfocus = "#5d5d5d",
50 + important_local = "#604980",
51 + important_global = "#3e2f53",
52 + },
53 + },
56 +local M = {}
58 +function M.mode()
59 + local path = os.getenv("HOME") .. "/.cache/nugu/mode"
60 + local file = io.open(path, "r")
61 + if not file then return "dark" end
62 + local mode = file:read("*l") or "dark"
63 + file:close()
64 + if mode == "light" then return "light" end
65 + return "dark"
66 +end
68 +function M.current()
69 + return palette[M.mode()]
70 +end
72 +function M.get(mode)
73 + return palette[mode]
74 +end
76 +function M.hex(color)
77 + return color:gsub("#", "")
78 +end
80 +function M.rgba(color, alpha)
81 + return "rgba(" .. M.hex(color) .. (alpha or "ff") .. ")"
82 +end
84 +function M.rgb(color)
85 + return "rgb(" .. M.hex(color) .. ")"
86 +end
88 +return M

hypr/hyprlock.conf

Modified
26 26 fail_color = rgba(e46479ff)
27 27 outline_thickness = 2
29 - font_family = Monaspace Krypton Var
29 + font_family = IBM Plex Mono
30 30 placeholder_text = 󰌾 unlock
31 31 fail_text = nope

hypr/hyprsunset.conf

Modified
1 +# Time-based blue-light filter, independent from Nugu light/dark mode.
2 +# hyprsunset applies the latest profile at startup, then switches at each time.
1 4 profile {
2 - time = 00:00
5 + time = 07:00
3 6 identity = true
9 +profile {
10 + time = 19:00
11 + temperature = 4500

hypr/hyprtoolkit.conf

Modified
1 +# Nugu Hyprtoolkit palette.
2 +# Static for now: live rewrites busy-loop Hyprtoolkit apps.
3 +# https://github.com/hyprwm/hyprtoolkit/issues/92
1 5 background = 0xFF121212
2 6 base = 0xFF242424
3 -alternate_base = 0xFF6f6f6f
4 -text = 0xFFededed
5 -bright_text = 0xFFf3effb
6 -accent = 0xFFd86dd8
7 -accent_secondary = 0xFFb59ae4
8 -h1_size = 20
7 +alternate_base = 0xFF2E2E2E
8 +text = 0xFFEDEDED
9 +bright_text = 0xFFF3EFFB
10 +link_text = 0xFF3EC5DD
11 +accent = 0xFFD86DD8
12 +accent_secondary = 0xFFB59AE4
14 +rounding_large = 12
15 +rounding_small = 7
17 +h1_size = 21
9 18 h2_size = 16
10 19 h3_size = 13
11 20 font_size = 11
12 21 small_font_size = 10
13 -icon_theme =
23 +font_family = IBM Plex Sans
24 +font_family_monospace = IBM Plex Mono
25 +icon_theme = Adwaita

hypr/lib/apps.lua

Modified
6 6 launcher = "hyprlauncher",
7 7 file_manager = "wezterm start --always-new-process --class yazi yazi",
8 8 lock = "hyprlock",
9 - power = "hyprshutdown",
9 + logout = "hyprshutdown",
10 10 theme_toggle = "nu ~/.config/hypr/scripts/theme.nu toggle",
11 11 theme_auto = "nu ~/.config/hypr/scripts/theme.nu auto",
12 12 clipboard = "bash -lc 'cliphist list | hyprlauncher --dmenu | cliphist decode | wl-copy'",

hypr/modules/binds.lua

Modified
15 15 bind(mod .. " + V", apps.clipboard, "clipboard history")
16 16 bind(mod .. " + ALT + L", apps.lock, "lock")
17 17 bind(mod .. " + ALT + S", "loginctl lock-session && systemctl suspend", "lock + suspend")
18 -bind(mod .. " + SHIFT + Q", apps.power, "power menu")
19 18 bind(mod .. " + SHIFT + R", "hyprctl reload", "reload hypr")
20 19 bind(mod .. " + SHIFT + T", apps.theme_toggle, "toggle nugu light/dark")
21 20 bind(mod .. " + CTRL + T", apps.theme_auto, "nugu auto mode now")
22 21 bind(mod .. " + Slash", apps.binds_help, "show binds")
23 22 bind(mod .. " + Tab", apps.clients_help, "show clients")
24 23 bind(mod .. " + Escape", "makoctl dismiss --all", "dismiss notifications")
24 +bind("CTRL + ALT + Delete", apps.logout, "graceful hyprland logout")
26 26 hl.bind(mod .. " + H", hl.dsp.focus({ direction = "left" }), { description = "focus left" })
27 27 hl.bind(mod .. " + L", hl.dsp.focus({ direction = "right" }), { description = "focus right" })

hypr/scripts/theme.nu

Modified
60 60 h3_size = 13
61 61 font_size = 11
62 62 small_font_size = 10
63 -icon_theme =
63 +font_family = IBM Plex Sans
64 +font_family_monospace = IBM Plex Mono
65 +icon_theme = Adwaita
64 66 " | save --raw --force $out
67 69 def write-mako [mode: string, p: record] {
68 70 mkdir (config-home | path join "mako")
69 - let out = (config-home | path join "mako" "config")
70 - $"font=Monaspace Neon Var 10
71 + let out = (config-home | path join "mako" "nugu.conf")
72 + $"# Generated by hypr/scripts/theme.nu from Nugu palette.
71 73 background-color=($p.ui.backdrop)ee
72 74 text-color=($p.ui.normal)ff
73 75 border-color=($p.ui.accent)ff
74 76 progress-color=over ($p.ui.focus)ff
75 -border-size=2
76 -border-radius=7
77 -padding=10
78 -margin=10
79 -anchor=top-right
80 -width=320
81 -height=120
82 -default-timeout=5000
83 -max-history=50
84 -format=%s\\n%b
85 -actions=true
86 -[urgency=high]
78 +[urgency=low]
79 +background-color=($p.content.backdrop)e6
80 +text-color=($p.content.minor)ff
81 +border-color=($p.ui.unfocus)ff
82 +progress-color=over ($p.content.minor)ff
84 +[urgency=normal]
85 +border-color=($p.ui.accent)ff
86 +progress-color=over ($p.ui.focus)ff
88 +[urgency=critical]
89 +background-color=($p.ui.backdrop)ff
90 +text-color=($p.ui.important_global)ff
87 91 border-color=($p.error)ff
88 -default-timeout=0
92 +progress-color=over ($p.error)ff
94 +[summary~=\"[Ee]rror|[Ff]ailed|[Ff]ailure|[Cc]rash\"]
95 +border-color=($p.error)ff
96 +progress-color=over ($p.error)ff
98 +[summary~=\"[Ww]arn|[Ww]arning\"]
99 +border-color=($p.warning)ff
100 +progress-color=over ($p.warning)ff
102 +[summary~=\"[Ii]nfo|[Nn]otice\"]
103 +border-color=($p.info)ff
104 +progress-color=over ($p.info)ff
89 105 " | save --raw --force $out
92 108 def write-ironbar [mode: string, p: record] {
93 109 mkdir (config-home | path join "ironbar")
94 - let out = (config-home | path join "ironbar" "style.css")
95 - let bg = $p.ui.backdrop
96 - let fg = $p.ui.normal
97 - let accent = $p.ui.accent
98 - let focus = $p.ui.focus
99 - let unfocus = $p.ui.unfocus
100 - let surface = if $mode == "dark" { "#2e2e2e" } else { "#d0d0d0" }
101 - let urgent = $p.error
102 - $":root {
103 - --bg: ($bg);
104 - --bg-transparent: ($bg)ee;
110 + let out = (config-home | path join "ironbar" "nugu.css")
111 + let surface = $p.ui.minor
112 + let on_focus = $p.content.backdrop
113 + $"/* Generated by hypr/scripts/theme.nu from Nugu palette. */
114 +:root {
115 + --bg: ($p.ui.backdrop);
116 + --bg-transparent: ($p.ui.backdrop)ee;
105 117 --surface: ($surface);
106 - --fg: ($fg);
107 - --accent: ($accent);
108 - --focus: ($focus);
109 - --unfocus: ($unfocus);
110 - --border: ($accent);
111 - --radius: 7px;
112 - --font-size: 12px;
115 -* {
116 - font-family: 'IBM Plex Mono', 'Monaspace Neon Var', monospace;
117 - font-size: var\(--font-size);
118 - border: none;
119 - box-shadow: none;
120 - border-radius: 0;
123 -window, popover, popover contents {
124 - background-color: var\(--bg-transparent);
125 - color: var\(--fg);
126 - border-radius: var\(--radius);
129 -#bar {
130 - background-color: var\(--bg);
131 - padding: 0 8px;
132 - border-bottom: 2px solid var\(--accent);
135 -box, button, label {
136 - background-color: transparent;
139 -button {
140 - padding: 2px 8px;
141 - border-radius: var\(--radius);
144 -button:hover, button:active {
145 - background-color: var\(--surface);
148 -.workspaces .item {
149 - padding: 2px 8px;
150 - margin: 0 2px;
151 - border-radius: var\(--radius);
152 - color: var\(--unfocus);
155 -.workspaces .item.focused {
156 - background-color: var\(--surface);
157 - color: var\(--accent);
158 - box-shadow: inset 0 -2px var\(--accent);
161 -.workspaces .item.visible {
162 - color: var\(--fg);
165 -.workspaces .item.urgent {
166 - background-color: ($urgent);
167 - color: var\(--bg);
170 -.launcher .item {
171 - margin: 0 2px;
172 - padding: 2px 6px;
175 -.launcher .item.open {
176 - box-shadow: inset 0 -2px var\(--unfocus);
179 -.launcher .item.focused {
180 - box-shadow: inset 0 -2px var\(--accent);
183 -.popup-launcher {
184 - padding: 8px;
187 -.popup-launcher .popup-item {
188 - padding: 8px 12px;
189 - border-radius: var\(--radius);
192 -.popup-launcher .popup-item:hover {
193 - background-color: var\(--surface);
196 -.focused {
197 - color: var\(--focus);
198 - margin-left: 8px;
201 -.popup-music {
202 - padding: 12px;
205 -.popup-music .album-art {
206 - border-radius: var\(--radius);
207 - margin-right: 12px;
210 -.volume {
211 - margin: 0 4px;
214 -.popup-volume {
215 - padding: 12px;
218 -scale highlight {
219 - background-color: var\(--accent);
220 - border-radius: var\(--radius);
223 -.battery {
224 - margin: 0 4px;
225 - color: var\(--focus);
228 -.clock {
229 - font-weight: bold;
230 - margin: 0 4px;
231 - color: var\(--accent);
234 -.popup-clipboard {
235 - padding: 8px;
238 -.popup-clipboard .item {
239 - padding: 4px 8px;
240 - border-radius: var\(--radius);
243 -.popup-clipboard .item:hover {
244 - background-color: var\(--surface);
247 -.tray {
248 - margin: 0 4px;
251 -.tray popover contents {
252 - padding: 8px;
255 -.power-menu {
256 - margin-left: 4px;
259 -.popup-power-menu {
260 - padding: 12px;
263 -.popup-power-menu #header {
264 - font-size: 14px;
265 - font-weight: bold;
266 - margin-bottom: 8px;
267 - color: var\(--accent);
270 -.popup-power-menu .power-btn {
271 - background-color: var\(--surface);
272 - border: 1px solid var\(--accent);
273 - border-radius: var\(--radius);
274 - padding: 6px 12px;
275 - margin: 0 4px;
276 - font-size: 16px;
279 -.popup-power-menu .power-btn:hover {
280 - background-color: var\(--accent);
281 - color: var\(--bg);
284 -.notifications .count {
285 - font-size: 10px;
286 - background-color: var\(--accent);
287 - color: var\(--bg);
288 - border-radius: 50%;
289 - padding: 2px 5px;
292 -.sysinfo {
293 - margin: 0 4px;
296 -.sysinfo > .item + .item {
297 - margin-left: 8px;
300 -.popup {
301 - padding: 8px;
118 + --fg: ($p.ui.normal);
119 + --accent: ($p.ui.accent);
120 + --focus: ($p.ui.focus);
121 + --on-focus: ($on_focus);
122 + --muted: ($p.ui.minor);
123 + --unfocus: ($p.ui.unfocus);
124 + --error: ($p.error);
125 + --border: ($p.ui.accent);
303 127 " | save --raw --force $out
308 132 let p = (palette $mode)
309 133 $mode | save --raw --force (mode-file)
310 134 write-desktop-color-scheme $mode
311 - write-hyprtoolkit $mode $p
135 + # Disabled until Hyprtoolkit handles live config rewrites without busy-looping:
136 + # https://github.com/hyprwm/hyprtoolkit/issues/92
137 + # write-hyprtoolkit $mode $p
312 138 write-mako $mode $p
313 139 write-ironbar $mode $p
315 - let temp = if $mode == "light" { "6500" } else { "4500" }
316 - try { hyprctl hyprsunset temperature $temp | ignore }
317 141 try { hyprctl hyprpaper wallpaper $",~/.config/hypr/wallpapers/nugu-($mode).png" | ignore }
318 142 try { hyprctl reload | ignore }
319 143 if (($env.NUGU_NO_RESTART_MAKO? | default "") != "1") {

hypr/systemd/nugu-theme.service

Modified
1 1 [Unit]
2 2 Description=Nugu automatic light/dark desktop mode
3 3 PartOf=graphical-session.target
4 -After=graphical-session.target hyprsunset.service hyprpaper.service
5 -Wants=hyprsunset.service hyprpaper.service
4 +After=graphical-session.target hyprpaper.service
5 +Wants=hyprpaper.service
7 7 [Service]
8 8 ExecStart=/usr/bin/nu %h/.config/hypr/scripts/theme.nu watch

ironbar/nugu.css

Added
new file mode 100644
1 +/* Generated by hypr/scripts/theme.nu from Nugu palette. */
2 +:root {
3 + --bg: #242424;
4 + --bg-transparent: #242424ee;
5 + --surface: #9d9d9d;
6 + --fg: #dbdbdb;
7 + --accent: #d86dd8;
8 + --focus: #9aabae;
9 + --on-focus: #121212;
10 + --muted: #9d9d9d;
11 + --unfocus: #6f6f6f;
12 + --error: #e46479;
13 + --border: #d86dd8;

ironbar/style.css

Modified
1 +@import url("nugu.css");
1 3 :root {
2 - --bg: #242424;
3 - --bg-transparent: #242424ee;
4 - --surface: #2e2e2e;
5 - --fg: #dbdbdb;
6 - --accent: #d86dd8;
7 - --focus: #9aabae;
8 - --unfocus: #6f6f6f;
9 - --border: #d86dd8;
10 4 --radius: 7px;
11 5 --font-size: 12px;
15 - font-family: 'IBM Plex Mono', 'Monaspace Neon Var', monospace;
9 + font-family: 'IBM Plex Mono';
16 10 font-size: var(--font-size);
17 11 border: none;
18 12 box-shadow: none;
13 + background-image: none;
14 + text-shadow: none;
15 + -gtk-icon-shadow: none;
19 16 border-radius: 0;
34 31 box, button, label {
35 - background-color: transparent;
32 + background: transparent;
33 + background-image: none;
34 + color: var(--fg);
38 37 button {
39 38 padding: 2px 8px;
40 39 border-radius: var(--radius);
40 + background: transparent;
43 -button:hover, button:active {
44 - background-color: var(--surface);
43 +button:hover, button:active, button:checked {
44 + background: var(--accent);
45 + color: var(--on-focus);
47 48 .workspaces .item {
48 49 padding: 2px 8px;
49 50 margin: 0 2px;
50 51 border-radius: var(--radius);
51 - color: var(--unfocus);
52 + color: var(--muted);
54 55 .workspaces .item.focused {
55 - background-color: var(--surface);
56 - color: var(--accent);
57 - box-shadow: inset 0 -2px var(--accent);
56 + background: var(--focus);
57 + color: var(--on-focus);
60 +.workspaces .item.focused label {
61 + color: var(--on-focus);
60 64 .workspaces .item.visible {
64 68 .workspaces .item.urgent {
65 - background-color: #e46479;
69 + background-color: var(--error);
66 70 color: var(--bg);
78 82 .launcher .item.focused {
79 - box-shadow: inset 0 -2px var(--accent);
83 + color: var(--on-focus);
84 + background: var(--focus);
87 +.launcher .item.focused label {
88 + color: var(--on-focus);
82 91 .popup-launcher {

mako/config

Modified
1 -font=Monaspace Neon Var 10
2 -background-color=#242424ee
3 -text-color=#dbdbdbff
4 -border-color=#d86dd8ff
5 -progress-color=over #9aabaeff
1 +include=~/.config/mako/nugu.conf
3 +font=IBM Plex Sans 10
6 4 border-size=2
7 -border-radius=7
8 -padding=10
9 -margin=10
5 +border-radius=12
6 +padding=12,14
7 +margin=8
8 +outer-margin=14
10 9 anchor=top-right
11 -width=320
12 -height=120
13 -default-timeout=5000
14 -max-history=50
15 -format=%s\n%b
16 -actions=true
17 -[urgency=high]
18 -border-color=#e46479ff
10 +layer=overlay
11 +width=360
12 +height=160
13 +max-visible=4
14 +max-history=80
15 +sort=-priority
16 +icons=1
17 +max-icon-size=48
18 +icon-border-radius=7
19 +markup=1
20 +actions=1
21 +history=1
22 +ignore-timeout=1
23 +default-timeout=6500
24 +format=%a\n<b>%s</b>\n%b
25 +on-button-left=invoke-default-action
26 +on-button-middle=dismiss-group
27 +on-button-right=dismiss
29 +[urgency=low]
30 +default-timeout=2500
32 +[urgency=normal]
33 +default-timeout=6500
35 +[urgency=critical]
36 +border-size=3
19 37 default-timeout=0
39 +[grouped]
40 +format=%a · %g\n<b>%s</b>\n%b
42 +[hidden]
43 +format=+%h more notifications

mako/nugu.conf

Added
new file mode 100644
1 +# Generated by hypr/scripts/theme.nu from Nugu palette.
2 +background-color=#242424ee
3 +text-color=#dbdbdbff
4 +border-color=#d86dd8ff
5 +progress-color=over #9aabaeff
7 +[urgency=low]
8 +background-color=#121212e6
9 +text-color=#8b8b8bff
10 +border-color=#6f6f6fff
11 +progress-color=over #8b8b8bff
13 +[urgency=normal]
14 +border-color=#d86dd8ff
15 +progress-color=over #9aabaeff
17 +[urgency=critical]
18 +background-color=#242424ff
19 +text-color=#f3effbff
20 +border-color=#e46479ff
21 +progress-color=over #e46479ff
23 +[summary~="[Ee]rror|[Ff]ailed|[Ff]ailure|[Cc]rash"]
24 +border-color=#e46479ff
25 +progress-color=over #e46479ff
27 +[summary~="[Ww]arn|[Ww]arning"]
28 +border-color=#9e9a69ff
29 +progress-color=over #9e9a69ff
31 +[summary~="[Ii]nfo|[Nn]otice"]
32 +border-color=#3ec5ddff
33 +progress-color=over #3ec5ddff

nugu/ironbar.nu

Added
new file mode 100644
1 +use palette.nu
3 +# Generate only the Ironbar Nugu palette as CSS custom properties.
4 +# Ironbar owns its CSS/layout in ../ironbar/style.css.
6 +export def theme [mode: string] {
7 + let nugu = (palette nugu $mode)
8 + let p = $nugu.palette
9 + let surface = $p.ui.minor
10 + let on_focus = $p.content.backdrop
11 + $'/* Generated by nugu/ironbar.nu from Nugu palette. */
12 +:root {
13 + --bg: ($p.ui.backdrop);
14 + --bg-transparent: ($p.ui.backdrop)ee;
15 + --surface: ($surface);
16 + --fg: ($p.ui.normal);
17 + --accent: ($p.ui.accent);
18 + --focus: ($p.ui.focus);
19 + --on-focus: ($on_focus);
20 + --muted: ($p.ui.minor);
21 + --unfocus: ($p.ui.unfocus);
22 + --error: ($p.error);
23 + --border: ($p.ui.accent);

nugu/justfile

Modified
13 13 open wezterm.nu | nu-check --as-module --debug wezterm.nu
14 14 open ghostty.nu | nu-check --as-module --debug ghostty.nu
15 15 open linux_console.nu | nu-check --as-module --debug linux_console.nu
16 + open mako.nu | nu-check --as-module --debug mako.nu
17 + open ironbar.nu | nu-check --as-module --debug ironbar.nu
16 18 open hypr.nu | nu-check --as-module --debug hypr.nu
18 20 fmt: lint
84 86 cp {{output}}/linux-console/nugu-dark.sh ../bash/linux-console/nugu-dark.sh
85 87 cp {{output}}/linux-console/nugu-light.sh ../bash/linux-console/nugu-light.sh
87 -install: helix wezterm ghostty linux-console hypr
89 +mako: build
90 + rm --force --recursive {{output}}/mako
91 + mkdir {{output}}/mako
92 + use mako.nu; mako theme dark | save --raw {{output}}/mako/nugu-dark.conf
93 + use mako.nu; mako theme light | save --raw {{output}}/mako/nugu-light.conf
95 +ironbar: build
96 + rm --force --recursive {{output}}/ironbar
97 + mkdir {{output}}/ironbar
98 + use ironbar.nu; ironbar theme dark | save --raw {{output}}/ironbar/nugu-dark.css
99 + use ironbar.nu; ironbar theme light | save --raw {{output}}/ironbar/nugu-light.css
101 +install: helix wezterm ghostty linux-console hypr mako ironbar

nugu/mako.nu

Added
new file mode 100644
1 +use palette.nu
3 +# Generate Mako Nugu color/style fragment.
4 +# Main Mako behavior/layout stays in ../mako/config and includes this file.
6 +export def theme [mode: string] {
7 + let nugu = (palette nugu $mode)
8 + let p = $nugu.palette
9 + $'# Generated by nugu/mako.nu from Nugu palette.
10 +background-color=(rgba $p.ui.backdrop "ee")
11 +text-color=(rgba $p.ui.normal "ff")
12 +border-color=(rgba $p.ui.accent "ff")
13 +progress-color=over (rgba $p.ui.focus "ff")
15 +[urgency=low]
16 +background-color=(rgba $p.content.backdrop "e6")
17 +text-color=(rgba $p.content.minor "ff")
18 +border-color=(rgba $p.ui.unfocus "ff")
19 +progress-color=over (rgba $p.content.minor "ff")
21 +[urgency=normal]
22 +border-color=(rgba $p.ui.accent "ff")
23 +progress-color=over (rgba $p.ui.focus "ff")
25 +[urgency=critical]
26 +background-color=(rgba $p.ui.backdrop "ff")
27 +text-color=(rgba $p.ui.important_global "ff")
28 +border-color=(rgba $p.error "ff")
29 +progress-color=over (rgba $p.error "ff")
31 +[summary~="[Ee]rror|[Ff]ailed|[Ff]ailure|[Cc]rash"]
32 +border-color=(rgba $p.error "ff")
33 +progress-color=over (rgba $p.error "ff")
35 +[summary~="[Ww]arn|[Ww]arning"]
36 +border-color=(rgba $p.warning "ff")
37 +progress-color=over (rgba $p.warning "ff")
39 +[summary~="[Ii]nfo|[Nn]otice"]
40 +border-color=(rgba $p.info "ff")
41 +progress-color=over (rgba $p.info "ff")
45 +def rgba [color: string, alpha: string] { $'($color)($alpha)' }