You are not logged in.
Pages: 1
Hey there; I just reinstalled Arch and decided to try Awesome instead of xmonad. I've been trying to implement media controls on one of my widgets, but I can't seem to get MPC to work with Awesome at all.
Here's the command it's trying to run:
awful.util.spawn("mpc toggle -q", false)Just wondering if anyone else here has had this problem. Running the above in awesome's lua prompt doesn't work either, but the mpc command alone works in a normal terminal.
Merry Christmas!
Last edited by plasmid (2012-12-27 01:56:15)
Offline
Ah, I found out that it's an issue with finding the socket that MPD is using.
For some reason, Awesome can't read $MPD_HOST... running the following lua returns nil.
os.getenv("MPD_HOST") # returns nil, even though $MPD_HOST is set!Not sure how to fix this. Even explicitly setting MPD_HOST in .xinitrc didn't seem to let Awesome return a value for it.
For now, I've hard-coded the socket path into the command as a workaround until I find a better way.
mpc toggle -q -h path_to_socketOffline
Pages: 1