Code Monkey home page Code Monkey logo

control-pianobar's People

Contributors

duffolonious avatar ijustlovemath avatar malabarba avatar tdy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

control-pianobar's Issues

missing albumart line 136:

136: cd "$fold/albumart"

/Users/danielpflood/.config/pianobar/pianobar-notify.sh: line 136: cd: /Users/danielpflood/.config/pianobar/albumart: No such file or directory /Users/danielpflood/.config/pianobar/control-pianobar.sh: line 186: pidof: command not found

I corrected the pidof of by installing with brew but the album art is currently being downloaded to my desktop.

XDG_CONFIG_HOME is not always set, this fixes it.

If $XDG_CONFIG_HOME is not defined, default to $HOME/.config

(used /etc/profile.d/bash_completion.sh as the example of this usage):

⟫ git diff
diff --git a/pianobar-notify.sh b/pianobar-notify.sh
index fb0dd6d..c7db572 100755
--- a/pianobar-notify.sh
+++ b/pianobar-notify.sh
@@ -28,7 +28,7 @@
 # pianobar config file.
 #
 # Also check if this matches you config folder
-fold="$XDG_CONFIG_HOME/pianobar"
+fold="${XDG_CONFIG_HOME:-$HOME/.config}/pianobar"

 # You should also place the control-pianobar.sh script in the
 # config folder (or modify the following variable accordingly).

Syntax error in pianobar-notify

When attempting to run pianobar-notify.sh I receive this error.

archie@arch pianobar]$ sh pianobar-notify.sh
pianobar-notify.sh: line 81: syntax error near unexpected token <' pianobar-notify.sh: line 81:done < <(grep -e '^(title|artist|album|stationName|songStationName|pRet|pRetStr|wRet|wRetStr|songDuration|songPlayed|rating|coverArt|stationCount|station[0-9]+)=' /dev/stdin) # don't overwrite $1...'
[archie@arch pianobar]$ ls
albumart config control-pianobar.sh ctl isplaying log pandora.jpg pianobar-notify.sh README.md state

"control-pianobar.sh p" will start pianobar and run if I have autostart_station in my conf otherwise it just freezes and the gtk window to show stations never comes up. I see the initial notify-send stating "Starting Pianobar" but nothing after. It also never creates any of the files required by pianobar-notify.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.