From 7c9bed8adb5c2c0168ffbe1e4ff7fbc5892ed805 Mon Sep 17 00:00:00 2001 From: thek4n Date: Thu, 13 Aug 2026 23:33:55 +0300 Subject: [PATCH] scrollable waybap --- home/user/.config/waybar/config | 10 +++++++++- home/user/.config/waybar/style.css | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/home/user/.config/waybar/config b/home/user/.config/waybar/config index d12a8a2..f359f7a 100644 --- a/home/user/.config/waybar/config +++ b/home/user/.config/waybar/config @@ -21,7 +21,7 @@ "custom/battery", "custom/pomodoro", "custom/bluetooth", - "custom/media", + "custom/ScrollMPRIS", "pulseaudio", "custom/language", "custom/userhost", @@ -65,6 +65,14 @@ "interval": 5, "return-type": "text", }, + "custom/ScrollMPRIS": { + "name": "custom-scrollmedia" + "return-type": "json", + "exec": "ScrollMPRIS -s 50 -w 40 --scroll wrapping --format '{title} - {artist}'", + "on-click": "playerctl play-pause", + "on-click-right": "playerctl next", + "on-middle-click": "playerctl previous", + }, "custom/media": { "exec": "playerctl metadata --format '{{title}} - {{artist}}' | cut -c -30", "interval": 1, diff --git a/home/user/.config/waybar/style.css b/home/user/.config/waybar/style.css index bf99d5a..75ad094 100644 --- a/home/user/.config/waybar/style.css +++ b/home/user/.config/waybar/style.css @@ -39,6 +39,7 @@ window#waybar { #custom-cpu_temp, #custom-bluetooth, #custom-media, +#custom-scrollmedia, #pulseaudio, #custom-pomodoro, #custom-language, @@ -57,7 +58,7 @@ window#waybar { color: #81C784; } -#custom-media { +#custom-media, #custom-scrollmedia { color: white; }