waybar: add module for player metadata
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user