summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--run.sh6
2 files changed, 3 insertions, 5 deletions
diff --git a/README.md b/README.md
index c161fa0..f1dc949 100644
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ Comando ^1 ^touch "$HOME/.automatisiere-lieblingstexte.pause.switch" && while
```
#!/bin/dash
-mytext='$HOME/automatisiere-lieblingstexte-der-texte.txt'
+mytext='/tmp/automatisiere-lieblingstexte-der-texte.txt'
if [ ! -f $mytext ]; then
exit 0
fi
diff --git a/run.sh b/run.sh
index 15261b5..c29b934 100644
--- a/run.sh
+++ b/run.sh
@@ -9,10 +9,8 @@ if echo -n $1 | grep -q start; then
fi
# Abre una ventana de xterm que ejecuta "dash run"
- if wmctrl -l | grep -qv 'Yad Icon panel'; then
- 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
+ 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
if echo -n $1 | grep -q 'Z9SWsMuc89'; then