temp file source added
This commit is contained in:
parent
a088f696ea
commit
1625bd5c54
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue