add waybar component for microphone state

This commit is contained in:
2022-06-11 15:04:11 +03:00
parent e248139d5b
commit 80581b2eb5
3 changed files with 22 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
"modules-right": [
"tray",
"pulseaudio",
"custom/mic-state",
"sway/language",
"network",
"backlight",
@@ -26,6 +27,16 @@
"format-muted": "MUTE",
"on-click": "pavucontrol"
},
"custom/mic-state": {
"exec": "~/dotfiles/bin/mic-state.sh",
"format": "{icon}",
"return-type": "json",
"restart-interval": 0,
"format-icons": {
"yes": "",
"no": ""
}
},
"sway/language": {
"tooltip": false
},

View File

@@ -34,12 +34,14 @@ window#waybar {
margin-left: 10px;
}
#network {
#network,
#custom-mic-state {
font-family: "Font Awesome 6 Free Solid";
}
#tray,
#pulseaudio,
#custom-mic-state,
#language,
#network,
#upower,