From 32932b2d603f7be2ffc9a0f5a13d1e47ebea242b Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 20 Dec 2022 23:01:21 -0600 Subject: [PATCH] feat(waybar): add section for audio device --- dots/.config/waybar/config | 8 ++++++++ dots/.config/waybar/style.css | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/dots/.config/waybar/config b/dots/.config/waybar/config index 70e9b91f..3e1780f1 100644 --- a/dots/.config/waybar/config +++ b/dots/.config/waybar/config @@ -9,6 +9,7 @@ "memory", "battery", "disk", + "custom/audio-device", "custom/pipewire" ], "modules-center": [ @@ -75,6 +76,13 @@ "max-length": 20, "min-length": 14 }, + "custom/audio-device": { + "tooltip": false, + "min-length": 20, + "interval": 1, + "format": " {}", + "exec": "wpctl status | grep -m 1 '*' | cut -d '.' -f2 | cut -d '[' -f1 | xargs" + }, "custom/pipewire": { "format": "{icon} {percentage}%", "return-type": "json", diff --git a/dots/.config/waybar/style.css b/dots/.config/waybar/style.css index a54e324f..7a7c4d70 100644 --- a/dots/.config/waybar/style.css +++ b/dots/.config/waybar/style.css @@ -69,6 +69,14 @@ color: @fujiWhite; } +#custom-audio-device { + background: @sumiInk0; + border-top: 2px solid @oniViolet; + border-left: 2px solid @oniViolet; + color: @fujiWhite; +} + + #custom-sway-mode { background: @sumiInk0; border-bottom: 2px solid @oniViolet;