waybar: add privacy module
shows mic and screenshare usage
This commit is contained in:
parent
4c7708f5b1
commit
b1b2b3ad11
2 changed files with 34 additions and 2 deletions
|
|
@ -38,6 +38,7 @@
|
|||
"backlight",
|
||||
"battery",
|
||||
"network",
|
||||
"privacy",
|
||||
"custom/swaync"
|
||||
],
|
||||
|
||||
|
|
@ -199,5 +200,27 @@
|
|||
"on-click": "sleep 0.1 && swaync-client -t -sw",
|
||||
"on-click-right": "sleep 0.1 && swaync-client -d -sw",
|
||||
"escape": true
|
||||
},
|
||||
"privacy": {
|
||||
"icon-spacing": 4,
|
||||
"icon-size": 18,
|
||||
"transition-duration": 250,
|
||||
"modules": [
|
||||
{
|
||||
"type": "screenshare",
|
||||
"tooltip": true,
|
||||
"tooltip-icon-size": 24
|
||||
},
|
||||
// {
|
||||
// "type": "audio-out",
|
||||
// "tooltip": true,
|
||||
// "tooltip-icon-size": 24
|
||||
// },
|
||||
{
|
||||
"type": "audio-in",
|
||||
"tooltip": true,
|
||||
"tooltip-icon-size": 24
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
@define-color lightgray #686868;
|
||||
@define-color darkgray #353535;
|
||||
@define-color red #F38BA8;
|
||||
@define-color yellow #E0AF68;
|
||||
|
||||
|
||||
/* MIT License
|
||||
|
|
@ -118,6 +119,7 @@ window#waybar {
|
|||
#custom-swaync,
|
||||
#custom-pacman,
|
||||
#custom-media,
|
||||
#privacy,
|
||||
#mpd {
|
||||
padding: 5px 8px;
|
||||
border-style: solid;
|
||||
|
|
@ -303,6 +305,15 @@ window#waybar {
|
|||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
#privacy {
|
||||
background-color: @yellow;
|
||||
color: @yellow;
|
||||
border-radius: 10px;
|
||||
margin-left: 5px;
|
||||
margin-right: 15px;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
#window {
|
||||
border-style: hidden;
|
||||
margin-left: 10px;
|
||||
|
|
@ -319,8 +330,6 @@ window#waybar {
|
|||
margin-right: 10px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* window#waybar {
|
||||
background: #2d2a2e;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue