summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
authorsrv <enmanuel.saravia.externo@pandero.com.pe>2025-05-06 03:43:06 -0500
committersrv <enmanuel.saravia.externo@pandero.com.pe>2025-05-06 03:43:06 -0500
commit3b16a3d97bb292f7b8a20ed418f1859f5ce38ba7 (patch)
tree598cb527a09490b1a74eb42c6eb7237cd5ae3151 /run.sh
parentfc781a998c742b88921726a7279a8b138954b320 (diff)
Fix the xterm frame for run the execute the automate command
Diffstat (limited to 'run.sh')
-rw-r--r--run.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/run.sh b/run.sh
index c29b934..20d741d 100644
--- a/run.sh
+++ b/run.sh
@@ -7,9 +7,7 @@ if echo -n $1 | grep -q start; then
OLD=$(echo -n $(mktemp -u | cut -d. -f2))
mv "$archivo" "${archivo}.${OLD}.txt"
fi
-
# Abre una ventana de xterm que ejecuta "dash run"
- sleep 1 && ( xdotool windowmove "$(xdotool search --name 'bash yad' | head -n 1)" 1247 536 && xdotool windowsize "$(xdotool search --name 'bash yad' | head -n 1)" 28 160 ) &
xterm -hold -e "bash $HOME/automatisiere-lieblingstexte/yad-panel.sh" &
fi
@@ -17,7 +15,7 @@ if echo -n $1 | grep -q 'Z9SWsMuc89'; then
if [ -f $archivo ]; then
texto=$(echo -n "$archivo")
if [ -n "$texto" ]; then
- xterm -hold -e "cd && sed -n '/^#!\/bin\/dash/,/```/p' \"$HOME/automatisiere-lieblingstexte/README.md\" | sed '/^```/d' | sed '/^$/d' > /tmp/automatisiere-lieblingstexte.tmp.sh && dash /tmp/automatisiere-lieblingstexte.tmp.sh" &
+ cd && sed -n '/^#!\/bin\/dash/,/```/p' "$HOME/automatisiere-lieblingstexte/README.md" | sed '/^```/d' | sed '/^$/d' > /tmp/automatisiere-lieblingstexte.tmp.sh && dash /tmp/automatisiere-lieblingstexte.tmp.sh
fi
fi
fi \ No newline at end of file