Actualization 2024
This commit is contained in:
parent
e93aed5a4e
commit
a088f696ea
1 changed files with 15 additions and 0 deletions
15
wms_editor.sh
Executable file
15
wms_editor.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
## check if there is an open Emacs window ##
|
||||
## dependencies: wname, lsw.
|
||||
|
||||
ENAME="emacs"
|
||||
ECMD='emacsclient -c --alternate-editor=""'
|
||||
|
||||
TARGET=$(for wid in $(lsw); do
|
||||
printf '%s\n' "$wid $(atomx WM_CLASS $wid)"
|
||||
done | grep emacs | cut -d ' ' -f1)
|
||||
|
||||
[ $TARGET ] && wms_mainrole.sh $TARGET \
|
||||
|| $ECMD
|
||||
|
Loading…
Reference in a new issue