From 047043e4e5896bd1127cf4ca7462091bbfde1eb5 Mon Sep 17 00:00:00 2001 From: lightly-toasted Date: Fri, 19 Sep 2025 16:25:10 +0900 Subject: [PATCH] feat(waybar): add privacy module --- home/modules/graphical/waybar/default.nix | 12 +++++++++++- home/modules/graphical/waybar/style.css | 7 +++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/home/modules/graphical/waybar/default.nix b/home/modules/graphical/waybar/default.nix index 2462e2b..d7a5d09 100644 --- a/home/modules/graphical/waybar/default.nix +++ b/home/modules/graphical/waybar/default.nix @@ -7,7 +7,7 @@ height = 5; output = "HDMI-A-1"; modules-left = [ "custom/mouse-actions" ]; - modules-center = [ ]; + modules-center = [ "privacy" ]; modules-right = [ "pulseaudio" "network" @@ -62,6 +62,16 @@ user = false; }; + privacy = { + modules = [ + { type = "screenshare"; } + { type = "audio-out"; } + { type = "audio-in"; } + ]; + + icon-size = 14; + }; + "custom/mouse-actions" = { format = " {}"; exec = "tail -n 1 -F ~/.config/mouse-actions/state 2>/dev/null"; diff --git a/home/modules/graphical/waybar/style.css b/home/modules/graphical/waybar/style.css index 2d2135a..12e9dce 100644 --- a/home/modules/graphical/waybar/style.css +++ b/home/modules/graphical/waybar/style.css @@ -197,3 +197,10 @@ label:focus { margin: 6px 3px; min-width: 16px; } + +#privacy { + background-color: #daad50; + color: #422d10; + padding: 0 10px; + margin: 5px 3px; +}