From 573613e834a0538a3ce8b950cbad7cd11e180723 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 26 Apr 2017 14:49:41 +0200 Subject: contrib: Use $XDG_HOME_CONFIG Fixes #618. --- contrib/eventcmd-examples/eventcmd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/eventcmd-examples') diff --git a/contrib/eventcmd-examples/eventcmd.sh b/contrib/eventcmd-examples/eventcmd.sh index 7e2872a..f07cb7d 100755 --- a/contrib/eventcmd-examples/eventcmd.sh +++ b/contrib/eventcmd-examples/eventcmd.sh @@ -11,7 +11,7 @@ case "$1" in # songstart) # echo 'naughty.notify({title = "pianobar", text = "Now playing: ' "$title" ' by ' "$artist" '"})' | awesome-client - -# echo "$title -- $artist" > $HOME/.config/pianobar/nowplaying +# echo "$title -- $artist" > ${XDG_HOME_CONFIG:-${HOME}/.config}/pianobar/nowplaying # if [ "$rating" -eq 1 ] # then -- cgit v1.2.3 From aa2d42f83607d7eae63cc7d860b919e60e1defd8 Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Wed, 26 Apr 2017 15:00:57 +0200 Subject: eventcmd.sh: Guard against spaces in path --- contrib/eventcmd-examples/eventcmd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/eventcmd-examples') diff --git a/contrib/eventcmd-examples/eventcmd.sh b/contrib/eventcmd-examples/eventcmd.sh index f07cb7d..233b52e 100755 --- a/contrib/eventcmd-examples/eventcmd.sh +++ b/contrib/eventcmd-examples/eventcmd.sh @@ -11,7 +11,7 @@ case "$1" in # songstart) # echo 'naughty.notify({title = "pianobar", text = "Now playing: ' "$title" ' by ' "$artist" '"})' | awesome-client - -# echo "$title -- $artist" > ${XDG_HOME_CONFIG:-${HOME}/.config}/pianobar/nowplaying +# echo "$title -- $artist" > "${XDG_HOME_CONFIG:-${HOME}/.config}/pianobar/nowplaying" # if [ "$rating" -eq 1 ] # then -- cgit v1.2.3