Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- #
- # Notas Simples
- # Autor Original: Victor Ananjevsky <ananasik@gmail.com>, 2010
- # Modificado por: Due204 <due204@mail.com>, 2013
- function notas_simples () {
- [[ -e /tmp/notas.lock ]] && return
- touch /tmp/notas.lock
- yad --text-info --show-uri --geometry=400x200-0-0 --name="notas" --window-icon="text-editor" \
- --title=$"Notas" --button="Guardar:0" --button="Cerrar:1" \
- --editable --filename=${XDG_CACHE_HOME:-$HOME/.cache}/notas > /tmp/.notas
- [[ $? -eq 0 ]] && mv /tmp/.notas ${XDG_CACHE_HOME:-$HOME/.cache}/notas
- rm -f /tmp/notas.lock
- }
- export -f notas_simples
- mkdir -p ${XDG_CACHE_HOME:-$HOME/.cache}
- touch ${XDG_CACHE_HOME:-$HOME/.cache}/notas
- exec yad --notification --text=$"Notas" --image="text-editor" --command "bash -c notas_simples"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement