Dotfiles/desktopenvs/niri/scripts
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
..
workspacefocus feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
_toggle_Template.tmplsh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
activewindow feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
amssh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
batteryperc feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
bluetooth-applet.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
caffeine.sh feat(hyprlua/niri): webcam presence detection + systemd-inhibit idle/caffeine 2026-06-11 14:50:36 +02:00
calender-fix.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
date.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
drawer.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
dysk-phydisks.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
enroll-biometrics.sh feat(hyprlua/niri): webcam presence detection + systemd-inhibit idle/caffeine 2026-06-11 14:50:36 +02:00
ewwstart.sh fix(eww): stop duplicate stacked bars from ewwstart race 2026-06-28 02:23:45 +02:00
foldersearch.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
frequentcommands.list feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
getispeed.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
getvol feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
helpmenu.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
ip feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
journal.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
menu.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
monitorhandler.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
niri-toggle-touchpad.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
playerget feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
playpause.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
presence-detect.sh feat(hyprlua/niri): webcam presence detection + systemd-inhibit idle/caffeine 2026-06-11 14:50:36 +02:00
pwr-dmenu.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
python feat(hyprlua/niri): webcam presence detection + systemd-inhibit idle/caffeine 2026-06-11 14:50:36 +02:00
screenrec.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
screenrotationacw.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
screenrotationwcw.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
screenshot.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
time.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
timer-notify.sh.old feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
timer-pick feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
timer-run feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
timer.sh.old feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
toggle-layout.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
togglebar.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
ulwatchdog.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
unified-rotate.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
uptime.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
wallpaper-picker feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
windowswitcher feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
wofi-file-search.sh feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00
workspace feat(niri): add Niri as a full desktop environment option 2026-06-01 16:38:47 +02:00