wms/wms_editor.sh
2023-12-27 08:41:33 -03:00

14 lines
278 B
Bash
Executable file

#!/bin/sh
## check if there is an open Emacs window ##
## dependencies: wname, lsw.
. /tmp/wms_var
TARGET=$(for wid in $(lsw); do
printf '%s\n' "$wid $(atomx WM_CLASS $wid)"
done | grep $XENAME | cut -d ' ' -f1)
[ $TARGET ] && wms_mainrole.sh $TARGET \
|| $XECMD