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

30 lines
622 B
Markdown
Raw Normal View History

2018-09-15 23:33:42 +02:00
---
layout: page
---
# MPD Widget
Music Player Daemon widget by @raphaelfournier.
# Prerequisite
2023-09-21 14:46:25 +02:00
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-09-15 23:33:42 +02:00
```bash
sudo apt-get install mpd mpc
```
2019-12-15 21:38:54 +01:00
## Installation
2018-09-15 23:33:42 +02:00
2019-12-15 21:38:54 +01: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,
...
```