Skip to main content

Module privacy

Module privacy 

Source
Expand description

Privacy Monitor

§Configuration

KeyValuesDefault
driverThe configuration of a driver (see below).Required
formatMultiFormat string.["{ $icon_audio |}{ $icon_audio_sink |}{ $icon_video |}{ $icon_webcam |}{ $icon_unknown |}", "{ $icon_audio $info_audio |}{ $icon_audio_sink $info_audio_sink |}{ $icon_video $info_video |}{ $icon_webcam $info_webcam |}{ $icon_unknown $info_unknown |}"]

§pipewire Options (requires the pipewire feature to be enabled)

KeyValuesRequiredDefault
namepipewireYesNone
exclude_outputAn output node to ignore, example: ["HD Pro Webcam C920"]No[]
exclude_inputAn input node to ignore, example: ["openrgb"]No[]
displayWhich node field should be used as a display name, options: name, description, nicknameNoname

§vl4 Options

KeyValuesRequiredDefault
namevl4YesNone
exclude_deviceA device to ignore, example: ["/dev/video5"]No[]
exclude_consumerProcesses to ignoreNo["pipewire", "wireplumber"]

§Available Format Keys

PlaceholderValueTypeUnit
icon_{audio,audio_sink,video,webcam,unknown}A static iconIcon-
info_{audio,audio_sink,video,webcam,unknown}The mapping of which source are being consumedText-

You can use the suffixes noted above to get the following:

SuffixDescription
audioCaptured audio (ex. Mic)
audio_sinkAudio captured from a sink (ex. openrgb)
videoVideo capture (ex. screen capture)
webcamWebcam capture
unknownAnything else

§Available Actions

ActionDescriptionDefault button
toggle_format DEPRECATEDToggles between format and format_alt-
next_formatSwitches to the next format in the listLeft
prev_formatSwitches to the previous format in the listRight

§Example

[[block]]
block = "privacy"
[[block.driver]]
name = "v4l"
[[block.driver]]
name = "pipewire"
exclude_input = ["openrgb"]
display = "nickname"

§Icons Used

  • microphone
  • volume
  • xrandr
  • webcam
  • unknown

Structs§

Config

Enums§

PrivacyDriver

Functions§

run