11 lines
206 B
Bash
Executable file
11 lines
206 B
Bash
Executable file
#!/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"
|