diff --git a/README.md b/README.md index 0868434a..28f99a4e 100644 --- a/README.md +++ b/README.md @@ -320,6 +320,7 @@ default, you must create it manually. "showBattery": true, "showBluetooth": true, "showKbLayout": false, + "showMicrophone": false, "showNetwork": true, "showLockStatus": true }, diff --git a/config/BarConfig.qml b/config/BarConfig.qml index 59679527..283e1142 100644 --- a/config/BarConfig.qml +++ b/config/BarConfig.qml @@ -74,6 +74,7 @@ JsonObject { component Status: JsonObject { property bool showAudio: false + property bool showMicrophone: false property bool showKbLayout: false property bool showNetwork: true property bool showBluetooth: true diff --git a/modules/bar/components/StatusIcons.qml b/modules/bar/components/StatusIcons.qml index 23be57bd..839a61a8 100644 --- a/modules/bar/components/StatusIcons.qml +++ b/modules/bar/components/StatusIcons.qml @@ -115,6 +115,18 @@ StyledRect { } } + // Microphone icon + WrappedLoader { + name: "audio" + active: Config.bar.status.showMicrophone + + sourceComponent: MaterialIcon { + animate: true + text: Icons.getMicVolumeIcon(Audio.sourceVolume, Audio.sourceMuted) + color: root.colour + } + } + // Keyboard layout icon WrappedLoader { name: "kblayout"