[waybar] feat: Add privacy module

This commit is contained in:
Tibo De Peuter 2024-06-02 19:39:13 +02:00
parent 7866033826
commit 19affd8b0e
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
3 changed files with 27 additions and 1 deletions

View file

@ -32,6 +32,7 @@
"height": 25,
"modules-left": ["sway/mode"],
"modules-center": ["clock"],
"modules-right": ["privacy"],
"include": [
// Import modules (!)

View file

@ -128,7 +128,25 @@
// "0:¯\\_(ツ)_/¯": []
// }
},
"privacy": {
"icon-spacing": 4,
"icon-size": 18,
"transition-duration": 250,
"modules": [
{
"type": "screenshare",
"tooltip": true,
"tooltip-icon-size": 18,
},
{
"type": "audio-in",
"tooltip": true,
"tooltip-icon-size": 18,
},
],
},
"pulseaudio": {
"format": "{volume}% {icon}{format_source}",
"format-muted": "\uf6a9{format_source}",

View file

@ -134,5 +134,12 @@ label:focus {
background-color: #eb4d4b;
}
#privacy-item.audio-in,
#privacy-item.audio-out,
#privacy-item.screenshare {
background-color: #ffaa01;
color: #2d3436;
}
@import "sharp.css";