From 635cc358ced7722df289a34dec17498dce73e9ab Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Fri, 31 Mar 2023 12:24:54 +0300 Subject: waybar: Change layout, add custom/volume --- .config/waybar/config.jsonc | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to '.config/waybar/config.jsonc') diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index fd0c172..98881f3 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -8,18 +8,18 @@ "height": 0, "modules-left": [ "clock", - "custom/weather", - "wlr/workspaces" + "custom/weather" + // "hyprland/window", ], - "modules-center": ["hyprland/window"], + "modules-center": ["wlr/workspaces"], "modules-right": [ "tray", "custom/updates", "custom/language", "battery", "backlight", - "pulseaudio", - "pulseaudio#microphone" + "custom/volume" + // "pulseaudio#microphone" ], "hyprland/window": { @@ -101,13 +101,15 @@ "default": ["", "", ""] } }, - "pulseaudio#microphone": { - "format": "{format_source}", - "format-source": " {volume}%", - "format-source-muted": " Muted", - "on-click": "pamixer --default-source -t", - "on-scroll-up": "pamixer --default-source -i 5", - "on-scroll-down": "pamixer --default-source -d 5", - "scroll-step": 5 + "custom/volume": { + "exec": "~/.config/waybar/scripts/sound.sh", + "interval": 1, + "format": " {}", + "tooltip": true } + // "custom/pipewire": { + // "format": {}, + // "exec": "awk -F"[][]" '/Left:/ { print $2 }' <(amixer sget Master)", + // "interval": 10 + // }, } -- cgit v1.2.3