tanin-eww: niri focus-ring tracks the TANINUX accent
The focus-ring active-color was a static Fuji violet (#a39ec4); it now follows gui.json's accent_hex, lightened 8% to match eww's $accent. The scripts/accent.sh apply step patches the marked active-color line in ~/.config/niri/config.kdl (niri live-reloads on save); the line carries a managed-by marker, anchored at line start so it never matches inactive-color. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
# EWW_SRC=...). For publish, point `source` at the eww config git repo instead.
|
# EWW_SRC=...). For publish, point `source` at the eww config git repo instead.
|
||||||
pkgname=tanin-eww
|
pkgname=tanin-eww
|
||||||
pkgver=0.1.0
|
pkgver=0.1.0
|
||||||
pkgrel=4
|
pkgrel=6
|
||||||
pkgdesc="TANINUX desktop shell — eww bar/dock/panels/spotlight + niri config (skel)"
|
pkgdesc="TANINUX desktop shell — eww bar/dock/panels/spotlight + niri config (skel)"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://taninux.kgva.ch"
|
url="https://taninux.kgva.ch"
|
||||||
|
|||||||
@@ -35,10 +35,12 @@ layout {
|
|||||||
}
|
}
|
||||||
default-column-width { proportion 0.5; }
|
default-column-width { proportion 0.5; }
|
||||||
|
|
||||||
// Fuji violet accent on the focus ring.
|
// Fuji accent on the focus ring. The active-color tracks TANINUX's accent
|
||||||
|
// (gui.json accent_hex, lightened to match eww's $accent) — patched in place
|
||||||
|
// by scripts/accent.sh; the trailing marker is how that script finds it.
|
||||||
focus-ring {
|
focus-ring {
|
||||||
width 3
|
width 3
|
||||||
active-color "#a39ec4"
|
active-color "#a6a2bd" // accent (managed by scripts/accent.sh)
|
||||||
inactive-color "#505050"
|
inactive-color "#505050"
|
||||||
}
|
}
|
||||||
border {
|
border {
|
||||||
@@ -62,6 +64,7 @@ spawn-at-startup "dbus-update-activation-environment" "--systemd" "--all"
|
|||||||
spawn-at-startup "systemctl" "--user" "start" "tanin-session.target"
|
spawn-at-startup "systemctl" "--user" "start" "tanin-session.target"
|
||||||
spawn-at-startup "/bin/sh" "-c" "$HOME/.config/eww/launch.sh"
|
spawn-at-startup "/bin/sh" "-c" "$HOME/.config/eww/launch.sh"
|
||||||
spawn-at-startup "waypaper" "--restore"
|
spawn-at-startup "waypaper" "--restore"
|
||||||
|
spawn-at-startup "/bin/sh" "-c" "$HOME/.config/eww/scripts/overview-backdrop.sh start"
|
||||||
spawn-at-startup "wlsunset" "-l" "47" "-L" "8.3" "-d" "600" "-t" "4000" "-T" "6500"
|
spawn-at-startup "wlsunset" "-l" "47" "-L" "8.3" "-d" "600" "-t" "4000" "-T" "6500"
|
||||||
spawn-at-startup "nm-applet"
|
spawn-at-startup "nm-applet"
|
||||||
spawn-at-startup "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
|
spawn-at-startup "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1"
|
||||||
@@ -89,6 +92,19 @@ window-rule {
|
|||||||
clip-to-geometry true
|
clip-to-geometry true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ---- geblurrtes Wallpaper im Overview-Backdrop ----------------------------
|
||||||
|
// Zwei Wallpaper-Surfaces:
|
||||||
|
// * swaybg (namespace "wallpaper") -> scharf auf dem Desktop (waypaper)
|
||||||
|
// * awww (namespace "awww-daemon") -> geblurrte Kopie, hier per
|
||||||
|
// place-within-backdrop in den Overview-Backdrop hinter die Workspaces
|
||||||
|
// verschoben (auf dem Desktop dadurch unsichtbar).
|
||||||
|
// Die Blur-Kopie erzeugt ~/.config/eww/scripts/overview-backdrop.sh; gestartet
|
||||||
|
// per spawn-at-startup oben, neu erzeugt per waypaper post_command.
|
||||||
|
layer-rule {
|
||||||
|
match namespace="^awww-daemon$"
|
||||||
|
place-within-backdrop true
|
||||||
|
}
|
||||||
|
|
||||||
// ---- eww frosted-glass / effects (enable after first boot) ----------------
|
// ---- eww frosted-glass / effects (enable after first boot) ----------------
|
||||||
// niri's layer-shell effects are version-sensitive; once niri runs we verify the
|
// niri's layer-shell effects are version-sensitive; once niri runs we verify the
|
||||||
// real namespace with `niri msg --json layers` and enable blur/rounding/shadow.
|
// real namespace with `niri msg --json layers` and enable blur/rounding/shadow.
|
||||||
|
|||||||
Reference in New Issue
Block a user