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

30 lines
552 B
Markdown
Raw Normal View History

2020-12-01 15:03:04 +01:00
---
layout: page
---
# MPRIS Widget (In progress)
Music Player Info widget cy @mgabs
# Prerequisite
2023-09-21 14:46:25 +02:00
Install `playerctl` (mpris implementation), should be available in repo, e.g. for Ubuntu:
2020-12-01 15:03:04 +01:00
```bash
sudo apt-get install playerctl
```
## Installation
To use this widget clone repo under **~/.config/awesome/** and then add it in **rc.lua**:
```lua
local mpris_widget = require("awesome-wm-widgets.mpris-widget")
...
s.mytasklist, -- Middle widget
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
...
2022-01-24 01:17:02 +01:00
mpris_widget(),
2020-12-01 15:03:04 +01:00
...
```