Dotfiles/desktopenvs/niri
Amir Alexander Abdelbaki ae0ad3c4d7 fix(eww): stop duplicate stacked bars from ewwstart race
Diagnosed live in a VM: the bar rendered twice (two stacked rows). `hyprctl
layers` showed two `gtk-layer-shell` bar surfaces owned by two different eww
pids — an `eww daemon` and an `eww open bar`. The monitor count was correctly 1,
so the per-monitor loop was not at fault.

Root cause: ewwstart.sh started `eww daemon` and then immediately ran `eww open`
in a loop. The first `eww open` frequently ran before the freshly-started daemon
was ready, so it spawned its OWN second daemon and drew a second bar.

Fix (all three DE variants — hyprlua, hyprland, niri):
- Drop the separate `eww daemon`; rely on `eww open` to auto-start the daemon and
  block until the window is mapped, so the first call establishes a single daemon
  that the rest reuse (no race, no second daemon).
- killall eww + short settle before opening, so a reload starts clean.
- hyprlua/hyprland: count monitors via `hyprctl monitors -j | jq length` instead
  of the fragile `hyprctl monitors | grep ID | wc -l`.
- export GTK_THEME (the bare assignment never took effect).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R5kHioUMK3mtf2eiLEozCM
2026-06-28 02:23:45 +02:00
..
config-updater feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
eww feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
eww-nobattery feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
eww-touch feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
greetd-tuigreet feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
niri chore: add inline comments across all modules and configs 2026-06-25 13:07:06 +02:00
scripts fix(eww): stop duplicate stacked bars from ewwstart race 2026-06-28 02:23:45 +02:00
CRT feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
Vencord feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
alacritty feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
btop feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
dunst feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
gtk-3.0 feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
kitty feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
mimeapps.list feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
nwg-drawer feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
nwg-panel feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
spicetify feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
ulauncher feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
vicinae feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
walker feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
waybar feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
wofi feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
xfce4 feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00