Added yaourtrc, better notify function

This commit is contained in:
Thomas FORGIONE 2017-03-06 14:13:49 +01:00
parent bba2ca4fbf
commit b9cebfed62
No known key found for this signature in database
GPG Key ID: 2A210FFC062E00C3
3 changed files with 5 additions and 2 deletions

View File

@ -18,6 +18,7 @@ main() {
make_link ycm_extra_conf.py .vim/ycm_extra_conf.py make_link ycm_extra_conf.py .vim/ycm_extra_conf.py
make_link awesome .config/awesome make_link awesome .config/awesome
make_link Xdefaults .Xdefaults make_link Xdefaults .Xdefaults
make_link yaourtrc .yaourtrc
} }

2
yaourtrc Normal file
View File

@ -0,0 +1,2 @@
BUILD_NOCONFIRM=1
EDITFILES=0

View File

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