Dotfiles/desktopenvs/hyprland/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
..
deprecated cleanup: archive deprecated configs, remove logs and merge artifacts 2026-05-08 10:13:12 +02:00
python added python boilerplate 2025-06-11 09:22:59 +02:00
_toggle_Template.tmplsh added template for toggles 2025-05-29 21:47:15 +02:00
activewindow restructured all the scripts into one folder 2025-05-12 10:08:58 +02:00
amssh amssh: fix FIDO2 auth; add pamtester to core; add package audit script 2026-05-11 19:09:38 +02:00
batteryperc gneral stuff 2026-05-09 17:22:55 +02:00
bluetooth-applet.sh fixed my fuckup starting blueman-applet 2025-05-25 08:15:16 +02:00
caffeine.sh added caffeine mode 2025-09-26 00:00:16 +02:00
calender-fix.sh also made it so the weekday is displayed with the date 2025-10-27 20:35:04 +01:00
date.sh restructured all the scripts into one folder 2025-05-12 10:08:58 +02:00
drawer.sh restructured all the scripts into one folder 2025-05-12 10:08:58 +02:00
dysk-phydisks.sh added tooltip with disk data 2025-11-18 13:03:23 +01:00
ewwstart-niri.sh added niri - not done tho 2025-08-08 18:24:06 +02:00
ewwstart.sh fix(eww): stop duplicate stacked bars from ewwstart race 2026-06-28 02:23:45 +02:00
foldersearch.sh added folder search 2025-06-13 00:01:36 +02:00
frequentcommands.list added timer 2026-05-08 15:16:01 +02:00
getispeed.sh added ctl cmd C to clear notifs 2025-05-12 12:43:00 +02:00
getvol restructured all the scripts into one folder 2025-05-12 10:08:58 +02:00
helpmenu.sh added help and power menu 2025-06-12 23:32:47 +02:00
hyprland-toggle-touchpad.sh reverted changes to touchpad toggle script 2025-12-09 14:03:42 +01:00
ip restructured all the scripts into one folder 2025-05-12 10:08:58 +02:00
journal.sh ulauncher plugins 2025-07-06 03:10:23 +02:00
menu.sh fixed cmd+a 2025-05-12 16:16:05 +02:00
monitorhandler.sh fixed monitorhandler 2025-06-08 10:57:41 +02:00
onscreenkb.sh osk now toggles on cmd-ctl-G 2025-05-19 09:00:01 +02:00
playerget restructured all the scripts into one folder 2025-05-12 10:08:58 +02:00
playpause.sh restructured all the scripts into one folder 2025-05-12 10:08:58 +02:00
pwr-dmenu.sh update to pwr-dmenu 2025-12-16 09:38:42 +01:00
screenrec.sh finally screenrec makes half a nick of sense 2026-02-18 15:17:19 +01:00
screenrotationacw.sh hyprland: fix screen rotation touchscreen input after 0.55.0 update 2026-05-12 08:33:45 +02:00
screenrotationwcw.sh hyprland: fix screen rotation touchscreen input after 0.55.0 update 2026-05-12 08:33:45 +02:00
screenshot.sh restructured all the scripts into one folder 2025-05-12 10:08:58 +02:00
time.sh restructured all the scripts into one folder 2025-05-12 10:08:58 +02:00
timer-notify.sh.old added timer 2026-05-08 15:16:01 +02:00
timer-pick some general fixes 2026-05-08 16:20:53 +02:00
timer-run timer-run: use system sound instead of generated PCM beep 2026-05-11 09:23:24 +02:00
timer.sh.old added timer 2026-05-08 15:16:01 +02:00
toggle-layout.sh now the notif shows for just long enough 2026-02-20 11:12:40 +01:00
togglebar.sh corrected togglebar script 2025-09-16 21:00:20 +02:00
togglewinbars.sh added togglewinbars.sh - it didn't work 2025-05-29 22:35:04 +02:00
ulwatchdog.sh fixed ulauncher startup script 2025-08-03 14:37:45 +02:00
unified-rotate.sh hyprland: fix screen rotation touchscreen input after 0.55.0 update 2026-05-12 08:33:45 +02:00
uptime.sh restructured all the scripts into one folder 2025-05-12 10:08:58 +02:00
wallpaper-picker feat(wallpaper): sync selected wallpaper to hyprlock per monitor 2026-05-31 21:54:19 +02:00
windowswitcher restructured all the scripts into one folder 2025-05-12 10:08:58 +02:00
wofi-file-search.sh added cmd+F to find files 2025-06-09 19:13:42 +02:00
workspace restructured all the scripts into one folder 2025-05-12 10:08:58 +02:00