Use native mpris module in Waybar
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
61510dd009
commit
38f95b1847
3 changed files with 6 additions and 14 deletions
|
@ -79,17 +79,14 @@
|
||||||
"margin": "6px",
|
"margin": "6px",
|
||||||
"modules-left": ["tray"],
|
"modules-left": ["tray"],
|
||||||
"modules-center": [],
|
"modules-center": [],
|
||||||
"modules-right": ["custom/tauon"],
|
"modules-right": ["mpris"],
|
||||||
"tray": {
|
"tray": {
|
||||||
"spacing": 12,
|
"spacing": 12,
|
||||||
},
|
},
|
||||||
"custom/tauon": {
|
"mpris": {
|
||||||
"format": "{}",
|
"player": "tauon",
|
||||||
"tooltip": false,
|
"format": "{artist} - {album} - {title}",
|
||||||
"interval": 1,
|
|
||||||
"exec": "$XDG_BIN_HOME/tauon-status",
|
|
||||||
"escape": true,
|
|
||||||
"on-click": "swaymsg workspace 10",
|
"on-click": "swaymsg workspace 10",
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -19,9 +19,9 @@
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#clock,
|
#clock,
|
||||||
#battery,
|
#battery,
|
||||||
|
#mpris,
|
||||||
#custom-update,
|
#custom-update,
|
||||||
#custom-power,
|
#custom-power,
|
||||||
#custom-tauon,
|
|
||||||
#window {
|
#window {
|
||||||
padding: 0 12px;
|
padding: 0 12px;
|
||||||
background: @background-color;
|
background: @background-color;
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
if [ "$(playerctl -p tauon status)" = "Playing" ]; then
|
|
||||||
echo "$(playerctl -p tauon metadata xesam:albumArtist) - $(playerctl -p tauon metadata xesam:album) - $(playerctl -p tauon metadata xesam:title)"
|
|
||||||
fi
|
|
Loading…
Add table
Add a link
Reference in a new issue