diff options
author | srv <enmanuel.saravia.externo@pandero.com.pe> | 2025-05-06 03:25:16 -0500 |
---|---|---|
committer | srv <enmanuel.saravia.externo@pandero.com.pe> | 2025-05-06 03:25:16 -0500 |
commit | 14bb9c8af04d28aae3bcd88734ac8d27934b6492 (patch) | |
tree | 4a33e1f44822220b98a2f4056e6feeea971aeeaf | |
parent | 579560cab044dee990a402a8947b3c08a58d501c (diff) |
Improve filename and remove innecesary validation wmctrl
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | run.sh | 6 |
2 files changed, 3 insertions, 5 deletions
@@ -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 @@ -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 |