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

View File

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