diff --git a/config b/config index c7274a9..60515e3 100644 --- a/config +++ b/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": { diff --git a/style.css b/style.css index ffedf3f..af447b1 100644 --- a/style.css +++ b/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;