From 6ee3b04bcf4400abd3e04c91a472f0bec9dbef48 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Tue, 23 Apr 2024 21:16:16 -0500 Subject: [PATCH] Revamp pulseaudio module --- sericea/.config/waybar/config | 17 ++++------------- sericea/.config/waybar/style.css | 4 ++++ 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/sericea/.config/waybar/config b/sericea/.config/waybar/config index 94de7970..41e85485 100644 --- a/sericea/.config/waybar/config +++ b/sericea/.config/waybar/config @@ -71,22 +71,13 @@ "format": " {bandwidthUpBytes}  {bandwidthDownBytes}" }, "pulseaudio": { - "scroll-step": 0, + "scroll-step": 5, "format": "{icon} {volume}%", - "format-bluetooth": "{volume}% {icon} {format_source}", - "format-bluetooth-muted": "MUTE {icon} {format_source}", - "format-muted": "M {format_source}", - "format-source": "{volume}%", - "format-source-muted": "M", "format-icons": { - "headphones": "", - "handsfree": "", - "headset": "", - "phone": "", - "portable": "", - "car": "", "default": ["", "", ""] }, - "on-click": "pavucontrol-qt" + "on-scroll-up": "/usr/libexec/sway/volume-helper --limit 100 --increase 5", + "on-scroll-down": "/usr/libexec/sway/volume-helper --limit 100 --decrease 5", + "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle && /usr/libexec/sway/volume-helper" } } diff --git a/sericea/.config/waybar/style.css b/sericea/.config/waybar/style.css index 100eac49..1ba10494 100644 --- a/sericea/.config/waybar/style.css +++ b/sericea/.config/waybar/style.css @@ -52,6 +52,10 @@ window#waybar { padding: 0 1em; color: #ebdbb2; } +#pulseaudio.muted { + border-top: 4px solid #fb4934; + border-bottom: 4px solid #282828; +} #tray { padding: 0 1em; }