From b9cebfed62fb8d173871eeedd4920eb8d3056771 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Mon, 6 Mar 2017 14:13:49 +0100 Subject: [PATCH] Added yaourtrc, better notify function --- make-links.sh | 1 + yaourtrc | 2 ++ zsh/functions.zsh | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 yaourtrc diff --git a/make-links.sh b/make-links.sh index c6901dc..9379845 100755 --- a/make-links.sh +++ b/make-links.sh @@ -18,6 +18,7 @@ main() { make_link ycm_extra_conf.py .vim/ycm_extra_conf.py make_link awesome .config/awesome make_link Xdefaults .Xdefaults + make_link yaourtrc .yaourtrc } diff --git a/yaourtrc b/yaourtrc new file mode 100644 index 0000000..437a09f --- /dev/null +++ b/yaourtrc @@ -0,0 +1,2 @@ +BUILD_NOCONFIRM=1 +EDITFILES=0 diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 221c277..4ce2e62 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -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 }