From 82d37f61c153b30620f9ad62149a2267a2691a5d Mon Sep 17 00:00:00 2001 From: s13bby Date: Tue, 18 Aug 2026 11:22:09 +0600 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D0=BB=20wa?= =?UTF-8?q?ybar:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=20?= =?UTF-8?q?=D0=B2=D0=B8=D0=B4=D0=B6=D0=B5=D1=82=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=B8=D0=BD=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=BE=20=D1=82=D0=B5=D0=BA=D1=83=D1=89=D0=B5=D0=BC=20?= =?UTF-8?q?=D1=82=D1=80=D0=B5=D0=BA=D0=B5.=20=D0=A0=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=B0=D0=B5=D1=82=20=D0=BF=D0=BE=D0=BA=D0=B0=20=D1=87?= =?UTF-8?q?=D1=82=D0=BE=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20Spotify?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/waybar/config.jsonc | 15 +++++++++++---- config/waybar/style.css | 4 +++- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index ec50e6a..bb50195 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -5,7 +5,7 @@ "spacing": 0, "modules-left": ["wlr/taskbar"], "modules-center": ["clock"], - "modules-right": ["custom/v2raya", "custom/language", "pulseaudio", "network", "cpu", "memory", "tray"], + "modules-right": ["network", "custom/spotify", "custom/v2raya", "custom/language", "pulseaudio", "cpu", "memory", "tray"], "wlr/taskbar": { "format": "{icon}", @@ -18,12 +18,19 @@ "interval": 1, "format": " {} " }, + "custom/spotify": { + "format": "[{}] ", + "exec": "playerctl metadata --format '{{artist}} - {{title}}' spotify 2>/dev/null || echo ''", + "on-click": "spotify", + "interval": 3, + "max-length": 50 + }, "custom/v2raya": { "format": "PROXY{}", "return-type": "json", "interval": 2, - "exec": "$HOME/.config/waybar/v2raya-toggle.sh", - "on-click": "$HOME/.config/waybar/v2raya-toggle.sh toggle", + "exec": "/home/ivan/.config/waybar/v2raya-toggle.sh", + "on-click": "/home/ivan/.config/waybar/v2raya-toggle.sh toggle", "signal": 10 }, "clock": { @@ -40,7 +47,7 @@ }, "network": { "min-length": 10, - "format-wifi": " {essid}", + "format-wifi": " {bandwidthDownBytes}", "format-ethernet": " {bandwidthDownBytes}", "format-disconnected": "⚠ DONT", "interval": 1 diff --git a/config/waybar/style.css b/config/waybar/style.css index 9c2a13b..fdc7db5 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -5,7 +5,7 @@ border-radius: 0; } -@import "$HOME/.config/aether/theme/waybar.css"; +@import "/home/ivan/.config/aether/theme/waybar.css"; window#waybar { background: alpha(@background, 0.75); @@ -19,6 +19,7 @@ window#waybar { #network, #pulseaudio, #taskbar, +#custom-spotify, #tray { padding: 0 10px; color: @foreground; @@ -34,6 +35,7 @@ window#waybar { box-shadow: inset 0 -2px 0 0 @foreground; color: @foreground; } + #custom-v2raya.enabled { color: @foreground; }