From 2b612d6e639d3fe6c02c5b30e5973374e6ab4d08 Mon Sep 17 00:00:00 2001 From: nico Date: Thu, 17 Sep 2026 17:40:58 +0200 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94 --- .gitignore | 1 + README.md | 5 +++++ aether/custom/mako/colors.ini | 15 +++++++++++++ aether/custom/mako/config.json | 4 ++++ hypr/hyprland.conf | 2 +- hypr/hyprland.lua | 2 +- mako/colors.ini | 15 +++++++++++++ mako/config | 40 ++++++++++++++++++++++++++++++++++ 8 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 aether/custom/mako/colors.ini create mode 100644 aether/custom/mako/config.json create mode 100644 mako/colors.ini create mode 100644 mako/config diff --git a/.gitignore b/.gitignore index aa2b833..7b8708d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ !/waybar !/rofi !/kitty +!/mako !/quickshell !/aether !/btop diff --git a/README.md b/README.md index 4f80057..bce0d13 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/aether/custom/mako/colors.ini b/aether/custom/mako/colors.ini new file mode 100644 index 0000000..28a4422 --- /dev/null +++ b/aether/custom/mako/colors.ini @@ -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} diff --git a/aether/custom/mako/config.json b/aether/custom/mako/config.json new file mode 100644 index 0000000..430324f --- /dev/null +++ b/aether/custom/mako/config.json @@ -0,0 +1,4 @@ +{ + "template": "colors.ini", + "destination": "~/.config/mako/colors.ini" +} diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 6ca8079..39e5eac 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -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 diff --git a/hypr/hyprland.lua b/hypr/hyprland.lua index 6220de5..b35d8df 100644 --- a/hypr/hyprland.lua +++ b/hypr/hyprland.lua @@ -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") diff --git a/mako/colors.ini b/mako/colors.ini new file mode 100644 index 0000000..494c2f6 --- /dev/null +++ b/mako/colors.ini @@ -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 diff --git a/mako/config b/mako/config new file mode 100644 index 0000000..200014e --- /dev/null +++ b/mako/config @@ -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=%a\n%s\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