diff options
author | srv <enmanuel.saravia.externo@pandero.com.pe> | 2025-05-06 01:46:24 -0500 |
---|---|---|
committer | srv <enmanuel.saravia.externo@pandero.com.pe> | 2025-05-06 01:46:24 -0500 |
commit | 258a8b775fac1dbc96d5e033f4dd04719d5c43f5 (patch) | |
tree | 6a8e6d1f026bd2f6df919d0d8a2ca6f1d82e205a /automatisier-lieblingstexte.sh | |
parent | 300b5c13668f24a3a50ddd98ece18fce856f5269 (diff) |
modified some files for know where start
Diffstat (limited to 'automatisier-lieblingstexte.sh')
-rw-r--r-- | automatisier-lieblingstexte.sh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/automatisier-lieblingstexte.sh b/automatisier-lieblingstexte.sh deleted file mode 100644 index 15261b5..0000000 --- a/automatisier-lieblingstexte.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/dash - -archivo=$(cat "$HOME/automatisiere-lieblingstexte/README.md" | grep 'mytext=' | awk -F"=" '{print $2}' | tr -d "'") - -if echo -n $1 | grep -q start; then - if [ -f "$archivo" ]; then - OLD=$(echo -n $(mktemp -u | cut -d. -f2)) - mv "$archivo" "${archivo}.${OLD}.txt" - 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 -fi - -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" & - fi - fi -fi
\ No newline at end of file |