awesome-wm-widgets/mpdarc-widget/README.md

27 lines
600 B
Markdown
Raw Normal View History

2018-04-15 03:26:50 +02:00
# MPD Widget
2018-04-15 03:28:32 +02:00
Music Player Daemon widget by @raphaelfournier.
2018-04-15 03:26:50 +02:00
# Prerequisite
Install `mpd` (Music Player Daemon itself) and `mpc` (Music Player Client - program for controlling mpd), both should be available in repo, e.g for Ubuntu:
2018-04-15 03:28:32 +02:00
```bash
2018-04-15 03:26:50 +02:00
sudo apt-get install mpd mpc
2018-04-15 03:28:32 +02:00
```
2018-04-15 03:26:50 +02:00
## Installation
2018-04-15 03:26:50 +02:00
To use this widget clone repo under **~/.config/awesome/** and then add it in **rc.lua**:
```lua
local mpdarc_widget = require("awesome-wm-widgets.mpdarc-widget.mpdarc")
...
s.mytasklist, -- Middle widget
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
...
mpdarc_widget,
...
```