#!/bin/sh echo $(pgrep emacs) emacsrg=$(wlrctl window list | rg -v 'emacs:\sorg-agenda' | rg 'emacs:') emacswin=$(echo $emacsrg | sed 's/.*\: //') echo $emacswin wlrctl toplevel focus title:$emacswin