temp file source added

This commit is contained in:
#root_informatica 2023-12-27 08:41:33 -03:00
parent a088f696ea
commit 1625bd5c54

View file

@ -3,13 +3,12 @@
## check if there is an open Emacs window ##
## dependencies: wname, lsw.
ENAME="emacs"
ECMD='emacsclient -c --alternate-editor=""'
. /tmp/wms_var
TARGET=$(for wid in $(lsw); do
printf '%s\n' "$wid $(atomx WM_CLASS $wid)"
done | grep emacs | cut -d ' ' -f1)
done | grep $XENAME | cut -d ' ' -f1)
[ $TARGET ] && wms_mainrole.sh $TARGET \
|| $ECMD
|| $XECMD