Added mic module

This commit is contained in:
DIvan2000 2024-12-06 00:16:46 +04:00
parent 64442063ec
commit 80b82e8d86
2 changed files with 25 additions and 1 deletions

15
config
View File

@ -6,7 +6,7 @@
// "width": 1366, // Waybar width
// Choose the order of the modules
"modules-left": ["hyprland/workspaces", "tray", "hyprland/language"],
"modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "clock", "group/power"],
"modules-right": ["pulseaudio#mic", "pulseaudio", "network", "cpu", "memory", "battery", "clock", "group/power"],
"modules-center": ["hyprland/window"],
"hyprland/language": {
@ -21,6 +21,11 @@
"show-special": true,
"format": "{name}"
},
"hyprland/window": {
"format": "{}",
"icon": false,
"separate-outputs": true
},
"tray": {
"icon-size": 17,
"spacing": 10
@ -87,6 +92,14 @@
"on-click": "pavucontrol"
},
"pulseaudio#mic": {
"scroll-step": 0,
"format": "{format_source}",
"format-source": " ",
"format-source-muted": " ",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
},
"group/power": {
"orientation": "inherit",
"drawer": {

View File

@ -102,6 +102,17 @@ window#waybar {
font-weight: bold;
}
#pulseaudio.mic{
color: @text_color;
margin-left: 0.3em;
margin-right: -0.3em;
}
#pulseaudio.mic.source-muted{
color: @red;
margin-left: 0em;
margin-right: 0em;
}
#language, #battery, #cpu, #memory, #network, #pulseaudio, #custom-spotify, #tray, #mode {
padding: 0 0.15em;
margin: 0 0.15em;