feat(waybar): add section for audio device

This commit is contained in:
Price Hiller 2022-12-20 23:01:21 -06:00
parent 485c8024f6
commit 32932b2d60
2 changed files with 16 additions and 0 deletions

View File

@ -9,6 +9,7 @@
"memory", "memory",
"battery", "battery",
"disk", "disk",
"custom/audio-device",
"custom/pipewire" "custom/pipewire"
], ],
"modules-center": [ "modules-center": [
@ -75,6 +76,13 @@
"max-length": 20, "max-length": 20,
"min-length": 14 "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": { "custom/pipewire": {
"format": "{icon} {percentage}%", "format": "{icon} {percentage}%",
"return-type": "json", "return-type": "json",

View File

@ -69,6 +69,14 @@
color: @fujiWhite; color: @fujiWhite;
} }
#custom-audio-device {
background: @sumiInk0;
border-top: 2px solid @oniViolet;
border-left: 2px solid @oniViolet;
color: @fujiWhite;
}
#custom-sway-mode { #custom-sway-mode {
background: @sumiInk0; background: @sumiInk0;
border-bottom: 2px solid @oniViolet; border-bottom: 2px solid @oniViolet;