Add mpris (media player) widget to waybar
This commit is contained in:
parent
5ec82e75a2
commit
5c4a03900d
@ -3,7 +3,7 @@
|
|||||||
"height": 40,
|
"height": 40,
|
||||||
"modules-left": ["sway/workspaces", "sway/mode", "idle_inhibitor"],
|
"modules-left": ["sway/workspaces", "sway/mode", "idle_inhibitor"],
|
||||||
"modules-center": ["tray"],
|
"modules-center": ["tray"],
|
||||||
"modules-right": ["pulseaudio", "battery", "clock"],
|
"modules-right": ["mpris", "pulseaudio", "battery", "clock"],
|
||||||
"sway/workspaces": {
|
"sway/workspaces": {
|
||||||
"disable-scroll": true,
|
"disable-scroll": true,
|
||||||
"persistent_workspaces": {
|
"persistent_workspaces": {
|
||||||
@ -46,6 +46,21 @@
|
|||||||
"format-plugged": "{icon} {capacity}%",
|
"format-plugged": "{icon} {capacity}%",
|
||||||
"format-icons": ["", "", "", "", ""]
|
"format-icons": ["", "", "", "", ""]
|
||||||
},
|
},
|
||||||
|
"mpris": {
|
||||||
|
"interval": 1,
|
||||||
|
"format": "{status_icon} {title} {player_icon}",
|
||||||
|
"ignored-players": [
|
||||||
|
"firefox"
|
||||||
|
],
|
||||||
|
"player-icons": {
|
||||||
|
"default": "♫"
|
||||||
|
},
|
||||||
|
"status-icons": {
|
||||||
|
"playing": "⏵",
|
||||||
|
"paused": "⏸",
|
||||||
|
"stopped": "⏹"
|
||||||
|
}
|
||||||
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"scroll-step": 0,
|
"scroll-step": 0,
|
||||||
"format": "{icon} {volume}%",
|
"format": "{icon} {volume}%",
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
* {
|
* {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
font-family: IBM Plex Sans Medium;
|
font-family: "IBM Plex Sans Medium";
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,6 +48,17 @@ window#waybar {
|
|||||||
padding: 0 1em;
|
padding: 0 1em;
|
||||||
color: #ebdbb2;
|
color: #ebdbb2;
|
||||||
}
|
}
|
||||||
|
#mpris {
|
||||||
|
padding: 0 1em;
|
||||||
|
}
|
||||||
|
#mpris.playing {
|
||||||
|
background: #d3869b;
|
||||||
|
color: #282828;
|
||||||
|
}
|
||||||
|
#mpris.paused, #mpris.stopped {
|
||||||
|
background: #32302f;
|
||||||
|
color: #282828;
|
||||||
|
}
|
||||||
#idle_inhibitor {
|
#idle_inhibitor {
|
||||||
padding: 0 1em;
|
padding: 0 1em;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user