mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 07:25:40 +00:00
feat(waybar): add privacy module
This commit is contained in:
parent
ce336d10b1
commit
047043e4e5
2 changed files with 18 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
||||||
height = 5;
|
height = 5;
|
||||||
output = "HDMI-A-1";
|
output = "HDMI-A-1";
|
||||||
modules-left = [ "custom/mouse-actions" ];
|
modules-left = [ "custom/mouse-actions" ];
|
||||||
modules-center = [ ];
|
modules-center = [ "privacy" ];
|
||||||
modules-right = [
|
modules-right = [
|
||||||
"pulseaudio"
|
"pulseaudio"
|
||||||
"network"
|
"network"
|
||||||
|
@ -62,6 +62,16 @@
|
||||||
user = false;
|
user = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
privacy = {
|
||||||
|
modules = [
|
||||||
|
{ type = "screenshare"; }
|
||||||
|
{ type = "audio-out"; }
|
||||||
|
{ type = "audio-in"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
icon-size = 14;
|
||||||
|
};
|
||||||
|
|
||||||
"custom/mouse-actions" = {
|
"custom/mouse-actions" = {
|
||||||
format = " {}";
|
format = " {}";
|
||||||
exec = "tail -n 1 -F ~/.config/mouse-actions/state 2>/dev/null";
|
exec = "tail -n 1 -F ~/.config/mouse-actions/state 2>/dev/null";
|
||||||
|
|
|
@ -197,3 +197,10 @@ label:focus {
|
||||||
margin: 6px 3px;
|
margin: 6px 3px;
|
||||||
min-width: 16px;
|
min-width: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#privacy {
|
||||||
|
background-color: #daad50;
|
||||||
|
color: #422d10;
|
||||||
|
padding: 0 10px;
|
||||||
|
margin: 5px 3px;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue