Switch notification daemon from dunst to mako, theme it via aether

Autostart was launching dunst, which isn't what's actually used - mako
was never installed and no daemon was really running. Fixed exec-once/
hl.exec_cmd in both hyprland.conf and hyprland.lua to start mako instead.

Added a full mako/config: rounded corners, accent-colored border for
normal urgency, muted for low, red for critical - critical also ignores
any app-supplied timeout (ignore-timeout + default-timeout=0) so it
stays until dismissed, verified live with a 1s-timeout test notification
that was still visible 6s later. Also: icons with their own corner
radius, Spotify notifications suppressed, do-not-disturb mode respected,
20-entry history, max 5 visible, sorted by time, and a format string
that shows the app name above the title/body.

Colors aren't hardcoded - added aether/custom/mako/colors.ini as a
template (same mechanism already used for Hyprland's border colors),
rendered by aether into mako/colors.ini, which mako/config pulls in via
include=. Updates automatically on the next theme switch.

Had to add !/mako to .gitignore - it's a new top-level dir and the
default-deny root pattern was blocking it entirely.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94
This commit is contained in:
nico
2026-09-17 17:40:58 +02:00
parent 34ddab9d54
commit 2b612d6e63
8 changed files with 82 additions and 2 deletions

1
.gitignore vendored
View File

@@ -6,6 +6,7 @@
!/waybar
!/rofi
!/kitty
!/mako
!/quickshell
!/aether
!/btop

View File

@@ -9,9 +9,11 @@ My personal dotfiles for a [Hyprland](https://hyprland.org/) desktop on Arch Lin
| Piece | Tool |
|---|---|
| Compositor | [Hyprland](https://hyprland.org/) |
| Login screen | SDDM — stock theme, not customized/tracked here (config lives under `/etc`, outside this repo's scope) |
| Bar | Custom [Quickshell](https://quickshell.org/) shell (`quickshell/default/`) — replaces Waybar entirely |
| Launcher | Rofi |
| Terminal | Kitty |
| Notifications | [mako](mako/) — themed via aether, same as the rest |
| Theming | [aether](aether/) — palette-driven theme generator |
| Qt/GTK theming | qt5ct, qt6ct, nwg-look |
| File manager | Dolphin (`kdeglobals`, `dolphinrc`) |
@@ -39,6 +41,8 @@ Hyprland itself is configured via [`hypr/hyprland.lua`](hypr/hyprland.lua) (Hypr
The color palette lives in [`aether/`](aether/) and is the single source of truth — [`aether/theme/colors.toml`](aether/theme/colors.toml) defines the palette, and aether renders it out into per-app configs (Hyprland, Kitty, Rofi, Waybar-era CSS, btop, Zed, etc.), most of which get `@import`ed or sourced by that app's real config rather than edited directly. The bar's own colors in `Bar.qml` are hand-matched to this palette rather than generated, since Quickshell reads QML, not CSS.
mako's per-urgency border colors (normal = accent, low = muted, critical = red) work the same way as Hyprland's border colors: a template at [`aether/custom/mako/colors.ini`](aether/custom/mako/colors.ini) gets rendered by aether into `mako/colors.ini`, which the real `mako/config` pulls in via `include=`. Edit the template, not the generated file — it gets overwritten on the next theme switch.
It's a blue theme (`#1793d1` accent on a dark `#1a1b26` background) built around the stock default Hyprland wallpaper — the anime girl waiting at the train stop with the glowing blue Hyprland-logo cats. Every accent color across the bar, Rofi, Kitty, and the rest was picked to match that wallpaper's palette rather than the other way around. The wallpaper itself is tracked at [`hypr/wallpaper.png`](hypr/wallpaper.png) and set via `swaybg` in `hyprland.lua`.
## Hotkeys
@@ -117,6 +121,7 @@ hypr/ Hyprland config (hyprland.lua is active, .conf kept for reference)
quickshell/ The bar (Bar.qml + helper QML components + scripts/)
rofi/ Launcher config + theme
kitty/ Terminal config + theme
mako/ Notification daemon config (colors.ini generated by aether)
aether/ Palette source + generated per-app theme files
btop/ System monitor config
qt5ct/ qt6ct/ nwg-look/ gtk-3.0/ Qt/GTK theming

View File

@@ -0,0 +1,15 @@
# Generated by aether from the active palette.
# Edit the template at ~/.config/aether/custom/mako/colors.ini, not the output.
# Included from ~/.config/mako/config.
text-color={foreground}
background-color={background}
[urgency=low]
border-color={color8}
[urgency=normal]
border-color={color4}
[urgency=critical]
border-color={color1}

View File

@@ -0,0 +1,4 @@
{
"template": "colors.ini",
"destination": "~/.config/mako/colors.ini"
}

View File

@@ -58,7 +58,7 @@ $mainMod = SUPER
# ----------------------------------------------------------
exec-once = quickshell -c default
exec-once = dunst
exec-once = mako
exec-once = nm-applet --indicator
exec-once = swaybg -i ~/.config/hypr/wallpaper.png -m fill
exec-once = wl-paste --type text --watch cliphist store

View File

@@ -594,7 +594,7 @@ hl.bind(mainMod .. " + " .. "ALT" .. " + " .. "C", hl.dsp.exec_cmd("env GTK_THEM
-- Autostart
hl.on("hyprland.start", function()
hl.exec_cmd("quickshell -c default")
hl.exec_cmd("dunst")
hl.exec_cmd("mako")
hl.exec_cmd("nm-applet --indicator")
hl.exec_cmd("swaybg -i ~/.config/hypr/wallpaper.png -m fill")
hl.exec_cmd("wl-paste --type text --watch cliphist store")

15
mako/colors.ini Normal file
View File

@@ -0,0 +1,15 @@
# Generated by aether from the active palette.
# Edit the template at ~/.config/aether/custom/mako/colors.ini, not the output.
# Included from ~/.config/mako/config.
text-color=#c0caf5
background-color=#1a1b26
[urgency=low]
border-color=#565f89
[urgency=normal]
border-color=#1793d1
[urgency=critical]
border-color=#f7768e

40
mako/config Normal file
View File

@@ -0,0 +1,40 @@
# Layout / behavior. Colors come from the active aether palette, not
# hardcoded here - see aether/custom/mako/colors.ini (template, edit
# that, not this include) and mako/colors.ini (generated output).
include=~/.config/mako/colors.ini
font=JetBrainsMono Nerd Font 11
format=<span size="small">%a</span>\n<b>%s</b>\n%b
width=380
height=130
padding=12
border-size=2
border-radius=12
outer-margin=44,16
margin=8
anchor=top-right
layer=top
icons=1
icon-location=left
max-icon-size=40
icon-border-radius=8
max-visible=5
sort=-time
history=1
max-history=20
default-timeout=5000
[urgency=critical]
default-timeout=0
ignore-timeout=1
[app-name=Spotify]
invisible=1
[mode=do-not-disturb]
invisible=1
[mode=do-not-disturb app-name=notify-send]
invisible=0