#!/bin/sh secs="$1" window_name="$2" kill -9 "$(cat /tmp/eww-popup.pid)" || \ eww -d open "$window_name" { sleep "$secs"; eww close "$window_name"; } & echo $! > /tmp/eww-popup.pid