Comments (2)
You're not supposed to modify mpd.lua
, but rather write a Lain MPD widget in theme.lua
. Example:
theme.mpd = lain.widget.mpd {
host = "example.com",
port = "6600",
music_dir = "path/to/your/music/directory",
settings = function()
widget:set_markup(mpd_now.artist .. " " .. mpd_now.title)
end
}
Reference: Lain MPD widget documentation.
from awesome-copycats.
Thank you! I thought I had tried that already but I didn't put the host, port, and music directory high enough in the widget. The music dir wasn't needed in the end as MPD must handle that remotely and the default is also port 6600 so I could have omitted that too.
For anyone else wanting confirmation on what's needed (the first part is so I can 'super+left-click' to open a TUI music controller):
-- MPD
local mpc_remote = " -h moode.home.arpa -p 6600"
local musicplr = awful.util.terminal .. " -e ncmpcpp" .. mpc_remote
local mpdicon = wibox.widget.imagebox(theme.widget_music)
[...]
theme.mpd = lain.widget.mpd({
host = "moode.home.arpa",
port = "6600",
settings = function()
[...]
from awesome-copycats.
Related Issues (20)
- powerarrow-darker: attempt to call field 'at_screen_connect' HOT 3
- Mistyped variable name gui_editor HOT 1
- adding streetturtle widgets to copycats theme HOT 2
- powerarrow theme error with notifications HOT 3
- Installation process ? HOT 3
- Fullscreen-ing single application freezes Awesome HOT 4
- Error fetching submodules HOT 3
- Holo theme error when pressing the HOT 5
- Hide menu when mouse leaves it not working properly HOT 2
- How To add new widgets HOT 2
- change the colours of the powerarrows in the powerarrow theme? HOT 2
- No such file or directory: awesome-copycats HOT 1
- Questions about mpd, function key shortcuts, alternative to gtk applications HOT 4
- switch to parent window after closing child window HOT 4
- Multicolor Theme: Multiple Wallpapers & MPD Previews HOT 3
- Please figure it out thanks HOT 3
- No icons HOT 1
- Themes need a brightness widget HOT 1
- Topbar and menu too small HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awesome-copycats.