Added mic module
This commit is contained in:
parent
64442063ec
commit
80b82e8d86
15
config
15
config
@ -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": {
|
||||
|
11
style.css
11
style.css
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user