Added yaourtrc, better notify function

This commit is contained in:
Thomas FORGIONE
2017-03-06 14:13:49 +01:00
parent bba2ca4fbf
commit b9cebfed62
3 changed files with 5 additions and 2 deletions

View File

@@ -52,9 +52,9 @@ wallpaper() {
# Notify to awesome
notify() {
if [ $# -lt 2 ]; then
echo "naughty.notify({text = \"$1\", timeout = 10})" | awesome-client
notify-send "$1"
elif [ $# -lt 3 ]; then
echo "naughty.notify({title=\"$1\", text = \"$2\", timeout = 10})" | awesome-client
notify-send "$1" "$2"
fi
}