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; }