Files
nixos-config/home/common/programs/hyprland/eww/scripts/eww-panel.sh
T
naps62-yolo a0a69cf58c
CI / eval (push) Successful in 2m3s
CI / lint (push) Successful in 29s
feat: replace noctalia with an eww panel (#3)
2026-08-19 15:13:05 +01:00

12 lines
408 B
Bash

# Toggle the panel on whichever monitor has focus. `eww open --toggle` can't do
# this: it ignores --screen when the window is already open elsewhere, so the
# panel would stay stuck on the monitor it first appeared on.
if eww active-windows | grep -q '^panel'; then
exec eww close panel
fi
screen=$(hyprctl -j monitors | jq -r 'map(select(.focused))[0].id // 0')
exec eww open panel --screen "$screen"