diff options
Diffstat (limited to 'dotfiles/.config/waybar/config')
-rw-r--r-- | dotfiles/.config/waybar/config | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/dotfiles/.config/waybar/config b/dotfiles/.config/waybar/config index ce0942e..16a6fdb 100644 --- a/dotfiles/.config/waybar/config +++ b/dotfiles/.config/waybar/config @@ -1,11 +1,11 @@ - +// vim: filetype=json { "layer": "bottom", "height": 30, "modules-left": [ "sway/workspaces", "sway/mode", - "mpd", + "custom/waybar-mpris", "pulseaudio" ], "modules-center": [ @@ -30,6 +30,12 @@ "sway/mode": { "format": "<span style=\"italic\">{}</span>" }, + "custom/waybar-mpris": { + "return-type": "json", + "exec": "waybar-mpris --position --autofocus --pause=' <span color=\\\"#5b8277\\\"></span>' --play=' <span color=\\\"#b2872f\\\"></span>'", + "on-click": "waybar-mpris --send toggle", + "on-click-right": "waybar-mpris --send player-next" + }, "mpd": { "format": " {stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon} [{elapsedTime:%M:%S}] {artist} - {title}", "format-disconnected": " Connection lost ", @@ -192,7 +198,7 @@ "format": "<span color=\"#5b8277\"></span> {}", "signal": 7, "interval": "once", - "exec": "barpacstatus", + "exec": "barpacstatus" }, "custom/news-status": { "format": "<span color=\"#5b8277\"></span> {}", |