waybar: add module for player metadata

This commit is contained in:
2022-06-16 10:20:58 +03:00
parent f948c5ba54
commit b297ecf1b4
2 changed files with 10 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
"position": "top",
"modules-left": [
"sway/workspaces",
"custom/player",
"sway/mode"
],
"modules-right": [
@@ -21,6 +22,9 @@
"format": "--{}--",
"tooltip": false
},
"custom/player": {
"exec": "playerctl metadata -f '{{title}}' -F"
},
"pulseaudio": {
"tooltip": false,
"format-muted": "MUTE",

View File

@@ -25,13 +25,14 @@ window#waybar {
background: @primary;
}
#mode {
/* left modules */
#mode,
#window,
#custom-player {
margin-left: 10px;
color: @primary;
}
#window {
margin-left: 10px;
#mode {
color: @primary;
}
#network {