From 4c5021e8af8f8b93c517949900e14f1d421d3f8e Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:28 +0100 Subject: feat(waybar): add webcam privacy indicator V4L2 capture goes directly through /dev/videoN and never traverses the PipeWire portal, so the built-in privacy module misses it. New custom/webcam module polls fuser on /dev/video* every 2s and shows a red 'CAM' badge when any device is held open. Empty text when idle, so the slot collapses and stays out of the way when the webcam is unused (i.e. always, on a usual day). --- dot_config/waybar/config.jsonc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dot_config/waybar/config.jsonc') diff --git a/dot_config/waybar/config.jsonc b/dot_config/waybar/config.jsonc index 47d6b64..c09eb1f 100644 --- a/dot_config/waybar/config.jsonc +++ b/dot_config/waybar/config.jsonc @@ -12,6 +12,7 @@ "network#bond", "battery", "privacy", + "custom/webcam", "pulseaudio", "custom/wifi", "bluetooth", @@ -169,6 +170,13 @@ ], }, + "custom/webcam": { + "exec": "~/.config/waybar/webcam-status.sh", + "return-type": "json", + "interval": 2, + "tooltip": true, + }, + "custom/notifications": { "exec": "~/.config/waybar/mako-status.sh", "return-type": "json", -- cgit v1.3.1