From b9fd3453a29563a39a6c8ec62a802e7ee34db507 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Fri, 30 Oct 2026 14:41:40 +0100 Subject: [PATCH] feat: show screenshare and mic usage in waybar --- home/dotfiles/waybar/config.jsonc | 22 ++++++++++++++++++++++ home/dotfiles/waybar/style.css | 8 ++++++++ 2 files changed, 30 insertions(+) diff --git a/home/dotfiles/waybar/config.jsonc b/home/dotfiles/waybar/config.jsonc index 0a0f9ae7ebaecace1f5f85e9c48d3d5fefeb4208..044e7b529e73de1d7f67c249617509ff0a79fdad 100644 --- a/home/dotfiles/waybar/config.jsonc +++ b/home/dotfiles/waybar/config.jsonc @@ -16,6 +16,7 @@ "modules-center": [ ], "modules-right": [ + "privacy", "custom/dnd", "idle_inhibitor", "pulseaudio", @@ -52,6 +53,16 @@ "tooltip": true, "tooltip-format": "{app}: {title}" }, + "privacy": { + "icon-spacing": 4, + "icon-size": 14, + "transition-duration": 250, + "modules": [ + { "type": "screenshare", "icon-name": "screen-shared-symbolic", "tooltip": true, "tooltip-icon-size": 24 }, + { "type": "audio-in", "icon-name": "audio-input-microphone-symbolic", "tooltip": true, "tooltip-icon-size": 24 } + ], + "ignore-monitor": true + }, "custom/dnd": { "exec": "if makoctl mode | grep -qx do-not-disturb; then echo '{\"alt\":\"on\",\"class\":\"on\",\"tooltip\":\"Do not disturb: on\"}'; else echo '{\"alt\":\"off\",\"class\":\"off\",\"tooltip\":\"Do not disturb: off\"}'; fi", "return-type": "json", @@ -168,6 +179,7 @@ "modules-center": [ ], "modules-right": [ + "privacy", "custom/dnd", "idle_inhibitor", "pulseaudio", @@ -205,6 +217,16 @@ "tooltip": true, "tooltip-format": "{app}: {title}" }, + "privacy": { + "icon-spacing": 4, + "icon-size": 14, + "transition-duration": 250, + "modules": [ + { "type": "screenshare", "icon-name": "screen-shared-symbolic", "tooltip": true, "tooltip-icon-size": 24 }, + { "type": "audio-in", "icon-name": "audio-input-microphone-symbolic", "tooltip": true, "tooltip-icon-size": 24 } + ], + "ignore-monitor": true + }, "custom/dnd": { "exec": "if makoctl mode | grep -qx do-not-disturb; then echo '{\"alt\":\"on\",\"class\":\"on\",\"tooltip\":\"Do not disturb: on\"}'; else echo '{\"alt\":\"off\",\"class\":\"off\",\"tooltip\":\"Do not disturb: off\"}'; fi", "return-type": "json", diff --git a/home/dotfiles/waybar/style.css b/home/dotfiles/waybar/style.css index 37b5f12847a7fc0bec4af2a8a2aa184bfa67deaa..4178da3f5eab743de28c21d8258124b99586a021 100644 --- a/home/dotfiles/waybar/style.css +++ b/home/dotfiles/waybar/style.css @@ -216,3 +216,11 @@ label:focus { #tags button.urgent:hover { box-shadow: inset 0 -3px #f0932b; } + +#privacy-item.screenshare { + color: #eb4d4b; +} + +#privacy-item.audio-in { + color: #f0932b; +}