Actualization 2024

This commit is contained in:
#root_informatica 2023-12-16 01:09:38 -03:00
parent e93aed5a4e
commit a088f696ea

15
wms_editor.sh Executable file
View 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