Skip to content

Instantly share code, notes, and snippets.

@alexandre-mbm
Last active January 2, 2016 06:26
Show Gist options
  • Save alexandre-mbm/4ab69fc57e58cb85f300 to your computer and use it in GitHub Desktop.
Save alexandre-mbm/4ab69fc57e58cb85f300 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# Small program to let warnings in Teamviewer sessions
#
# To install:
#
# alias zentask="$(pwd)/zentask.sh"
DATE=$(date "+dia %d, %H:%M h")
RESULT=$(yad --center --title="zentask" --height=220 --form --field="Escrever o texto da mensagem:TXT" --item-separator="|" --field="Deixada por:CB" "" "Alexandre|Alan")
MSG=$(echo "$RESULT" | cut -d"|" -f1)
SIGN=$(echo "$RESULT" | cut -d"|" -f2)
echo -e "\n\t\t$DATE\n\n$MSG\n\n\t$SIGN" | yad --height=280 --width=220 --center --title=Informações --button=OK --text-info --wrap --margins=10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment