#!/bin/bash WINDOW="performance_monitor" OVERLAY="dashboard_overlay" if eww active-windows | grep -q "$WINDOW"; then eww update performance_monitor_visible=false eww close "$WINDOW" "$OVERLAY" else eww update performance_monitor_visible=true eww open "$OVERLAY" eww open "$WINDOW" fi